HomeSort by relevance Sort by last modified time
    Searched full:privatekey (Results 1 - 25 of 250) sorted by null

1 2 3 4 5 6 7 8 910

  /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;
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/util/
AsymmetricKeyInfoConverter.java 4 import java.security.PrivateKey;
12 PrivateKey generatePrivate(PrivateKeyInfo keyInfo)
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/interfaces/
ECPrivateKey.java 4 import java.security.PrivateKey;
10 extends ECKey, 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...]
  /frameworks/base/core/java/android/webkit/
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) {
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 OpenSSLKeyHolder) {
60 OpenSSLKey pkey = ((OpenSSLKeyHolder) privateKey).getOpenSSLKey();
63 setSslClientCertFromPKCS8(privateKey.getEncoded(), chainBytes);
  /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
KSPrivateKeyEntryTest.java 26 import java.security.PrivateKey;
42 private PrivateKey testPrivateKey;
53 testPrivateKey = (diffKeys ? (PrivateKey)new tmpPrivateKey() :
54 (PrivateKey)new tmpPrivateKey(testChain[0].getPublicKey().getAlgorithm()));
58 * Test for <code>PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain)</code>
60 * Assertion: throws NullPointerException when privateKey is null
64 PrivateKey pk = null;
67 fail("NullPointerException must be thrown when privateKey is null");
73 * Test for <code>PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain)</code
    [all...]
PrivateKeyTest.java 25 import java.security.PrivateKey;
30 * Tests for <code>PrivateKey</code> class field
40 assertEquals("Incorrect serialVersionUID", cPrKey.getSerVerUID(), //PrivateKey.serialVersionUID,
44 public class checkPrivateKey implements PrivateKey {
SignatureSpiTest.java 10 import java.security.PrivateKey;
101 protected void engineInitSign(PrivateKey privateKey)
156 public void engineInitSign(PrivateKey privateKey) {
190 public void engineInitSign(PrivateKey privateKey) {
231 protected void engineInitSign(PrivateKey privateKey)
273 protected void engineInitSign(PrivateKey privateKey, SecureRandom random
    [all...]
KeyPairTest.java 26 import java.security.PrivateKey;
52 static PrivateKey getPrivate() {
53 return new PrivateKey() {
69 * Test #1 for <code>KeyPair(PublicKey, PrivateKey)</code> constructor<br>
84 * Test #2 for <code>KeyPair(PublicKey, PrivateKey)</code> constructor<br>
109 PrivateKey pk = TestKeyPair.getPrivate();
  /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);
  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
KSPrivateKeyEntryTest.java 48 private PrivateKey testPrivateKey;
59 testPrivateKey = (diffKeys ? (PrivateKey)new tmpPrivateKey() :
60 (PrivateKey)new tmpPrivateKey(testChain[0].getPublicKey().getAlgorithm()));
64 * Test for <code>PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain)</code>
66 * Assertion: throws NullPointerException when privateKey is null
70 PrivateKey pk = null;
73 fail("NullPointerException must be thrown when privateKey is null");
79 * Test for <code>PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain)</code
    [all...]
PrivateKeyTest.java 23 import java.security.PrivateKey;
29 * Tests for <code>PrivateKey</code> class field
49 assertEquals("Incorrect serialVersionUID", cPrKey.getSerVerUID(), //PrivateKey.serialVersionUID,
53 public class checkPrivateKey implements PrivateKey {
  /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...]
  /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(),
  /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/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...]
  /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);
  /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/main/java/org/apache/harmony/xnet/provider/jsse/
OpenSSLSignature.java 22 import java.security.PrivateKey;
147 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException {
150 if (privateKey instanceof OpenSSLKeyHolder) {
151 OpenSSLKey pkey = ((OpenSSLKeyHolder) privateKey).getOpenSSLKey();
154 } else if (privateKey instanceof RSAPrivateCrtKey) {
159 RSAPrivateCrtKey rsaPrivateKey = (RSAPrivateCrtKey) privateKey;
161 } else if (privateKey instanceof RSAPrivateKey) {
166 RSAPrivateKey rsaPrivateKey = (RSAPrivateKey) privateKey;
168 } else if (privateKey instanceof DSAPrivateKey)
    [all...]
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
SSLUtils.java 30 import java.security.PrivateKey;
120 @Override public abstract PrivateKey getPrivateKey(String alias);
172 public PrivateKey getPrivateKey(String alias) {
194 private final PrivateKey mPrivateKey;
214 PrivateKey privateKey;
216 privateKey = KeyChain.getPrivateKey(context, alias);
225 if (certificateChain == null || privateKey == null) {
229 return new KeyChainKeyManager(alias, certificateChain, privateKey);
242 String clientAlias, X509Certificate[] certificateChain, PrivateKey privateKey)
    [all...]
  /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)
PrivateKeyStub.java 24 import java.security.PrivateKey;
27 * Stub for interface PrivateKey tests
30 public class PrivateKeyStub implements PrivateKey {
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/
KeyFactory.java 6 import java.security.PrivateKey;
21 protected PrivateKey engineGeneratePrivate(
30 PrivateKey key = BouncyCastleProvider.getPrivateKey(info);

Completed in 1607 milliseconds

1 2 3 4 5 6 7 8 910