/libcore/luni/src/main/java/java/security/ |
KeyPair.java | 27 * @see PublicKey 33 private final PublicKey publicKey; 39 * @param publicKey 44 public KeyPair(PublicKey publicKey, PrivateKey privateKey) { 46 this.publicKey = publicKey; 63 public PublicKey getPublic() { 64 return publicKey; [all...] |
Identity.java | 38 private PublicKey publicKey; 92 PublicKey certPK = certificate.getPublicKey(); 93 if (publicKey != null) { 94 if (!checkKeysEqual(publicKey, certPK)) { 98 publicKey = certPK; 109 private static boolean checkKeysEqual(PublicKey pk1, PublicKey pk2) { 187 if (publicKey == null) { 188 return (identity.publicKey == null) [all...] |
/frameworks/base/core/java/android/content/pm/ |
VerifierInfo.java | 22 import java.security.PublicKey; 35 public final PublicKey publicKey; 42 * @param publicKey the public key for the signer encoded in Base64. Must 46 public VerifierInfo(String packageName, PublicKey publicKey) { 49 } else if (publicKey == null) { 50 throw new IllegalArgumentException("publicKey must not be null"); 54 this.publicKey = publicKey; [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
SubjectPublicKeyInfo.java | 27 import java.security.PublicKey; 58 private PublicKey publicKey; 106 * Returns The PublicKey corresponding to this SubjectPublicKeyInfo 109 public PublicKey getPublicKey() { 110 if (publicKey == null) { 119 publicKey = KeyFactory.getInstance(alg) 124 if (publicKey == null) { 125 publicKey = new X509PublicKey(alg_oid, getEncoded(), 129 return publicKey; [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/x509/ |
SubjectPublicKeyInfo.java | 52 DEREncodable publicKey) 54 this.keyData = new DERBitString(publicKey); 60 byte[] publicKey) 62 this.keyData = new DERBitString(publicKey); 114 * publicKey BIT STRING }
|
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/ |
JDKDSASigner.java | 7 import java.security.PublicKey; 55 PublicKey publicKey) 61 // if (publicKey instanceof GOST3410Key) 63 // param = GOST3410Util.generatePublicKeyParameter(publicKey); 65 // else if (publicKey instanceof DSAKey) 68 if (publicKey instanceof DSAKey) 71 param = DSAUtil.generatePublicKeyParameter(publicKey); 77 byte[] bytes = publicKey.getEncoded(); 79 publicKey = JDKKeyFactory.createPublicKeyFromDERStream(bytes) [all...] |
JCEECPrivateKey.java | 50 private DERBitString publicKey; 107 this.publicKey = key.publicKey; 138 publicKey = getPublicKeyDetails(pubKey); 177 publicKey = getPublicKeyDetails(pubKey); 263 this.publicKey = ec.getPublicKey(); 322 if (publicKey != null) 324 keyStructure = new ECPrivateKeyStructure(this.getS(), publicKey, params);
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/ |
CertificateFactory_ImplTest.java | 27 import java.security.PublicKey; 210 private static PublicKey publicKey; 219 publicKey = keyFactory.generatePublic(publicKeySpec); 222 publicKey = null; 226 publicKey = null; 269 if (publicKey != null) { 272 ((X509CRL) i.next()).verify(publicKey); 312 if (publicKey != null) { 314 crl.verify(publicKey); [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/ |
DSAKeyFactoryImpl.java | 25 import java.security.PublicKey; 78 protected PublicKey engineGeneratePublic(KeySpec keySpec) 144 DSAPublicKey publicKey = (DSAPublicKey) key; 148 y = publicKey.getY(); 150 DSAParams params = publicKey.getParams(); 201 DSAPublicKey publicKey = (DSAPublicKey) key; 202 DSAParams params = publicKey.getParams(); 205 return engineGeneratePublic(new DSAPublicKeySpec(publicKey
|
SHA1withDSA_SignatureImpl.java | 26 import java.security.PublicKey; 111 * Initializes this signature object with PublicKey object 115 * publicKey DSAPublicKey object 117 * InvalidKeyException if publicKey is not DSAPublicKey object 119 protected void engineInitVerify(PublicKey publicKey) 127 if (publicKey == null || !(publicKey instanceof DSAPublicKey)) { 128 throw new InvalidKeyException("publicKey is not an instance of DSAPublicKey"); 131 DSAParams params = ((DSAPublicKey) publicKey).getParams() [all...] |
/libcore/support/src/test/java/tests/security/ |
KeyFactoryTest.java | 23 import java.security.PublicKey; 86 PublicKey publicKey = null; 88 publicKey = factory.generatePublic(publicKeySpec); 93 check(new KeyPair(publicKey, privateKey));
|
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
TrustedCertificateIndex.java | 19 import java.security.PublicKey; 86 PublicKey publicKey; 90 publicKey = caCert.getPublicKey(); 92 publicKey = anchor.getCAPublicKey(); 94 cert.verify(publicKey); 116 PublicKey certPublicKey = cert.getPublicKey(); 118 PublicKey caPublicKey;
|
OpenSSLSignature.java | 23 import java.security.PublicKey; 172 protected void engineInitVerify(PublicKey publicKey) throws InvalidKeyException { 174 // + publicKey.getClass().getCanonicalName()); 176 if (publicKey instanceof DSAPublicKey) { 178 DSAPublicKey dsaPublicKey = (DSAPublicKey)publicKey; 187 } else if (publicKey instanceof RSAPublicKey) { 189 RSAPublicKey rsaPublicKey = (RSAPublicKey)publicKey;
|
/external/oauth/core/src/main/java/net/oauth/signature/ |
RSA_SHA1.java | 24 import java.security.PublicKey; 61 * of type java.security.PublicKey, String, or byte[]. In the latter two 86 final static public String PUBLIC_KEY = "RSA-SHA1.PublicKey"; 90 private PublicKey publicKey = null; 116 if (publicKeyObject instanceof PublicKey) { 117 publicKey = (PublicKey)publicKeyObject; 119 publicKey = getPublicKeyFromPem((String)publicKeyObject); 121 publicKey = getPublicKeyFromDer((byte[])publicKeyObject) [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/asymmetric/ec/ |
Signature.java | 7 import java.security.PublicKey; 49 protected void engineInitVerify(PublicKey publicKey) 54 if (publicKey instanceof ECPublicKey) 56 param = ECUtil.generatePublicKeyParameter(publicKey); 62 byte[] bytes = publicKey.getEncoded(); 64 publicKey = JDKKeyFactory.createPublicKeyFromDERStream(bytes); 66 if (publicKey instanceof ECPublicKey) 68 param = ECUtil.generatePublicKeyParameter(publicKey);
|
/external/bouncycastle/src/main/java/org/bouncycastle/asn1/sec/ |
ECPrivateKeyStructure.java | 57 DERBitString publicKey, 72 if (publicKey != null) 74 v.add(new DERTaggedObject(true, 1, publicKey)); 122 * publicKey [1] BIT STRING OPTIONAL }
|
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
MySignature2.java | 26 import java.security.PublicKey; 45 protected void engineInitVerify(PublicKey publicKey)
|
MySignature1.java | 26 import java.security.PublicKey; 61 protected void engineInitVerify(PublicKey publicKey)
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
MySignature2.java | 27 import java.security.PublicKey; 46 protected void engineInitVerify(PublicKey publicKey)
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
SignerTest.java | 102 PublicKeyStub publicKey = new PublicKeyStub("public", "fff", null); 103 KeyPair kp = new KeyPair(publicKey, privateKey);
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/serialization/ |
KeyPairTest.java | 48 PublicKeyStub publicKey = new PublicKeyStub("publicAlgorithm", 51 keyPair = new KeyPair(publicKey, privateKey); 79 assertEquals("PublicKey class", key1.getClass(), key2.getClass()); 80 assertEquals("PublicKey algorithm", key1.getAlgorithm(), key2 82 assertEquals("PublicKey format", key1.getFormat(), key2.getFormat()); 83 assertTrue("PublicKey encoded", Arrays.equals(key1.getEncoded(),
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
KeyAgreementThread.java | 25 import java.security.PublicKey; 50 public byte[] getSecretKey(String alg, byte[] publicKey) throws Exception { 51 X509EncodedKeySpec x509KeySpec = new X509EncodedKeySpec(publicKey); 53 PublicKey pubKey = keyFact.generatePublic(x509KeySpec);
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/ |
DSAKeyFactoryImplTest.java | 62 static DSAPublicKey publicKey; 110 publicKey = (DSAPublicKey) keyPair.getPublic(); 113 publicParams = publicKey.getParams(); 118 publicY = publicKey.getY(); 120 publicAlgorithm = publicKey.getAlgorithm(); 121 publicFormat = publicKey.getFormat(); 123 publicEncoding = publicKey.getEncoded(); 534 kf.getKeySpec( publicKey, DSAPrivateKeySpec.class); 539 kf.getKeySpec( publicKey, PKCS8EncodedKeySpec.class); 568 kf.getKeySpec(publicKey, null) [all...] |
/external/apache-harmony/x-net/src/test/impl/java/org/apache/harmony/xnet/tests/provider/jsse/ |
DigitalSignatureTest.java | 25 import java.security.PublicKey; 82 final PublicKey publicKey = keyFactory 90 public PublicKey getPublicKey() { 91 return publicKey; 105 public void verify(PublicKey key) throws CertificateException, 111 public void verify(PublicKey key, String sigProvider)
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
SignerTest.java | 128 PublicKeyStub publicKey = new PublicKeyStub("public", "fff", null); 129 KeyPair kp = new KeyPair(publicKey, privateKey);
|