Home
last modified time | relevance | path

Searched refs:PKCS8EncodedKeySpec (Results 1 – 19 of 19) sorted by relevance

/libcore/luni/src/test/java/tests/security/spec/
DPKCS8EncodedKeySpecTest.java28 import java.security.spec.PKCS8EncodedKeySpec;
49 EncodedKeySpec eks = new PKCS8EncodedKeySpec(encodedKey); in testPKCS8EncodedKeySpec()
51 assertTrue(eks instanceof PKCS8EncodedKeySpec); in testPKCS8EncodedKeySpec()
53 eks = new PKCS8EncodedKeySpec(null); in testPKCS8EncodedKeySpec()
67 PKCS8EncodedKeySpec meks = new PKCS8EncodedKeySpec(encodedKey); in testGetEncoded()
81 PKCS8EncodedKeySpec meks = new PKCS8EncodedKeySpec(encodedKey); in testGetFormat()
97 PKCS8EncodedKeySpec meks = new PKCS8EncodedKeySpec(encodedKeyCopy); in testIsStatePreserved1()
121 PKCS8EncodedKeySpec meks = new PKCS8EncodedKeySpec(encodedKeyCopy); in testIsStatePreserved2()
140 PKCS8EncodedKeySpec meks = new PKCS8EncodedKeySpec(encodedKey, algorithm); in testGetAlgorithm()
DEncodedKeySpec2Test.java29 import java.security.spec.PKCS8EncodedKeySpec;
57 key = fact.generatePrivate(new PKCS8EncodedKeySpec(encoded)); in test_getEncoded()
DX509EncodedKeySpecTest.java28 import java.security.spec.PKCS8EncodedKeySpec;
/libcore/ojluni/src/main/java/java/security/spec/
DPKCS8EncodedKeySpec.java62 public class PKCS8EncodedKeySpec extends EncodedKeySpec { class
73 public PKCS8EncodedKeySpec(byte[] encodedKey) { in PKCS8EncodedKeySpec() method in PKCS8EncodedKeySpec
97 public PKCS8EncodedKeySpec(byte[] encodedKey, String algorithm) { in PKCS8EncodedKeySpec() method in PKCS8EncodedKeySpec
/libcore/ojluni/annotations/flagged_api/java/security/spec/
DPKCS8EncodedKeySpec.annotated.java30 public class PKCS8EncodedKeySpec extends java.security.spec.EncodedKeySpec { class
32 public PKCS8EncodedKeySpec(byte[] encodedKey) { super((byte[])null); throw new RuntimeException("St… in PKCS8EncodedKeySpec() method in PKCS8EncodedKeySpec
34 public PKCS8EncodedKeySpec(byte[] encodedKey, java.lang.String algorithm) { super((byte[])null); th… in PKCS8EncodedKeySpec() method in PKCS8EncodedKeySpec
/libcore/ojluni/src/main/java/javax/crypto/
DEncryptedPrivateKeyInfo.java246 public PKCS8EncodedKeySpec getKeySpec(Cipher cipher) in getKeySpec()
258 return new PKCS8EncodedKeySpec(encoded); in getKeySpec()
261 private PKCS8EncodedKeySpec getKeySpecImpl(Key decryptKey, in getKeySpecImpl()
283 return new PKCS8EncodedKeySpec(encoded); in getKeySpecImpl()
301 public PKCS8EncodedKeySpec getKeySpec(Key decryptKey) in getKeySpec()
328 public PKCS8EncodedKeySpec getKeySpec(Key decryptKey, in getKeySpec()
362 public PKCS8EncodedKeySpec getKeySpec(Key decryptKey, in getKeySpec()
/libcore/ojluni/src/test/java/security/KeyAgreement/
DKeySizeTest.java56 import java.security.spec.PKCS8EncodedKeySpec;
140 PKCS8EncodedKeySpec dhPriSpec in testKeyAttributes()
141 = new PKCS8EncodedKeySpec(dhPri.getEncoded()); in testKeyAttributes()
185 PKCS8EncodedKeySpec ecPriSpec in testKeyAttributes()
186 = new PKCS8EncodedKeySpec(ecPriv.getEncoded()); in testKeyAttributes()
222 PKCS8EncodedKeySpec xdhPriSpec in testKeyAttributes()
223 = new PKCS8EncodedKeySpec(xdhPri.getEncoded()); in testKeyAttributes()
DKeySpecTest.java48 import java.security.spec.PKCS8EncodedKeySpec;
171 PKCS8EncodedKeySpec priSpec in testEncodedKeySpecs()
172 = new PKCS8EncodedKeySpec(kp.getPrivate().getEncoded()); in testEncodedKeySpecs()
213 return Arrays.asList(PKCS8EncodedKeySpec.class, in getCompatibleKeySpecs()
221 return Arrays.asList(PKCS8EncodedKeySpec.class, in getCompatibleKeySpecs()
229 return Arrays.asList(PKCS8EncodedKeySpec.class, in getCompatibleKeySpecs()
DNegativeTest.java57 import java.security.spec.PKCS8EncodedKeySpec;
157 PKCS8EncodedKeySpec priSpec = new PKCS8EncodedKeySpec(modified); in testModifiedKeyEncodingTest()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DX509KeyManagerTest.java11 import java.security.spec.PKCS8EncodedKeySpec;
632 keys[0] = kf.generatePrivate(new PKCS8EncodedKeySpec(keyBytes)); in init()
633 keys[1] = kf.generatePrivate(new PKCS8EncodedKeySpec(key2Bytes)); in init()
634 keys[2] = kf.generatePrivate(new PKCS8EncodedKeySpec(key3Bytes)); in init()
647 keys[0] = kf.generatePrivate(new PKCS8EncodedKeySpec(keyBytes)); in init()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DTestKeyPair.java30 import java.security.spec.PKCS8EncodedKeySpec;
598 new PKCS8EncodedKeySpec( in getPrivate()
/libcore/ojluni/src/main/java/java/security/
DKeyRep.java31 import java.security.spec.PKCS8EncodedKeySpec;
174 return f.generatePrivate(new PKCS8EncodedKeySpec(encoded)); in readResolve()
/libcore/ojluni/src/main/java/sun/security/pkcs/
DPKCS8Key.java40 import java.security.spec.PKCS8EncodedKeySpec;
178 PKCS8EncodedKeySpec pkcs8KeySpec in buildPKCS8Key()
179 = new PKCS8EncodedKeySpec(pkcs8EncodedKeyStream.toByteArray()); in buildPKCS8Key()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyFactory2Test.java35 import java.security.spec.PKCS8EncodedKeySpec;
128 … privateKey = fact.generatePrivate(new PKCS8EncodedKeySpec(keys.getPrivate().getEncoded())); in test_generatePrivateLjava_security_spec_KeySpec()
266 PKCS8EncodedKeySpec.class); in test_getKeySpecLjava_security_KeyLjava_lang_Class()
269 .equals(PKCS8EncodedKeySpec.class)); in test_getKeySpecLjava_security_KeyLjava_lang_Class()
/libcore/ojluni/src/test/java/security/KeyStore/
DTestKeystoreBasic.java39 import java.security.spec.PKCS8EncodedKeySpec;
151 KeySpec spec = new PKCS8EncodedKeySpec( in runTest()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DEncryptedPrivateKeyInfoTest.java39 import java.security.spec.PKCS8EncodedKeySpec;
1133 PKCS8EncodedKeySpec eks = epki.getKeySpec(g.c()); in test_ROUNDTRIP_GetKeySpecCipher01()
1233 PKCS8EncodedKeySpec eks = epki in test_ROUNDTRIP_GetKeySpecKey01()
1378 PKCS8EncodedKeySpec eks = epki.getKeySpec( in test_ROUNDTRIP_GetKeySpecKeyString01()
1519 PKCS8EncodedKeySpec eks = epki.getKeySpec( in test_ROUNDTRIP_GetKeySpecKeyProvider01()
/libcore/
Dopenjdk_java_files.bp721 "ojluni/src/main/java/java/security/spec/PKCS8EncodedKeySpec.java",
DEXPECTED_UPSTREAM715 …/java/security/spec/PKCS8EncodedKeySpec.java,jdk17u/jdk-17.0.10-ga,src/java.base/share/classes/jav…
/libcore/api/
Dcurrent.txt9520 public class PKCS8EncodedKeySpec extends java.security.spec.EncodedKeySpec {
9521 ctor public PKCS8EncodedKeySpec(byte[]);
9522 ctor @FlaggedApi("com.android.libcore.v_apis") public PKCS8EncodedKeySpec(byte[], String);
19013 …method public java.security.spec.PKCS8EncodedKeySpec getKeySpec(javax.crypto.Cipher) throws java.s…
19014 …method public java.security.spec.PKCS8EncodedKeySpec getKeySpec(java.security.Key) throws java.sec…
19015 …method public java.security.spec.PKCS8EncodedKeySpec getKeySpec(java.security.Key, String) throws …
19016 …method public java.security.spec.PKCS8EncodedKeySpec getKeySpec(java.security.Key, java.security.P…