Searched refs:decode (Results 26 - 50 of 102) sorted by relevance

12345

/libcore/luni/src/main/java/org/apache/harmony/security/x509/
H A DInvalidityDate.java43 date = (Date) ASN1.decode(encoding);
H A DKeyUsage.java69 this.keyUsage = (boolean[]) ASN1.decode(encoding);
H A DCertificatePolicies.java56 public static CertificatePolicies decode(byte[] encoding) throws IOException { method in class:CertificatePolicies
57 CertificatePolicies cps = ((CertificatePolicies) ASN1.decode(encoding));
H A DInfoAccessSyntax.java68 public static InfoAccessSyntax decode(byte[] encoding) throws IOException { method in class:InfoAccessSyntax
69 return ((InfoAccessSyntax) ASN1.decode(encoding));
H A DAuthorityKeyIdentifier.java67 public static AuthorityKeyIdentifier decode(byte[] encoding) throws IOException { method in class:AuthorityKeyIdentifier
68 AuthorityKeyIdentifier aki = (AuthorityKeyIdentifier) ASN1.decode(encoding);
H A DExtension.java245 extnValueObject = SubjectKeyIdentifier.decode(extnValue);
257 extnValueObject = NameConstraints.decode(extnValue);
259 extnValueObject = CertificatePolicies.decode(extnValue);
261 extnValueObject = AuthorityKeyIdentifier.decode(extnValue);
271 extnValueObject = CRLDistributionPoints.decode(extnValue);
281 extnValueObject = IssuingDistributionPoint.decode(extnValue);
283 extnValueObject = InfoAccessSyntax.decode(extnValue);
285 extnValueObject = InfoAccessSyntax.decode(extnValue);
378 // decode Key Usage and Basic Constraints extension values
H A DCertificateIssuer.java53 issuer = (X500Principal) ASN1.decode(getEncoded());
H A DExtendedKeyUsage.java61 keys = (List<String>) ASN1.decode(getEncoded());
H A DNameConstraints.java94 public static NameConstraints decode(byte[] encoding) throws IOException { method in class:NameConstraints
95 return (NameConstraints) ASN1.decode(encoding);
144 return (byte[]) ASN1OctetString.getInstance().decode(bytes);
175 : ((GeneralNames) GeneralNames.ASN1.decode(bytes)).getNames();
/libcore/luni/src/test/java/libcore/io/
H A DBase64Test.java26 assertEquals("[]", Arrays.toString(Base64.decode(new byte[0])));
/libcore/luni/src/test/java/libcore/java/nio/charset/
H A DOldCharset_MultiByte_EUC_JP.java519 CharBuffer outputCB = decoder.decode(intermediateBB);
521 assertEqualCBs("decode(encode(A)) must be identical with A!",
H A DOldCharset_MultiByte_EUC_JP_Android.java517 CharBuffer outputCB = decoder.decode(intermediateBB);
519 assertEqualCBs("decode(encode(A)) must be identical with A!",
H A DOldCharset_SingleByteAbstractTest.java53 outputCB = decoder.decode(inputBB);
69 outputCB = decoder.decode(inputBB);
93 // outputCB = decoder.decode(inputBB);
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DCertificateStub.java53 * @see java.security.Certificate#decode(java.io.InputStream)
55 public void decode(InputStream stream) throws KeyException, method in class:CertificateStub
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/
H A DDSAPrivateKeyImpl.java113 .decode(encoding);
115 throw new InvalidKeySpecException("Failed to decode keySpec encoding: " + e);
119 x = new BigInteger((byte[]) ASN1Integer.getInstance().decode(
122 throw new InvalidKeySpecException("Failed to decode parameters: " + e);
128 .decode(ai.getParameters());
130 throw new InvalidKeySpecException("Failed to decode parameters: " + e);
H A DDSAPublicKeyImpl.java115 .decode(encoding);
117 throw new InvalidKeySpecException("Failed to decode keySpec encoding: " + e);
121 y = new BigInteger((byte[]) ASN1Integer.getInstance().decode(
124 throw new InvalidKeySpecException("Failed to decode parameters: " + e);
131 .decode(ai.getParameters());
133 throw new InvalidKeySpecException("Failed to decode parameters: " + e);
/libcore/luni/src/main/java/java/lang/
H A DByte.java134 public static Byte decode(String string) throws NumberFormatException { method in class:Byte
135 int intValue = Integer.decode(string);
H A DShort.java134 public static Short decode(String string) throws NumberFormatException { method in class:Short
135 int intValue = Integer.decode(string).intValue();
H A DInteger.java154 public static Integer decode(String string) throws NumberFormatException { method in class:Integer
237 return decode(prop);
266 return decode(prop);
295 return decode(prop);
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
H A DASN1Choice.java117 * If it is a matter what time format should be used to decode/encode
300 public Object decode(BerInputStream in) throws IOException { method in class:ASN1Choice
303 throw new ASN1Exception("Failed to decode ASN.1 choice type. No alternatives were found for " + getClass().getName());// FIXME message
308 in.content = type[index].decode(in);
H A DASN1GeneralizedTime.java64 public Object decode(BerInputStream in) throws IOException { method in class:ASN1GeneralizedTime
H A DASN1Integer.java62 public Object decode(BerInputStream in) throws IOException { method in class:ASN1Integer
/libcore/luni/src/main/java/java/nio/charset/
H A DCharsetDecoder.java35 * <li>invoking the {@link #decode(ByteBuffer, CharBuffer, boolean) decode}
39 * <li>invoking the {@link #decode(ByteBuffer, CharBuffer, boolean) decode}
46 * The {@link #decode(ByteBuffer, CharBuffer, boolean) decode} method will
158 * This method should not be invoked while another {@code decode} operation
182 * if another exception happened during the decode operation.
184 public final CharBuffer decode(ByteBuffer in) throws CharacterCodingException { method in class:CharsetDecoder
190 result = decode(i
306 public final CoderResult decode(ByteBuffer in, CharBuffer out, method in class:CharsetDecoder
[all...]
/libcore/luni/src/main/java/java/security/cert/
H A DPolicyQualifierInfo.java60 .decode(this.encoded);
/libcore/luni/src/main/java/libcore/icu/
H A DNativeConverter.java18 public static native int decode(long converterHandle, byte[] input, int inEnd, method in class:NativeConverter

Completed in 433 milliseconds

12345