/external/bouncycastle/src/main/java/org/bouncycastle/jce/interfaces/ |
ECPublicKey.java | 3 import java.security.PublicKey; 11 extends ECKey, PublicKey
|
/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...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
PublicKeyTest.java | 23 import java.security.PublicKey; 29 * Tests for <code>PublicKey</code> class field 50 assertEquals("Incorrect serialVersionUID", cPK.getSerVerUID(), //PublicKey.serialVersionUID, 54 public class checkPublicKey implements PublicKey { 56 return "PublicKey";
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
PublicKeyTest.java | 25 import java.security.PublicKey; 30 * Tests for <code>PublicKey</code> class field 40 assertEquals("Incorrect serialVersionUID", cPK.getSerVerUID(), //PublicKey.serialVersionUID, 44 public class checkPublicKey implements PublicKey { 46 return "PublicKey";
|
SignatureSpiTest.java | 11 import java.security.PublicKey; 107 protected void engineInitVerify(PublicKey publicKey) 159 public void engineInitVerify(PublicKey publicKey) { 193 public void engineInitVerify(PublicKey publicKey) { 237 protected void engineInitVerify(PublicKey publicKey) 403 signature.initVerify(new PublicKey() { [all...] |
KeyPairTest.java | 27 import java.security.PublicKey; 39 static PublicKey getPublic() { 40 return new PublicKey() { 69 * Test #1 for <code>KeyPair(PublicKey, PrivateKey)</code> constructor<br> 84 * Test #2 for <code>KeyPair(PublicKey, PrivateKey)</code> constructor<br> 129 PublicKey pk = TestKeyPair.getPublic();
|
/external/bouncycastle/src/main/java/org/bouncycastle/x509/extension/ |
SubjectKeyIdentifierStructure.java | 5 import java.security.PublicKey; 31 PublicKey pubKey) 47 PublicKey pubKey)
|
/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/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/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/main/java/org/apache/harmony/xnet/provider/jsse/ |
TrustedCertificateIndex.java | 19 import java.security.PublicKey; 99 PublicKey publicKey; 103 publicKey = caCert.getPublicKey(); 105 publicKey = anchor.getCAPublicKey(); 107 cert.verify(publicKey); 129 PublicKey certPublicKey = cert.getPublicKey(); 131 PublicKey caPublicKey;
|
/libcore/support/src/test/java/tests/security/ |
KeyFactoryTest.java | 23 import java.security.PublicKey; 59 PublicKey publicKey = factory.generatePublic(publicKeySpec); 60 check(new KeyPair(publicKey, privateKey));
|
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
PublicKeyStub.java | 25 import java.security.PublicKey; 29 * Stub implements interface PublicKey 33 public class PublicKeyStub implements PublicKey {
|
MySignature2.java | 26 import java.security.PublicKey; 45 protected void engineInitVerify(PublicKey publicKey)
|
/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...] |
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
PublicKeyStub.java | 26 import java.security.PublicKey; 30 * Stub implements interface PublicKey 34 public class PublicKeyStub implements PublicKey {
|
MySignature2.java | 27 import java.security.PublicKey; 46 protected void engineInitVerify(PublicKey publicKey)
|
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/cert/ |
MyCertificate.java | 27 import java.security.PublicKey; 64 public void verify(PublicKey key) throws CertificateException, 72 public void verify(PublicKey key, String sigProvider) 88 public PublicKey getPublicKey() { 89 return new PublicKey() {
|
/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/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/ |
PKIXCertPathBuilderResultTest.java | 25 import java.security.PublicKey; 50 * PublicKey stub 52 private static PublicKey testPublicKey = new PublicKey() { 79 * PolicyNode, PublicKey)</code> constructor<br> 102 * PolicyNode, PublicKey)</code> constructor<br> 125 * PolicyNode, PublicKey)</code> constructor<br> 149 * PolicyNode, PublicKey)</code> constructor<br> 168 * PolicyNode, PublicKey)</code> constructor<br> 170 * if publicKey is <code>null</code [all...] |
PKIXCertPathValidatorResultTest.java | 25 import java.security.PublicKey; 41 * PublicKey stub 43 private static PublicKey testPublicKey = new PublicKey() { 69 * PolicyNode, PublicKey)</code> constructor<br> 91 * PolicyNode, PublicKey)</code> constructor<br> 109 * PolicyNode, PublicKey)</code> constructor<br> 111 * <code>PublicKey</code> parameter is <code>null</code> 131 * PolicyNode, PublicKey)</code> constructor<br> 181 PublicKey pk = testPublicKey [all...] |
/libcore/luni/src/test/java/tests/security/cert/ |
PKIXCertPathBuilderResultTest.java | 31 import java.security.PublicKey; 51 * PublicKey stub 53 private static PublicKey testPublicKey = new PublicKey() { 74 * PolicyNode, PublicKey)</code> constructor<br> 97 * PolicyNode, PublicKey)</code> constructor<br> 120 * PolicyNode, PublicKey)</code> constructor<br> 144 * PolicyNode, PublicKey)</code> constructor<br> 163 * PolicyNode, PublicKey)</code> constructor<br> 165 * if publicKey is <code>null</code [all...] |
PKIXCertPathValidatorResultTest.java | 28 import java.security.PublicKey; 42 * PublicKey stub 44 private static PublicKey testPublicKey = new PublicKey() { 63 * PolicyNode, PublicKey)</code> constructor<br> 85 * PolicyNode, PublicKey)</code> constructor<br> 103 * PolicyNode, PublicKey)</code> constructor<br> 105 * <code>PublicKey</code> parameter is <code>null</code> 125 * PolicyNode, PublicKey)</code> constructor<br> 175 PublicKey pk = testPublicKey [all...] |