Home
last modified time | relevance | path

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

12345

/libcore/luni/src/test/java/tests/security/cert/
DX509CRLEntryTest.java65 public byte[] getEncoded() throws CRLException { in getEncoded() method in X509CRLEntryTest.TBTCRLEntry
88 public byte[] getEncoded() throws CRLException { in X509CRLEntryTest()
103 assertNull(tbt_crlentry.getEncoded()); in testX509CRLEntry()
119 public byte[] getEncoded() { in testEquals()
125 public byte[] getEncoded() { in testEquals()
131 public byte[] getEncoded() { in testEquals()
169 public byte[] getEncoded() { in testHashCode()
188 public byte[] getEncoded() { in testAbstractMethods()
194 tbt.getEncoded(); in testAbstractMethods()
DX509CRLTest.java104 public byte[] getEncoded() { in getEncoded() method in X509CRLTest.TBTCRL
174 public byte[] getEncoded() { in setUp()
196 public byte[] getEncoded() { in testEquals()
202 public byte[] getEncoded() { in testEquals()
208 public byte[] getEncoded() { in testEquals()
244 public byte[] getEncoded() { in testHashCode()
258 public byte[] getEncoded() { in testGetIssuerX500Principal()
276 public byte[] getEncoded() { in testGetRevokedCertificate()
299 public byte[] getEncoded() { in testAbstractMethods()
305 crl.getEncoded(); in testAbstractMethods()
DPolicyQualifierInfoTest.java129 byte[] encodingRet = i.getEncoded(); in testPolicyQualifierInfo04()
135 byte[] encodingRet1 = i.getEncoded(); in testPolicyQualifierInfo04()
154 byte[] encodingRet = i.getEncoded(); in testGetEncoded01()
172 byte[] encodingRet = i.getEncoded(); in testGetEncoded02()
176 byte[] encodingRet1 = i.getEncoded(); in testGetEncoded02()
DCertificateTest.java64 assertTrue(Arrays.equals(testEncoding, c1.getEncoded())); in testCertificate()
67 c1.getPublicKey().getEncoded())); in testCertificate()
84 .getEncoded()).hashCode()); in testHashCode()
168 assertNotNull(c1.getEncoded()); in testGetEncoded()
169 assertTrue(Arrays.equals(testEncoding,c1.getEncoded())); in testGetEncoded()
172 byte[] expectedEncoding = cert.getEncoded(); in testGetEncoded()
174 byte[] actualEncoding = actual.getEncoded(); in testGetEncoded()
300 public byte[] getEncoded() { in getEncoded() method in CertificateTest.MyModifiablePublicKey
304 return key.getEncoded(); in getEncoded()
432 changedEncoding.setEncoding(new byte[cert.getEncoded().length - 1]); in testVerifyPublicKey2()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/cert/
DCertificateTest.java45 public byte[] getEncoded() throws CertificateEncodingException { in getEncoded() method in CertificateTest.TBTCert
86 public byte[] getEncoded() { in testEquals()
92 public byte[] getEncoded() { in testEquals()
98 public byte[] getEncoded() { in testEquals()
104 public byte[] getEncoded() { in testEquals()
142 public byte[] getEncoded() { in testHashCode()
147 public byte[] getEncoded() { in testHashCode()
/libcore/luni/src/test/java/tests/security/spec/
DEncodedKeySpecTest.java46 eks.getEncoded())); in testEncodedKeySpec()
67 byte[] ek = meks.getEncoded(); in testGetEncoded()
95 byte[] ek = meks.getEncoded(); in testIsStatePreserved1()
111 byte[] ek = meks.getEncoded(); in testIsStatePreserved2()
115 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()
/libcore/ojluni/src/main/java/java/security/cert/
DX509CRLEntry.java86 byte[] thisCRLEntry = this.getEncoded(); in equals()
87 byte[] otherCRLEntry = ((X509CRLEntry)other).getEncoded(); in equals()
109 byte[] entryData = this.getEncoded(); in hashCode()
126 public abstract byte[] getEncoded() throws CRLException; in getEncoded() method in X509CRLEntry
DCertPath.java252 public abstract byte[] getEncoded() in getEncoded() method in CertPath
264 public abstract byte[] getEncoded(String encoding) in getEncoded() method in CertPath
287 return new CertPathRep(type, getEncoded()); in writeReplace()
/libcore/ojluni/src/main/java/javax/security/cert/
DCertificate.java82 byte[] thisCert = this.getEncoded(); in equals()
83 byte[] otherCert = ((Certificate)other).getEncoded(); in equals()
105 byte[] certData = this.getEncoded(); in hashCode()
125 public abstract byte[] getEncoded() throws CertificateEncodingException; in getEncoded() method in Certificate
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DKeyGeneratorThread.java41 byte[] array1 = k.getEncoded(); in test()
43 byte[] array2 = k.getEncoded(); in test()
57 array1 = k.getEncoded(); in test()
61 array2 = k.getEncoded(); in test()
DCipherWrapThread.java45 checkEncodedData(key.getEncoded(), decrypted.getEncoded()); in crypt()
/libcore/ojluni/src/main/java/java/security/spec/
DX509EncodedKeySpec.java73 public byte[] getEncoded() { in getEncoded() method in X509EncodedKeySpec
74 return super.getEncoded(); in getEncoded()
DPKCS8EncodedKeySpec.java83 public byte[] getEncoded() { in getEncoded() method in PKCS8EncodedKeySpec
84 return super.getEncoded(); in getEncoded()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DKeyStoreTestSupport.java77 public byte[] getEncoded() { in getEncoded() method in KeyStoreTestSupport.SKey
110 public byte[] getEncoded() { in getEncoded() method in KeyStoreTestSupport.MyPrivateKey
129 public byte[] getEncoded() throws CertificateEncodingException { in getEncoded() method in KeyStoreTestSupport.MCertificate
154 public byte[] getEncoded() { in getPublicKey() method in KeyStoreTestSupport.MCertificate
DMyKeyPairGenerator1.java115 public byte[] getEncoded() { in getEncoded() method in MyKeyPairGenerator1.PubKey
141 public byte[] getEncoded() { in getEncoded() method in MyKeyPairGenerator1.PrivKey
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyFactory2Test.java126 Arrays.toString(keys.getPrivate().getEncoded()), in test_generatePrivateLjava_security_spec_KeySpec()
127 Arrays.toString(privateKey.getEncoded())); in test_generatePrivateLjava_security_spec_KeySpec()
128 … privateKey = fact.generatePrivate(new PKCS8EncodedKeySpec(keys.getPrivate().getEncoded())); in test_generatePrivateLjava_security_spec_KeySpec()
130 Arrays.toString(keys.getPrivate().getEncoded()), in test_generatePrivateLjava_security_spec_KeySpec()
131 Arrays.toString(privateKey.getEncoded())); in test_generatePrivateLjava_security_spec_KeySpec()
158 Arrays.toString(keys.getPublic().getEncoded()), in test_generatePublicLjava_security_spec_KeySpec()
159 Arrays.toString(publicKey.getEncoded())); in test_generatePublicLjava_security_spec_KeySpec()
253 Arrays.toString(keys.getPrivate().getEncoded()), in test_getKeySpecLjava_security_KeyLjava_lang_Class()
254 Arrays.toString(privateKey.getEncoded())); in test_getKeySpecLjava_security_KeyLjava_lang_Class()
259 Arrays.toString(keys.getPublic().getEncoded()), in test_getKeySpecLjava_security_KeyLjava_lang_Class()
[all …]
DAlgorithmParametersTest.java105 params.getEncoded(); in test_getEncoded()
115 assertSame(enc, params.getEncoded()); in test_getEncoded()
141 params.getEncoded(strFormatParam); in test_getEncodedLjava_lang_String()
151 assertSame(enc, params.getEncoded(strFormatParam)); in test_getEncodedLjava_lang_String()
166 assertSame(enc, params.getEncoded(null)); in test_getEncodedLjava_lang_String()
603 byte[] enc = params.getEncoded(); in testDSAProvider()
605 assertNotNull(params.getEncoded("ASN.1")); in testDSAProvider()
618 .getEncoded())); in testDSAProvider()
624 .getEncoded())); in testDSAProvider()
DKeyPairTest.java47 public byte[] getEncoded() { in getPublic() method in KeyPairTest.TestKeyPair
60 public byte[] getEncoded() { in getPrivate() method
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
DSecretKeySpecTest.java72 key[0] == ks.getEncoded()[0]); in testSecretKeySpec1()
128 key[offset] == ks.getEncoded()[0]); in testSecretKeySpec2()
191 byte[] result = ks.getEncoded(); in testGetEncoded()
199 result[0] == ks.getEncoded()[0]); in testGetEncoded()
205 assertEquals("Key length is incorrect", len, sks.getEncoded().length); in testGetEncoded()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
DMyCertPath.java80 public byte[] getEncoded() throws CertificateEncodingException { in getEncoded() method in MyCertPath
91 public byte[] getEncoded(String encoding) in getEncoded() method in MyCertPath
/libcore/ojluni/src/main/java/sun/security/pkcs/
DPKCS8Key.java269 public synchronized byte[] getEncoded() { in getEncoded() method in PKCS8Key
363 getEncoded()); in writeReplace()
417 b1 = getEncoded(); in equals()
421 byte[] b2 = ((Key)object).getEncoded(); in equals()
444 byte[] b1 = getEncoded(); in hashCode()
/libcore/ojluni/src/main/java/sun/security/util/
DKeyUtil.java71 if ("RAW".equals(format) && sk.getEncoded() != null) { in getKeySize()
72 size = (sk.getEncoded().length * 8); in getKeySize()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
DMyExemptionMechanismSpi.java120 public byte[] getEncoded() { in getEncoded() method in MyExemptionMechanismSpi.tmpKey
136 public byte[] getEncoded() { in getEncoded() method in MyExemptionMechanismSpi.tmp1Key
/libcore/ojluni/src/main/java/javax/crypto/spec/
DSecretKeySpec.java183 public byte[] getEncoded() { in getEncoded() method in SecretKeySpec
230 byte[] thatKey = ((SecretKey)obj).getEncoded(); in equals()

12345