/libcore/luni/src/test/java/tests/security/cert/ |
D | X509CRLEntryTest.java | 65 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()
|
D | X509CRLTest.java | 104 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()
|
D | PolicyQualifierInfoTest.java | 129 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()
|
D | CertificateTest.java | 64 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/ |
D | CertificateTest.java | 45 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()
|
D | X509CertificateTest.java | 140 this.tbt_cert = X509Certificate.getInstance(cert.getEncoded()); in setUp() 145 this.javaxCert = X509Certificate.getInstance(javaCert.getEncoded()); in setUp() 153 .getEncoded()); in setUp() 190 .getEncoded()); in testGetInstance1() 225 c = X509Certificate.getInstance(cert.getEncoded()); in testGetInstance2() 237 assertTrue(Arrays.equals(c.getEncoded(),cert.getEncoded() )); in testGetInstance2() 537 public byte[] getEncoded() throws CertificateEncodingException { in getEncoded() method in X509CertificateTest.MyCertificate 597 public byte[] getEncoded() { in getEncoded() method in X509CertificateTest.MyModifiablePublicKey 601 return key.getEncoded(); in getEncoded() 633 assertTrue(Arrays.equals(cert.getEncoded(), tbt_cert.getEncoded())); in testGetEncoded() [all …]
|
/libcore/luni/src/test/java/tests/security/spec/ |
D | EncodedKeySpecTest.java | 46 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()
|
D | PKCS8EncodedKeySpecTest.java | 69 byte[] ek = meks.getEncoded(); in testGetEncoded() 103 byte[] ek = meks.getEncoded(); in testIsStatePreserved1() 123 byte[] ek = meks.getEncoded(); in testIsStatePreserved2() 129 byte[] ek1 = meks.getEncoded(); in testIsStatePreserved2()
|
D | X509EncodedKeySpecTest.java | 70 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/ |
D | X509CRLEntry.java | 86 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
|
D | CertPath.java | 252 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/ |
D | Certificate.java | 82 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/ |
D | KeyGeneratorThread.java | 41 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()
|
D | CipherWrapThread.java | 45 checkEncodedData(key.getEncoded(), decrypted.getEncoded()); in crypt()
|
/libcore/ojluni/src/main/java/java/security/spec/ |
D | PKCS8EncodedKeySpec.java | 83 public byte[] getEncoded() { in getEncoded() method in PKCS8EncodedKeySpec 84 return super.getEncoded(); in getEncoded()
|
D | X509EncodedKeySpec.java | 73 public byte[] getEncoded() { in getEncoded() method in X509EncodedKeySpec 74 return super.getEncoded(); in getEncoded()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KeyFactory2Test.java | 126 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 …]
|
D | AlgorithmParametersTest.java | 105 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()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | KeyStoreTestSupport.java | 77 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
|
D | MyKeyPairGenerator1.java | 115 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/crypto/tests/javax/crypto/spec/ |
D | SecretKeySpecTest.java | 72 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/luni/src/test/java/libcore/java/security/cert/ |
D | CertificateFactoryTest.java | 392 duplicatedPath.getEncoded(); in testGenerateCertPath() 444 encodedCopy = pathFromList.getEncoded(); in testCertPathEncoding() 448 assertEquals(providerName, Arrays.toString(pathFromList.getEncoded()), in testCertPathEncoding() 451 encodedCopy = pathFromList.getEncoded(encoding); in testCertPathEncoding() 455 assertEquals(providerName, Arrays.toString(pathFromList.getEncoded(encoding)), in testCertPathEncoding() 465 encoded = pathFromList.getEncoded(); in testCertPathEncoding() 469 assertEquals(providerName, Arrays.toString(pathFromList.getEncoded()), in testCertPathEncoding() 472 encoded = pathFromList.getEncoded(encoding); in testCertPathEncoding() 476 assertEquals(providerName, Arrays.toString(pathFromList.getEncoded(encoding)), in testCertPathEncoding() 597 SubjectPublicKeyInfo spki = SubjectPublicKeyInfo.getInstance(pubKey.getEncoded()); in generatePublicKeyDigest()
|
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
D | PKCS8Key.java | 269 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/support/src/test/java/org/apache/harmony/security/tests/support/cert/ |
D | MyCertPath.java | 80 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/util/ |
D | KeyUtil.java | 71 if ("RAW".equals(format) && sk.getEncoded() != null) { in getKeySize() 72 size = (sk.getEncoded().length * 8); in getKeySize()
|