Searched refs:PrivateKey (Results 26 - 50 of 128) sorted by relevance

123456

/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/
H A DConstructKeys.java30 import java.security.PrivateKey;
113 private static final PrivateKey constructPrivateKey(byte[] encodedKey,
117 PrivateKey key = null;
H A DCipherWithWrappingSpi.java30 import java.security.PrivateKey;
210 private final PrivateKey constructPrivateKey(byte[] encodedKey,
214 PrivateKey key = null;
/openjdk7/jdk/test/sun/security/ssl/com/sun/net/ssl/internal/www/protocol/https/HttpsClient/
H A DMyKeyManager.java139 public PrivateKey getPrivateKey(String alias) {
143 if (!(key instanceof PrivateKey))
145 return (PrivateKey)key;
/openjdk7/jdk/test/java/security/Provider/
H A DSupportsParameter.java44 PrivateKey dsaPrivateKey = kp.getPrivate();
47 PrivateKey myPrivateKey = new MyPrivateKey();
62 // DSAPublic/PrivateKey specified as classes
78 // MyPublic/PrivateKey + DSAPublicKey specified as classes
86 // MyPublic/PrivateKey + DSAPublicKey specified as classes
139 private static class MyPrivateKey extends MyKey implements PrivateKey { }
/openjdk7/jdk/test/sun/security/mscapi/
H A DPublicKeyInterop.java41 PrivateKey privKey = null;
50 PrivateKey myPrKey = (PrivateKey) ks.getKey("6888925", null);
H A DSignUsingSHA2withRSA.java62 PrivateKey privateKey = null;
69 privateKey = (PrivateKey) ks.getKey(alias, null);
92 PrivateKey privateKey) throws Exception {
/openjdk7/jdk/test/sun/security/ssl/com/sun/net/ssl/internal/ssl/rsa/
H A DBrokenRSAPrivateCrtKey.java60 PrivateKey privatekey2 = factory.generatePrivate(spec);
/openjdk7/jdk/test/sun/security/pkcs11/Signature/
H A DTestRSAKeyLength.java45 PrivateKey privKey = kp.getPrivate();
/openjdk7/jdk/src/share/classes/java/security/
H A DSignedObject.java146 public SignedObject(Serializable object, PrivateKey signingKey,
238 private void sign(PrivateKey signingKey, Signature signingEngine)
H A DSignatureSpi.java82 protected abstract void engineInitSign(PrivateKey privateKey)
99 protected void engineInitSign(PrivateKey privateKey,
/openjdk7/jdk/src/share/classes/sun/security/ssl/
H A DECDHCrypt.java46 private PrivateKey privateKey;
52 ECDHCrypt(PrivateKey privateKey, PublicKey publicKey) {
H A DSunX509KeyManagerImpl.java42 * All key entries containing a PrivateKey and a non-empty chain of
93 PrivateKey privateKey;
97 X509Credentials(PrivateKey privateKey, X509Certificate[] certificates) {
132 if (key instanceof PrivateKey == false) {
146 X509Credentials cred = new X509Credentials((PrivateKey)key,
182 public PrivateKey getPrivateKey(String alias) {
H A DRSASignature.java116 protected void engineInitSign(PrivateKey privateKey)
121 protected void engineInitSign(PrivateKey privateKey, SecureRandom random)
/openjdk7/jdk/test/sun/security/pkcs11/rsa/
H A DKeyWrap.java62 PrivateKey priv = (PrivateKey)kf.translateKey(kp.getPrivate());
H A DGenKeyStore.java46 private static X509Certificate getCertificate(String suffix, PublicKey publicKey, PrivateKey privateKey) throws Exception {
70 PrivateKey privKey = kp.getPrivate();
/openjdk7/jdk/src/share/classes/sun/security/pkcs/
H A DPKCS8Key.java33 import java.security.PrivateKey;
52 public class PKCS8Key implements PrivateKey {
92 PrivateKey key;
115 public static PrivateKey parseKey (DerValue in) throws IOException
118 PrivateKey privKey;
168 static PrivateKey buildPKCS8Key (AlgorithmId algid, byte[] key)
205 classname = sunProvider.getProperty("PrivateKey.PKCS#8." +
/openjdk7/jdk/src/share/classes/sun/security/pkcs11/
H A DP11DHKeyFactory.java80 PrivateKey implTranslatePrivateKey(PrivateKey key)
95 key = (PrivateKey)factory.translateKey(key);
101 throw new InvalidKeyException("PrivateKey must be instance "
141 protected PrivateKey engineGeneratePrivate(KeySpec keySpec)
147 PrivateKey key = factory.generatePrivate(keySpec);
193 private PrivateKey generatePrivate(BigInteger x, BigInteger p,
H A DP11DSAKeyFactory.java75 PrivateKey implTranslatePrivateKey(PrivateKey key)
93 throw new InvalidKeyException("PrivateKey must be instance "
134 protected PrivateKey engineGeneratePrivate(KeySpec keySpec)
140 PrivateKey key = new sun.security.provider.DSAPrivateKey(encoded);
188 private PrivateKey generatePrivate(BigInteger x, BigInteger p,
H A DP11RSAKeyFactory.java74 PrivateKey implTranslatePrivateKey(PrivateKey key)
143 protected PrivateKey engineGeneratePrivate(KeySpec keySpec)
149 PrivateKey key =
211 private PrivateKey generatePrivate(BigInteger n, BigInteger d)
233 private PrivateKey generatePrivate(BigInteger n, BigInteger e,
/openjdk7/jdk/src/share/classes/sun/security/rsa/
H A DRSAKeyFactory.java37 * KeyFactory for RSA keys. Keys must be instances of PublicKey or PrivateKey
48 * . PrivateKey with a PKCS#8 encoding
190 } else if (key instanceof PrivateKey) {
191 return translatePrivateKey((PrivateKey)key);
210 protected PrivateKey engineGeneratePrivate(KeySpec keySpec)
248 private PrivateKey translatePrivateKey(PrivateKey key)
312 private PrivateKey generatePrivate(KeySpec keySpec)
/openjdk7/jdk/src/share/classes/com/sun/org/apache/xml/internal/security/algorithms/implementations/
H A DSignatureDSA.java27 import java.security.PrivateKey;
183 if (!(privateKey instanceof PrivateKey)) {
185 String needed = PrivateKey.class.getName();
193 this._signatureAlgorithm.initSign((PrivateKey) privateKey,
205 if (!(privateKey instanceof PrivateKey)) {
207 String needed = PrivateKey.class.getName();
215 this._signatureAlgorithm.initSign((PrivateKey) privateKey);
H A DSignatureECDSA.java30 import java.security.PrivateKey;
270 if (!(privateKey instanceof PrivateKey)) {
272 String needed = PrivateKey.class.getName();
280 this._signatureAlgorithm.initSign((PrivateKey) privateKey,
290 if (!(privateKey instanceof PrivateKey)) {
292 String needed = PrivateKey.class.getName();
300 this._signatureAlgorithm.initSign((PrivateKey) privateKey);
/openjdk7/jdk/test/sun/security/provider/KeyStore/
H A DCaseSensitiveAliases.java95 PrivateKey p1 = kpg.generateKeyPair().getPrivate();
96 PrivateKey p2 = kpg.generateKeyPair().getPrivate();
/openjdk7/jdk/test/sun/security/rsa/
H A DGenKeyStore.java46 private static X509Certificate getCertificate(String suffix, PublicKey publicKey, PrivateKey privateKey) throws Exception {
70 PrivateKey privKey = kp.getPrivate();
/openjdk7/jdk/test/sun/security/pkcs11/KeyAgreement/
H A DTestInterop.java90 PrivateKey privA = kf.generatePrivate(privSpecA);
95 PrivateKey privB = kf.generatePrivate(privSpecB);

Completed in 129 milliseconds

123456