HomeSort by relevance Sort by last modified time
    Searched refs:privateKey (Results 1 - 25 of 78) sorted by null

1 2 3 4

  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
AsymmetricKeyParameter.java 8 boolean privateKey;
11 boolean privateKey)
13 this.privateKey = privateKey;
18 return privateKey;
  /libcore/luni/src/main/java/java/security/
KeyPair.java 26 * @see PrivateKey
32 private final PrivateKey privateKey;
41 * @param privateKey
44 public KeyPair(PublicKey publicKey, PrivateKey privateKey) {
45 this.privateKey = privateKey;
54 public PrivateKey getPrivate() {
55 return privateKey;
    [all...]
Signer.java 33 private PrivateKey privateKey;
70 public PrivateKey getPrivateKey() {
71 return privateKey;
93 this.privateKey = pair.getPrivate();
SignatureSpi.java 53 * @param privateKey
56 * if {@code privateKey} is not valid.
58 protected abstract void engineInitSign(PrivateKey privateKey)
66 * @param privateKey
71 * if {@code privateKey} is not valid.
73 protected void engineInitSign(PrivateKey privateKey, SecureRandom random)
76 engineInitSign(privateKey);
  /frameworks/base/core/java/android/webkit/
ClientCertRequestHandler.java 20 import java.security.PrivateKey;
54 public void proceed(PrivateKey privateKey, X509Certificate[] chain) {
57 mTable.Allow(mHostAndPort, privateKey, chainBytes);
59 if (privateKey instanceof OpenSSLRSAPrivateKey) {
60 setSslClientCertFromCtx(((OpenSSLRSAPrivateKey)privateKey).getPkeyContext(),
62 } else if (privateKey instanceof OpenSSLDSAPrivateKey) {
63 setSslClientCertFromCtx(((OpenSSLDSAPrivateKey)privateKey).getPkeyContext(),
66 setSslClientCertFromPKCS8(privateKey.getEncoded(),chainBytes);
SslClientCertLookupTable.java 19 import java.security.PrivateKey;
30 private final Map<String, PrivateKey> privateKeys;
42 privateKeys = new HashMap<String, PrivateKey>();
47 public void Allow(String host_and_port, PrivateKey privateKey, byte[][] chain) {
48 privateKeys.put(host_and_port, privateKey);
67 public PrivateKey PrivateKey(String host_and_port) {
  /libcore/luni/src/main/java/org/apache/harmony/security/pkcs8/
PrivateKeyInfo.java 39 * privateKey PrivateKey,
46 * PrivateKey ::= OCTET STRING
53 private final byte[] privateKey;
58 byte[] privateKey, List attributes) {
61 this.privateKey = privateKey;
66 AlgorithmIdentifier privateKeyAlgorithm, byte[] privateKey,
68 this(version, privateKeyAlgorithm, privateKey, attributes);
88 return privateKey;
    [all...]
  /packages/apps/Browser/src/com/android/browser/
KeyChainLookup.java 24 import java.security.PrivateKey;
37 PrivateKey privateKey;
40 privateKey = KeyChain.getPrivateKey(mContext, mAlias);
49 mHandler.proceed(privateKey, certificateChain);
  /libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
OpenSSLSignature.java 22 import java.security.PrivateKey;
121 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException {
124 if (privateKey instanceof OpenSSLDSAPrivateKey) {
129 OpenSSLDSAPrivateKey dsaPrivateKey = (OpenSSLDSAPrivateKey) privateKey;
131 } else if (privateKey instanceof DSAPrivateKey) {
136 DSAPrivateKey dsaPrivateKey = (DSAPrivateKey) privateKey;
138 } else if (privateKey instanceof OpenSSLRSAPrivateKey) {
143 OpenSSLRSAPrivateKey rsaPrivateKey = (OpenSSLRSAPrivateKey) privateKey;
145 } else if (privateKey instanceof RSAPrivateCrtKey)
    [all...]
OpenSSLSignatureRawRSA.java 22 import java.security.PrivateKey;
94 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException {
95 if (privateKey instanceof OpenSSLRSAPrivateKey) {
96 OpenSSLRSAPrivateKey rsaPrivateKey = (OpenSSLRSAPrivateKey) privateKey;
98 } else if (privateKey instanceof RSAPrivateCrtKey) {
99 RSAPrivateCrtKey rsaPrivateKey = (RSAPrivateCrtKey) privateKey;
101 } else if (privateKey instanceof RSAPrivateKey) {
102 RSAPrivateKey rsaPrivateKey = (RSAPrivateKey) privateKey;
  /libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/
DSAKeyFactoryImpl.java 24 import java.security.PrivateKey;
50 protected PrivateKey engineGeneratePrivate(KeySpec keySpec)
121 DSAPrivateKey privateKey = (DSAPrivateKey) key;
125 x = privateKey.getX();
127 DSAParams params = privateKey.getParams();
186 DSAPrivateKey privateKey = (DSAPrivateKey) key;
187 DSAParams params = privateKey.getParams();
191 privateKey.getX(), params.getP(), params.getQ(),
  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
SignerTest.java 101 PrivateKeyStub privateKey = new PrivateKeyStub("private", "fff", privateKeyData);
103 KeyPair kp = new KeyPair(publicKey, privateKey);
110 assertSame(privateKey, s.getPrivateKey());
KeyStorePrivateKeyEntryTest.java 25 import java.security.PrivateKey;
69 PrivateKey privateKey = keyPair.getPrivate();
74 privateKey, new Certificate[] { certificate });
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
KeyAgreementThread.java 24 import java.security.PrivateKey;
33 private PrivateKey privateKey = null;
42 privateKey = keypair.getPrivate();
56 ka.init(privateKey);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
PrivateKeyInfo.java 53 ASN1Encodable privateKey)
56 this(algId, privateKey, null);
61 ASN1Encodable privateKey,
65 this.privKey = new DEROctetString(privateKey.toASN1Primitive().getEncoded(ASN1Encoding.DER));
135 * privateKey PrivateKey,
140 * PrivateKey ::= OCTET STRING
  /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
KeyStorePrivateKeyEntryTest.java 25 import java.security.PrivateKey;
69 PrivateKey privateKey = keyPair.getPrivate();
74 privateKey, new Certificate[] { certificate });
SignerTest.java 127 PrivateKeyStub privateKey = new PrivateKeyStub("private", "fff", privateKeyData);
129 KeyPair kp = new KeyPair(publicKey, privateKey);
136 assertSame(privateKey, s.getPrivateKey());
  /libcore/support/src/test/java/tests/security/
KeyFactoryTest.java 22 import java.security.PrivateKey;
56 PrivateKey privateKey = factory.generatePrivate(privateKeySpec);
60 check(new KeyPair(publicKey, privateKey));
  /external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/
JcaContentSignerBuilder.java 6 import java.security.PrivateKey;
56 public ContentSigner build(PrivateKey privateKey)
65 sig.initSign(privateKey, random);
69 sig.initSign(privateKey);
  /external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
MySignature2.java 25 import java.security.PrivateKey;
50 protected void engineInitSign(PrivateKey privateKey)
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/
DSASigner.java 6 import java.security.PrivateKey;
97 PrivateKey privateKey,
102 engineInitSign(privateKey);
106 PrivateKey privateKey)
111 // if (privateKey instanceof GOST3410Key)
113 // param = GOST3410Util.generatePrivateKeyParameter(privateKey);
117 param = DSAUtil.generatePrivateKeyParameter(privateKey);
  /libcore/support/src/test/java/org/apache/harmony/security/tests/support/
MySignature2.java 26 import java.security.PrivateKey;
51 protected void engineInitSign(PrivateKey privateKey)
  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/serialization/
KeyPairTest.java 46 PrivateKeyStub privateKey = new PrivateKeyStub("privateAlgorithm",
51 keyPair = new KeyPair(publicKey, privateKey);
90 assertEquals("PrivateKey class", key1.getClass(), key2.getClass());
91 assertEquals("PrivateKey algorithm", key1.getAlgorithm(), key2
93 assertEquals("PrivateKey format", key1.getFormat(), key2.getFormat());
94 assertTrue("PrivateKey encoded", Arrays.equals(key1.getEncoded(),
  /external/oauth/core/src/main/java/net/oauth/signature/
RSA_SHA1.java 23 import java.security.PrivateKey;
47 * of type java.security.PrivateKey, String, or byte[]. In the latter two
85 final static public String PRIVATE_KEY = "RSA-SHA1.PrivateKey";
89 private PrivateKey privateKey = null;
100 if (privateKeyObject instanceof PrivateKey) {
101 privateKey = (PrivateKey)privateKeyObject;
103 privateKey = getPrivateKeyFromPem((String)privateKeyObject);
105 privateKey = getPrivateKeyFromDer((byte[])privateKeyObject)
    [all...]
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
SSLUtils.java 30 import java.security.PrivateKey;
119 @Override public abstract PrivateKey getPrivateKey(String alias);
171 public PrivateKey getPrivateKey(String alias) {
193 private final PrivateKey mPrivateKey;
213 PrivateKey privateKey;
215 privateKey = KeyChain.getPrivateKey(context, alias);
224 if (certificateChain == null || privateKey == null) {
228 return new KeyChainKeyManager(alias, certificateChain, privateKey);
241 String clientAlias, X509Certificate[] certificateChain, PrivateKey privateKey)
    [all...]

Completed in 462 milliseconds

1 2 3 4