Searched refs:PrivateKey (Results 1 - 25 of 128) sorted by relevance

123456

/openjdk7/jdk/src/share/classes/java/security/
H A DPrivateKey.java49 public interface PrivateKey extends Key { interface in inherits:Key
H A DKeyPair.java33 * should be treated like a PrivateKey.
36 * @see PrivateKey
45 private PrivateKey privateKey;
59 public KeyPair(PublicKey publicKey, PrivateKey privateKey) {
78 public PrivateKey getPrivate() {
H A DKeyFactorySpi.java62 * @see PrivateKey
97 protected abstract PrivateKey engineGeneratePrivate(KeySpec keySpec)
H A DSigner.java57 private PrivateKey privateKey;
108 public PrivateKey getPrivateKey() {
136 PrivateKey priv = pair.getPrivate();
/openjdk7/jdk/src/share/classes/java/security/interfaces/
H A DECPrivateKey.java28 import java.security.PrivateKey;
36 * @see PrivateKey
41 public interface ECPrivateKey extends PrivateKey, ECKey {
H A DDSAPrivateKey.java41 public interface DSAPrivateKey extends DSAKey, java.security.PrivateKey {
H A DRSAPrivateKey.java39 public interface RSAPrivateKey extends java.security.PrivateKey, RSAKey
/openjdk7/jdk/src/share/classes/javax/crypto/interfaces/
H A DDHPrivateKey.java39 public interface DHPrivateKey extends DHKey, java.security.PrivateKey {
/openjdk7/jdk/src/windows/classes/sun/security/mscapi/
H A DRSAPrivateKey.java28 import java.security.PrivateKey;
36 class RSAPrivateKey extends Key implements PrivateKey
/openjdk7/jdk/src/share/classes/javax/security/auth/x500/
H A DX500PrivateCredential.java28 import java.security.PrivateKey;
42 private PrivateKey key;
50 * @param key PrivateKey for the certificate
56 public X500PrivateCredential(X509Certificate cert, PrivateKey key) {
69 * @param key PrivateKey for the certificate
75 public X500PrivateCredential(X509Certificate cert, PrivateKey key,
95 * Returns the PrivateKey.
97 * @return the PrivateKey
99 public PrivateKey getPrivateKey() {
128 * @return true if X509Certificate and the PrivateKey ar
[all...]
/openjdk7/jdk/src/share/classes/com/sun/net/ssl/
H A DX509KeyManager.java33 import java.security.PrivateKey;
108 public PrivateKey getPrivateKey(String alias);
/openjdk7/jdk/test/sun/security/rsa/
H A DTestKeyFactory.java64 } else if (key1 instanceof PrivateKey) {
93 private static void testPrivate(KeyFactory kf, PrivateKey key) throws Exception {
95 PrivateKey key2 = (PrivateKey)kf.translateKey(key);
97 PrivateKey key3 = kf.generatePrivate(rsaSpec);
99 PrivateKey key4 = kf.generatePrivate(pkcs8Spec);
101 PrivateKey key5 = kf.generatePrivate(pkcs8Spec2);
109 PrivateKey key6 = kf.generatePrivate(rsaSpec2);
112 PrivateKey key7 = kf.generatePrivate(rsaSpec3);
123 } else if (key instanceof PrivateKey) {
[all...]
H A DTestSignatures.java55 private static void testSignature(String algorithm, PrivateKey privateKey, PublicKey publicKey) throws Exception {
79 private static void test(PrivateKey privateKey, PublicKey publicKey) throws Exception {
103 PrivateKey privateKey = (PrivateKey)ks.getKey(alias, password);
105 privateKey = (PrivateKey)kf.translateKey(privateKey);
/openjdk7/jdk/test/sun/security/pkcs11/ec/
H A DTestKeyFactory.java53 } else if (key1 instanceof PrivateKey) {
86 private static void testPrivate(KeyFactory kf, PrivateKey key) throws Exception {
88 PrivateKey key2 = (PrivateKey)kf.translateKey(key);
90 PrivateKey key3 = kf.generatePrivate(keySpec);
92 PrivateKey key4 = kf.generatePrivate(pkcs8Spec);
94 PrivateKey key5 = kf.generatePrivate(pkcs8Spec2);
108 } else if (key instanceof PrivateKey) {
109 testPrivate(kf, (PrivateKey)key);
/openjdk7/jdk/test/sun/security/pkcs11/rsa/
H A DTestKeyFactory.java65 } else if (key1 instanceof PrivateKey) {
94 private static void testPrivate(KeyFactory kf, PrivateKey key) throws Exception {
96 PrivateKey key2 = (PrivateKey)kf.translateKey(key);
98 PrivateKey key3 = kf.generatePrivate(rsaSpec);
100 PrivateKey key4 = kf.generatePrivate(pkcs8Spec);
102 PrivateKey key5 = kf.generatePrivate(pkcs8Spec2);
111 // PrivateKey key6 = kf.generatePrivate(rsaSpec2);
114 // PrivateKey key7 = kf.generatePrivate(rsaSpec3);
125 } else if (key instanceof PrivateKey) {
[all...]
H A DTestSignatures.java56 private static void testSignature(String algorithm, PrivateKey privateKey, PublicKey publicKey) throws Exception {
80 private static void test(PrivateKey privateKey, PublicKey publicKey) throws Exception {
108 PrivateKey privateKey = (PrivateKey)ks.getKey(alias, password);
110 privateKey = (PrivateKey)kf.translateKey(privateKey);
/openjdk7/jdk/src/share/classes/javax/net/ssl/
H A DX509KeyManager.java29 import java.security.PrivateKey;
134 public PrivateKey getPrivateKey(String alias);
/openjdk7/jdk/test/sun/security/pkcs11/Secmod/
H A DJksSetPrivateKey.java57 PrivateKey privateKey = (PrivateKey)ks.getKey(keyAlias, password);
67 throw new Exception("No, an NSS PrivateKey shouldn't be extractable and put inside a JKS keystore");
90 class DummyPrivateKey implements PrivateKey {
104 class DummyPrivateKey2 implements PrivateKey {
H A DAddPrivateKey.java99 PrivateKey key = entry.getPrivateKey();
122 PrivateKey key2 = (PrivateKey)ks.getKey(ALIAS1, null);
141 PrivateKey key3 = (PrivateKey)kf.translateKey(key);
154 PrivateKey key4 = (PrivateKey)ks.getKey(ALIAS2, null);
172 PrivateKey key5 = (PrivateKey)ks.getKey(ALIAS3, null);
195 private static void sign(Provider p, PrivateKey privateKe
[all...]
H A DGetPrivateKey.java57 PrivateKey privateKey = (PrivateKey)ks.getKey(keyAlias, password);
/openjdk7/jdk/src/share/classes/sun/security/pkcs11/
H A DP11KeyFactory.java131 } else if (key instanceof PrivateKey) {
132 PrivateKey privateKey = implTranslatePrivateKey((PrivateKey)key);
137 ("Key must be instance of PublicKey or PrivateKey");
150 abstract PrivateKey implTranslatePrivateKey(PrivateKey key)
/openjdk7/jdk/src/share/classes/sun/security/ec/
H A DECKeyFactory.java33 * KeyFactory for EC keys. Keys must be instances of PublicKey or PrivateKey
44 * . PrivateKey with a PKCS#8 encoding
147 } else if (key instanceof PrivateKey) {
148 return implTranslatePrivateKey((PrivateKey)key);
167 protected PrivateKey engineGeneratePrivate(KeySpec keySpec)
200 private PrivateKey implTranslatePrivateKey(PrivateKey key)
238 private PrivateKey implGeneratePrivate(KeySpec keySpec)
/openjdk7/jdk/test/sun/security/provider/X509Factory/
H A DBigCRL.java35 import java.security.PrivateKey;
63 PrivateKey privateKey = (PrivateKey)
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/DES/
H A DSealtest.java71 PrivateKey priv = (PrivateKey)sealed.getObject(skey);
/openjdk7/jdk/src/share/classes/com/sun/org/apache/xml/internal/security/algorithms/implementations/
H A DSignatureBaseRSA.java27 import java.security.PrivateKey;
153 if (!(privateKey instanceof PrivateKey)) {
155 String needed = PrivateKey.class.getName();
164 ((PrivateKey) privateKey, secureRandom);
173 if (!(privateKey instanceof PrivateKey)) {
175 String needed = PrivateKey.class.getName();
183 this._signatureAlgorithm.initSign((PrivateKey) privateKey);

Completed in 44 milliseconds

123456