/build/tools/signapk/ |
SignApk.java | 405 CMSTypedData data, X509Certificate publicKey, PrivateKey privateKey, 412 certList.add(publicKey); 417 getAlgorithm(publicKey) == USE_SHA256 ? "SHA256withRSA" : "SHA1withRSA") 426 .build(signer, publicKey)); 532 private X509Certificate publicKey; 540 X509Certificate publicKey, PrivateKey privateKey, 544 this.publicKey = publicKey; 563 int hash = getAlgorithm(publicKey); 566 long timestamp = publicKey.getNotBefore().getTime() + 3600L * 1000 [all...] |
/external/apache-harmony/auth/src/test/java/common/javax/security/auth/x500/ |
X500PrivateCredentialTest.java | 30 import java.security.PublicKey; 115 public void verify(PublicKey key) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException { 118 public void verify(PublicKey key, String sigProvider) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException { 125 public PublicKey getPublicKey() {
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/javax/security/cert/ |
CertificateTest.java | 27 import java.security.PublicKey; 52 public void verify(PublicKey key) 58 public void verify(PublicKey key, String sigProvider) 68 public PublicKey getPublicKey() {
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/ |
ObjectDigestInfo.java | 20 * publicKey (0), 39 public final static int publicKey = 0; 86 * {@link #publicKey} <code>otherObjectTypeID</code> must be given, 162 * publicKey (0),
|
/libcore/luni/src/main/java/java/security/cert/ |
PKIXCertPathValidatorResult.java | 20 import java.security.PublicKey; 35 private final PublicKey subjectPublicKey; 50 PolicyNode policyTree, PublicKey subjectPublicKey) { 76 public PublicKey getPublicKey() {
|
/libcore/luni/src/test/java/tests/api/javax/security/cert/ |
CertificateTest.java | 32 import java.security.PublicKey; 49 public void verify(PublicKey key) throws CertificateException, 54 public void verify(PublicKey key, String sigProvider) 64 public PublicKey getPublicKey() {
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
MyKeyStoreSpi.java | 33 import java.security.PublicKey; 155 public PublicKey getPublicKey() { 163 public void verify(PublicKey key) { 167 public void verify(PublicKey key, String sigProvider) {
|
IdentityStub.java | 28 import java.security.PublicKey; 75 public IdentityStub(String name, PublicKey key) throws KeyManagementException{
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/ |
DSAUtil.java | 5 import java.security.PublicKey; 44 PublicKey key)
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/ |
BaseKeyFactorySpi.java | 6 import java.security.PublicKey; 41 protected PublicKey engineGeneratePublic(
|
/external/chromium_org/net/third_party/mozilla_security_manager/ |
nsKeygenHandler.cpp | 108 SECKEYPublicKey *publicKey = NULL; 143 &publicKey, 163 PK11_SetPublicKeyNickname(publicKey, label.c_str()); 172 spkInfo = SECKEY_CreateSubjectPublicKeyInfo(publicKey); 240 if (publicKey) { 243 PK11_DestroyTokenObject(publicKey->pkcs11Slot, publicKey->pkcs11ID); 245 SECKEY_DestroyPublicKey(publicKey);
|
/libcore/crypto/src/main/java/org/conscrypt/ |
OpenSSLRSAKeyPairGenerator.java | 24 import java.security.PublicKey; 48 PublicKey pubKey = new OpenSSLRSAPublicKey(key);
|
X509PublicKey.java | 19 import java.security.PublicKey; 26 public class X509PublicKey implements PublicKey {
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
IdentityScope2Test.java | 24 import java.security.PublicKey; 33 private static PublicKey PUB_KEY; 34 private static PublicKey getPubKey() throws Exception { 45 public IdentityScopeSubclass(String name, PublicKey pk) { 84 public Identity getIdentity(PublicKey pk) { 262 * java.security.IdentityScope#getIdentity(java.security.PublicKey) 273 assertNull("Test 2: Null value expected.", sub.getIdentity((PublicKey) null)); 275 PublicKey anotherKey = KeyPairGenerator.getInstance("DSA").genKeyPair().getPublic();
|
KeyFactorySpiTest.java | 23 import java.security.PublicKey; 59 protected PublicKey engineGeneratePublic(KeySpec keySpec){
|
Identity2Test.java | 30 import java.security.PublicKey; 38 private static PublicKey PUB_KEY; 39 private static PublicKey getPubKey() throws Exception { 80 public PublicKey getPublicKey() { 217 PublicKey returnedPubKey = sub.getPublicKey(); 218 assertEquals("Wrong PublicKey returned", getPubKey(), returnedPubKey); 381 * java.security.Identity#setPublicKey(PublicKey key) 387 PublicKey returnedPubKey = sub.getPublicKey(); 388 assertEquals("Wrong PublicKey returned", getPubKey(), returnedPubKey); 391 assertEquals("Wrong PublicKey returned", null, sub.getPublicKey()) [all...] |
KeyFactory2Test.java | 30 import java.security.PublicKey; 136 // Test for method java.security.PublicKey 153 PublicKey publicKey = fact.generatePublic(publicKeySpec); 159 Arrays.toString(publicKey.getEncoded())); 248 PublicKey publicKey = fact.generatePublic(publicKeySpec); 260 Arrays.toString(publicKey.getEncoded())); 355 public PublicKey engineGeneratePublic(KeySpec keySpec) {
|
/libcore/support/src/test/java/tests/security/ |
SignatureHelper.java | 23 import java.security.PublicKey; 42 public void test(PrivateKey encryptKey, PublicKey decryptKey) {
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/netscape/ |
NetscapeCertRequest.java | 11 import java.security.PublicKey; 42 * PublicKey's encoded-format has to be X.509. 53 PublicKey pubkey ; 133 PublicKey pub_key) throws NoSuchAlgorithmException, 186 public PublicKey getPublicKey() 191 public void setPublicKey(PublicKey value)
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/x509/ |
SubjectPublicKeyInfoTest.java | 34 import java.security.PublicKey; 69 PublicKey pubKey = spki.getPublicKey(); 77 PublicKey pubKey = spki.getPublicKey(); 89 PublicKey pubKey = spki.getPublicKey(); 114 protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { 140 public static class MyTestPublicKey implements PublicKey {
|
/libcore/luni/src/test/java/tests/security/cert/ |
TrustAnchorTest.java | 32 import java.security.PublicKey; 57 * Test #1 for <code>TrustAnchor(String, PublicKey, byte[])</code> constructor<br> 66 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); 79 * Test #2 for <code>TrustAnchor(String, PublicKey, byte[])</code> constructor<br> 88 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); 94 * Test #3 for <code>TrustAnchor(String, PublicKey, byte[])</code> constructor<br> 103 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); 117 * Test #4 for <code>TrustAnchor(String, PublicKey, byte[])</code> constructor<br> 126 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); 165 * Test #1 for <code>TrustAnchor(X500Principal, PublicKey, byte[])</code> constructor<br [all...] |
CertificateTest.java | 33 import java.security.PublicKey; 178 * This test just calls <code>verify(PublicKey)</code> method<br> 197 * This test just calls <code>verify(PublicKey,String)</code> method<br> 240 public class MyModifiablePublicKey implements PublicKey { 242 private PublicKey key; 250 public MyModifiablePublicKey(PublicKey k) { 317 * This test just calls <code>verify(PublicKey,String)</code> method<br> 356 PublicKey k = cert.getPublicKey(); 375 * This test just calls <code>verify(PublicKey)</code> method<br> 393 PublicKey k = cert.getPublicKey() [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/ |
TrustAnchorTest.java | 26 import java.security.PublicKey; 54 * Test #1 for <code>TrustAnchor(String, PublicKey, byte[])</code> constructor<br> 63 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); 76 * Test #2 for <code>TrustAnchor(String, PublicKey, byte[])</code> constructor<br> 85 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); 91 * Test #3 for <code>TrustAnchor(String, PublicKey, byte[])</code> constructor<br> 100 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); 114 * Test #4 for <code>TrustAnchor(String, PublicKey, byte[])</code> constructor<br> 123 PublicKey pk = new TestKeyPair(keyAlg).getPublic(); 162 * Test #1 for <code>TrustAnchor(X500Principal, PublicKey, byte[])</code> constructor<br> [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/provider/cert/ |
X509CertImpl.java | 32 import java.security.PublicKey; 86 private volatile PublicKey publicKey; 355 @Override public PublicKey getPublicKey() { 356 PublicKey result = publicKey; 358 publicKey = result = tbsCert.getSubjectPublicKeyInfo().getPublicKey(); 367 @Override public void verify(PublicKey key) 382 @Override public void verify(PublicKey key, String sigProvider)
|
/libcore/luni/src/test/java/com/android/org/bouncycastle/jce/provider/ |
CertBlacklistTest.java | 31 import java.security.PublicKey; 160 private static String getHash(PublicKey publicKey) throws Exception { 161 byte[] encoded = publicKey.getEncoded(); 201 private static PublicKey createPublicKey(String cert) throws Exception { 230 PublicKey pk = createPublicKey(TEST_CERT); 242 PublicKey pk = createPublicKey(TEST_CERT); 395 PublicKey pk = createPublicKey(TURKTRUST_1); 411 PublicKey pk = createPublicKey(TURKTRUST_2);
|