Home
last modified time | relevance | path

Searched refs:getEncoded (Results 1 – 25 of 226) sorted by relevance

12345678910

/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/
DCertificateTest.java47 public byte[] getEncoded() in getEncoded() method in CertificateTest.TBTCert
80 public byte[] getEncoded() { in testEquals()
86 public byte[] getEncoded() { in testEquals()
92 public byte[] getEncoded() { in testEquals()
98 public byte[] getEncoded() { in testEquals()
134 public byte[] getEncoded() { in testHashCode()
139 public byte[] getEncoded() { in testHashCode()
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/
DX509CRLEntryTest.java61 public byte[] getEncoded() throws CRLException { in getEncoded() method in X509CRLEntryTest.TBTCRLEntry
84 public byte[] getEncoded() throws CRLException { in X509CRLEntryTest()
97 public byte[] getEncoded() { in testEquals()
103 public byte[] getEncoded() { in testEquals()
109 public byte[] getEncoded() { in testEquals()
147 public byte[] getEncoded() { in testHashCode()
DX509CRLTest.java82 public byte[] getEncoded() { in getEncoded() method in X509CRLTest.TBTCRL
146 public byte[] getEncoded() { in X509CRLTest()
168 public byte[] getEncoded() { in testEquals()
174 public byte[] getEncoded() { in testEquals()
180 public byte[] getEncoded() { in testEquals()
216 public byte[] getEncoded() { in testHashCode()
230 public byte[] getEncoded() { in testGetIssuerX500Principal()
DPolicyQualifierInfoTest.java135 byte[] encodingRet = i.getEncoded(); in testPolicyQualifierInfo04()
141 byte[] encodingRet1 = i.getEncoded(); in testPolicyQualifierInfo04()
160 byte[] encodingRet = i.getEncoded(); in testGetEncoded01()
178 byte[] encodingRet = i.getEncoded(); in testGetEncoded02()
182 byte[] encodingRet1 = i.getEncoded(); in testGetEncoded02()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DPrincipalUtils.java17 return X500Name.getInstance(cert.getSubjectX500Principal().getEncoded()); in getSubjectPrincipal()
22 return X500Name.getInstance(crl.getIssuerX500Principal().getEncoded()); in getIssuerPrincipal()
27 return X500Name.getInstance(cert.getIssuerX500Principal().getEncoded()); in getIssuerPrincipal()
32 return X500Name.getInstance(trustAnchor.getCA().getEncoded()); in getCA()
50 …nce(((X500Principal)((X509AttributeCertificate)cert).getIssuer().getPrincipals()[0]).getEncoded()); in getEncodedIssuerPrincipal()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/util/
DAlgorithmParametersUtils.java38 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded("ASN.1")); in extractParameters()
42 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded()); in extractParameters()
61 params.init(sParams.toASN1Primitive().getEncoded(), "ASN.1"); in loadParameters()
65 params.init(sParams.toASN1Primitive().getEncoded()); in loadParameters()
DJcaJceUtils.java44 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded("ASN.1")); in extractParameters()
48 asn1Params = ASN1Primitive.fromByteArray(params.getEncoded()); in extractParameters()
68 params.init(sParams.toASN1Primitive().getEncoded(), "ASN.1"); in loadParameters()
72 params.init(sParams.toASN1Primitive().getEncoded()); in loadParameters()
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/
DEncodedKeySpecTest.java55 byte[] ek = meks.getEncoded(); in testGetEncoded()
83 byte[] ek = meks.getEncoded(); in testIsStatePreserved1()
100 byte[] ek = meks.getEncoded(); in testIsStatePreserved2()
104 byte[] ek1 = meks.getEncoded(); in testIsStatePreserved2()
DX509EncodedKeySpecTest.java70 byte[] ek = eks.getEncoded(); in testGetEncoded()
104 byte[] ek = meks.getEncoded(); in testIsStatePreserved1()
124 byte[] ek = meks.getEncoded(); in testIsStatePreserved2()
130 byte[] ek1 = meks.getEncoded(); in testIsStatePreserved2()
DPKCS8EncodedKeySpecTest.java70 byte[] ek = meks.getEncoded(); in testGetEncoded()
104 byte[] ek = meks.getEncoded(); in testIsStatePreserved1()
124 byte[] ek = meks.getEncoded(); in testIsStatePreserved2()
130 byte[] ek1 = meks.getEncoded(); in testIsStatePreserved2()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
DBaseKeyFactorySpi.java27 … return generatePrivate(PrivateKeyInfo.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded())); in engineGeneratePrivate()
48 …eturn generatePublic(SubjectPublicKeyInfo.getInstance(((X509EncodedKeySpec)keySpec).getEncoded())); in engineGeneratePublic()
68 return new PKCS8EncodedKeySpec(key.getEncoded()); in engineGetKeySpec()
72 return new X509EncodedKeySpec(key.getEncoded()); in engineGetKeySpec()
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/serialization/
DKeyPairTest.java83 assertTrue("PublicKey encoded", Arrays.equals(key1.getEncoded(),
84 key2.getEncoded()));
94 assertTrue("PrivateKey encoded", Arrays.equals(key1.getEncoded(),
95 key2.getEncoded()));
/external/robolectric/v1/src/main/java/android/net/
DUri__FromAndroid.java497 return getSsp().getEncoded(); in getEncodedSchemeSpecificPart()
527 return getAuthorityPart().getEncoded(); in getEncodedAuthority()
547 return getPathPart().getEncoded(); in getEncodedPath()
587 return getQueryPart().getEncoded(); in getEncodedQuery()
624 return getFragmentPart().getEncoded(); in getEncodedFragment()
820 return ssp.getEncoded(); in getEncodedSchemeSpecificPart()
856 return fragment.getEncoded(); in getEncodedFragment()
898 sb.append('#').append(fragment.getEncoded()); in toString()
1000 return getUserInfoPart().getEncoded(); in getEncodedUserInfo()
1142 return getSsp().getEncoded(); in getEncodedSchemeSpecificPart()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/
DX509V2AttributeCertificate.java189 signature.update(cert.getAcinfo().getEncoded()); in verify()
202 public byte[] getEncoded() in getEncoded() method in X509V2AttributeCertificate
205 return cert.getEncoded(); in getEncoded()
220 return ext.getExtnValue().getEncoded(ASN1Encoding.DER); in getExtensionValue()
328 byte[] b1 = this.getEncoded(); in equals()
329 byte[] b2 = other.getEncoded(); in equals()
343 return Arrays.hashCode(this.getEncoded()); in hashCode()
/external/conscrypt/src/main/java/org/conscrypt/
DOpenSSLECKeyFactory.java88 final byte[] encoded = key.getEncoded(); in engineGetKeySpec()
99 final byte[] encoded = key.getEncoded(); in engineGetKeySpec()
108 final byte[] encoded = key.getEncoded(); in engineGetKeySpec()
117 final byte[] encoded = key.getEncoded(); in engineGetKeySpec()
163 byte[] encoded = key.getEncoded(); in engineTranslateKey()
173 byte[] encoded = key.getEncoded(); in engineTranslateKey()
DOpenSSLX509CertPath.java92 private byte[] getEncoded(Encoding encoding) throws CertificateEncodingException { in getEncoded() method in OpenSSLX509CertPath
102 certs[j] = OpenSSLX509Certificate.fromX509Der(cert.getEncoded()); in getEncoded()
119 public byte[] getEncoded() throws CertificateEncodingException { in getEncoded() method in OpenSSLX509CertPath
120 return getEncoded(DEFAULT_ENCODING); in getEncoded()
124 public byte[] getEncoded(String encoding) throws CertificateEncodingException { in getEncoded() method in OpenSSLX509CertPath
130 return getEncoded(enc); in getEncoded()
DOpenSSLKey.java94 final byte[] encoded = key.getEncoded(); in fromPrivateKey()
99 return new OpenSSLKey(NativeCrypto.d2i_PKCS8_PRIV_KEY_INFO(key.getEncoded())); in fromPrivateKey()
199 byte[] encoded = key.getEncoded(); in fromKeyMaterial()
242 final byte[] encoded = key.getEncoded(); in fromPublicKey()
248 return new OpenSSLKey(NativeCrypto.d2i_PUBKEY(key.getEncoded())); in fromPublicKey()
293 key = new OpenSSLKey(NativeCrypto.d2i_PUBKEY(x509KeySpec.getEncoded())); in getPublicKey()
326 key = new OpenSSLKey(NativeCrypto.d2i_PKCS8_PRIV_KEY_INFO(pkcs8KeySpec.getEncoded())); in getPrivateKey()
DOpenSSLRSAKeyFactory.java90 final byte[] encoded = key.getEncoded(); in engineGetKeySpec()
114 final byte[] encoded = key.getEncoded(); in engineGetKeySpec()
130 final byte[] encoded = key.getEncoded(); in engineGetKeySpec()
139 final byte[] encoded = key.getEncoded(); in engineGetKeySpec()
148 final byte[] encoded = key.getEncoded(); in engineGetKeySpec()
208 byte[] encoded = key.getEncoded(); in engineTranslateKey()
218 byte[] encoded = key.getEncoded(); in engineTranslateKey()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/
DKeyFactory.java29 … PrivateKeyInfo info = PrivateKeyInfo.getInstance(((PKCS8EncodedKeySpec)keySpec).getEncoded()); in engineGeneratePrivate()
56 …tPublicKeyInfo info = SubjectPublicKeyInfo.getInstance(((X509EncodedKeySpec)keySpec).getEncoded()); in engineGeneratePublic()
80 return new PKCS8EncodedKeySpec(key.getEncoded()); in engineGetKeySpec()
84 return new X509EncodedKeySpec(key.getEncoded()); in engineGetKeySpec()
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DKeyFactory2Test.java113 .getEncoded(), privateKey.getEncoded()); in test_generatePrivateLjava_security_spec_KeySpec()
118 .getEncoded())); in test_generatePrivateLjava_security_spec_KeySpec()
153 .getEncoded(), publicKey.getEncoded()); in test_generatePublicLjava_security_spec_KeySpec()
265 .getEncoded(), publicKey.getEncoded()); in test_getKeySpecLjava_security_KeyLjava_lang_Class()
267 .getEncoded(), privateKey.getEncoded()); in test_getKeySpecLjava_security_KeyLjava_lang_Class()
DAlgorithmParametersTest.java99 params.getEncoded(); in test_getEncoded()
109 assertSame(enc, params.getEncoded()); in test_getEncoded()
135 params.getEncoded(strFormatParam); in test_getEncodedLjava_lang_String()
145 assertSame(enc, params.getEncoded(strFormatParam)); in test_getEncodedLjava_lang_String()
160 assertSame(enc, params.getEncoded(null)); in test_getEncodedLjava_lang_String()
531 byte[] enc = params.getEncoded(); in testDSAProvider()
533 assertNotNull(params.getEncoded("ASN.1")); in testDSAProvider()
546 .getEncoded())); in testDSAProvider()
552 .getEncoded())); in testDSAProvider()
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
DSecretKeySpecTest.java72 key[0] == ks.getEncoded()[0]); in testSecretKeySpec1()
145 key[offset] == ks.getEncoded()[0]); in testSecretKeySpec2()
192 byte[] result = ks.getEncoded(); in testGetEncoded()
200 result[0] == ks.getEncoded()[0]); in testGetEncoded()
206 assertEquals("Key length is incorrect", len, sks.getEncoded().length); in testGetEncoded()
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
DKeyStoreTestSupport.java76 public byte[] getEncoded() { in getEncoded() method in KeyStoreTestSupport.SKey
109 public byte[] getEncoded() { in getEncoded() method in KeyStoreTestSupport.MyPrivateKey
128 public byte[] getEncoded() throws CertificateEncodingException { in getEncoded() method in KeyStoreTestSupport.MCertificate
153 public byte[] getEncoded() { in getPublicKey() method in KeyStoreTestSupport.MCertificate
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DDERExternal.java126 return this.getEncoded().length; in encodedLength()
138 baos.write(directReference.getEncoded(ASN1Encoding.DER)); in encode()
142 baos.write(indirectReference.getEncoded(ASN1Encoding.DER)); in encode()
146 baos.write(dataValueDescriptor.getEncoded(ASN1Encoding.DER)); in encode()
149 baos.write(obj.getEncoded(ASN1Encoding.DER)); in encode()
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/
DCertificateMessageTest.java93 .getEncoded(), cert.getEncoded())); in testCertificateMessage2()
105 .getEncoded(), message_2.certs[0].getEncoded())); in testCertificateMessage2()

12345678910