Searched defs:publicKey (Results 1 - 25 of 46) sorted by relevance

12

/openjdk7/langtools/test/com/sun/javadoc/testHtmlDefinitionListTag/pkg1/
H A DC5.java49 private int publicKey; field in class:C5
/openjdk7/langtools/test/com/sun/javadoc/testSerializedFormDeprecationInfo/pkg1/
H A DC3.java49 private int publicKey; field in class:C3
/openjdk7/jdk/src/share/classes/java/security/
H A DKeyPair.java46 private PublicKey publicKey; field in class:KeyPair
55 * @param publicKey the public key.
59 public KeyPair(PublicKey publicKey, PrivateKey privateKey) { argument
60 this.publicKey = publicKey;
70 return publicKey;
H A DSignatureSpi.java63 * @param publicKey the public key of the identity whose signature is
69 protected abstract void engineInitVerify(PublicKey publicKey) argument
H A DIdentity.java77 private PublicKey publicKey; field in class:Identity
160 return publicKey;
187 this.publicKey = key;
253 if (publicKey != null) {
254 if (!keyEquals(publicKey, certificate.getPublicKey())) {
259 publicKey = certificate.getPublicKey();
367 if ((publicKey == null) ^ (identity.publicKey == null))
370 if (publicKey != null && identity.publicKey !
[all...]
/openjdk7/jdk/test/com/sun/crypto/provider/Cipher/RSA/
H A DTestOAEP.java43 private static PublicKey publicKey; field in class:TestOAEP
56 publicKey = kp.getPublic();
137 c.init(Cipher.DECRYPT_MODE, publicKey);
155 c.init(Cipher.ENCRYPT_MODE, publicKey);
182 c.init(Cipher.ENCRYPT_MODE, publicKey);
201 c.init(Cipher.ENCRYPT_MODE, publicKey);
H A DTestOAEPWithParams.java45 private static PublicKey publicKey; field in class:TestOAEPWithParams
64 publicKey = kp.getPublic();
94 c.init(Cipher.ENCRYPT_MODE, publicKey, spec1);
122 c.init(Cipher.ENCRYPT_MODE, publicKey);
/openjdk7/jdk/src/windows/classes/sun/security/mscapi/
H A DRSAKeyPair.java37 private final RSAPublicKey publicKey; field in class:RSAKeyPair
45 publicKey = new RSAPublicKey(hCryptProv, hCryptKey, keyLength);
53 return publicKey;
/openjdk7/jdk/test/sun/security/rsa/
H A DGenKeyStore.java46 private static X509Certificate getCertificate(String suffix, PublicKey publicKey, PrivateKey privateKey) throws Exception { argument
48 String algorithm = "SHA1with" + publicKey.getAlgorithm();
59 certInfo.set(X509CertInfo.KEY, new CertificateX509Key(publicKey));
H A DTestKeyPairGenerator.java45 private static void testSignature(String algorithm, PrivateKey privateKey, PublicKey publicKey) throws Exception { argument
51 s.initVerify(publicKey);
59 private static void test(PrivateKey privateKey, PublicKey publicKey) throws Exception { argument
60 testSignature("MD2withRSA", privateKey, publicKey);
61 testSignature("MD5withRSA", privateKey, publicKey);
62 testSignature("SHA1withRSA", privateKey, publicKey);
63 testSignature("SHA256withRSA", privateKey, publicKey);
64 RSAPublicKey rsaKey = (RSAPublicKey)publicKey;
67 testSignature("SHA384withRSA", privateKey, publicKey);
68 testSignature("SHA512withRSA", privateKey, publicKey);
[all...]
H A DTestSignatures.java55 private static void testSignature(String algorithm, PrivateKey privateKey, PublicKey publicKey) throws Exception { argument
61 s.initVerify(publicKey);
79 private static void test(PrivateKey privateKey, PublicKey publicKey) throws Exception { argument
80 testSignature("MD2withRSA", privateKey, publicKey);
81 testSignature("MD5withRSA", privateKey, publicKey);
82 testSignature("SHA1withRSA", privateKey, publicKey);
83 testSignature("SHA256withRSA", privateKey, publicKey);
84 RSAPublicKey rsaKey = (RSAPublicKey)publicKey;
87 testSignature("SHA384withRSA", privateKey, publicKey);
88 testSignature("SHA512withRSA", privateKey, publicKey);
[all...]
/openjdk7/jdk/src/share/classes/sun/security/ssl/
H A DDHClientKeyExchange.java61 DHClientKeyExchange(BigInteger publicKey) { argument
62 dh_Yc = toByteArray(publicKey);
H A DECDHClientKeyExchange.java55 ECDHClientKeyExchange(PublicKey publicKey) { argument
56 ECPublicKey ecKey = (ECPublicKey)publicKey;
H A DECDHCrypt.java49 private ECPublicKey publicKey; field in class:ECDHCrypt
52 ECDHCrypt(PrivateKey privateKey, PublicKey publicKey) { argument
54 this.publicKey = (ECPublicKey)publicKey;
65 publicKey = (ECPublicKey)kp.getPublic();
78 publicKey = (ECPublicKey)kp.getPublic();
88 return publicKey;
106 ECParameterSpec params = publicKey.getParams();
H A DRSAClientKeyExchange.java87 SecureRandom generator, PublicKey publicKey) throws IOException {
88 if (publicKey.getAlgorithm().equals("RSA") == false) {
112 cipher.init(Cipher.WRAP_MODE, publicKey, generator);
85 RSAClientKeyExchange(ProtocolVersion protocolVersion, ProtocolVersion maxVersion, SecureRandom generator, PublicKey publicKey) argument
/openjdk7/jdk/src/share/classes/sun/security/util/
H A DKeyUtil.java102 * @param publicKey
105 * @throws NullPointerException if {@code publicKey} is null
106 * @throws InvalidKeyException if {@code publicKey} is invalid
169 private static void validateDHPublicKey(DHPublicKey publicKey) argument
171 DHParameterSpec paramSpec = publicKey.getParams();
175 BigInteger y = publicKey.getY();
/openjdk7/jdk/test/sun/security/mscapi/
H A DSignUsingNONEwithRSA.java123 PublicKey publicKey = null;
130 publicKey = (PublicKey) ks.getCertificate(alias).getPublicKey();
133 if (privateKey == null || publicKey == null) {
137 return new KeyPair(publicKey, privateKey);
146 PublicKey publicKey = pair.getPublic();
148 if (privateKey == null || publicKey == null) {
152 return new KeyPair(publicKey, privateKey);
192 private static void verifyAllUsing(String providerName, PublicKey publicKey) argument
203 System.out.println("Using key: " + publicKey);
216 sig1.initVerify(publicKey);
[all...]
H A DSignUsingSHA2withRSA.java63 PublicKey publicKey = null;
70 publicKey = (PublicKey) ks.getCertificate(alias).getPublicKey();
73 if (privateKey == null || publicKey == null) {
84 verifyUsing("SHA256withRSA", publicKey, generatedSignatures.get(0));
85 verifyUsing("SHA384withRSA", publicKey, generatedSignatures.get(1));
86 verifyUsing("SHA512withRSA", publicKey, generatedSignatures.get(2));
124 private static void verifyUsing(String signAlgorithm, PublicKey publicKey, argument
136 System.out.println("Using key: " + publicKey);
144 sig1.initVerify(publicKey);
/openjdk7/jdk/test/sun/security/pkcs11/rsa/
H A DGenKeyStore.java46 private static X509Certificate getCertificate(String suffix, PublicKey publicKey, PrivateKey privateKey) throws Exception { argument
48 String algorithm = "SHA1with" + publicKey.getAlgorithm();
59 certInfo.set(X509CertInfo.KEY, new CertificateX509Key(publicKey));
H A DTestKeyPairGenerator.java46 private static void testSignature(String algorithm, PrivateKey privateKey, PublicKey publicKey) throws Exception { argument
52 s.initVerify(publicKey);
60 private static void test(PrivateKey privateKey, PublicKey publicKey) throws Exception { argument
61 testSignature("MD2withRSA", privateKey, publicKey);
62 testSignature("MD5withRSA", privateKey, publicKey);
63 testSignature("SHA1withRSA", privateKey, publicKey);
64 testSignature("SHA256withRSA", privateKey, publicKey);
65 RSAPublicKey rsaKey = (RSAPublicKey)publicKey;
68 testSignature("SHA384withRSA", privateKey, publicKey);
69 testSignature("SHA512withRSA", privateKey, publicKey);
[all...]
H A DTestSignatures.java56 private static void testSignature(String algorithm, PrivateKey privateKey, PublicKey publicKey) throws Exception { argument
62 s.initVerify(publicKey);
80 private static void test(PrivateKey privateKey, PublicKey publicKey) throws Exception { argument
81 testSignature("MD2withRSA", privateKey, publicKey);
82 testSignature("MD5withRSA", privateKey, publicKey);
83 testSignature("SHA1withRSA", privateKey, publicKey);
84 testSignature("SHA256withRSA", privateKey, publicKey);
85 RSAPublicKey rsaKey = (RSAPublicKey)publicKey;
88 testSignature("SHA384withRSA", privateKey, publicKey);
89 testSignature("SHA512withRSA", privateKey, publicKey);
[all...]
/openjdk7/jdk/test/sun/security/pkcs11/Secmod/
H A DAddPrivateKey.java101 PublicKey publicKey = chain[0].getPublicKey();
103 sign(p, key, publicKey);
132 sign(p, key2, publicKey);
143 sign(p, key3, publicKey);
160 sign(p, key4, publicKey);
178 sign(p, key5, publicKey);
195 private static void sign(Provider p, PrivateKey privateKey, PublicKey publicKey) throws Exception { argument
212 s.initVerify(publicKey);
/openjdk7/jdk/src/share/classes/sun/security/pkcs/
H A DPKCS10.java85 * @param publicKey the public key that should be placed
88 public PKCS10(PublicKey publicKey) { argument
89 subjectPublicKeyInfo = publicKey;
98 * @param publicKey the public key that should be placed
103 public PKCS10(PublicKey publicKey, PKCS10Attributes attributes) { argument
104 subjectPublicKeyInfo = publicKey;
/openjdk7/jdk/src/share/classes/sun/security/x509/
H A DCertAndKeyGen.java154 publicKey = pair.getPublic();
157 // publicKey's format must be X.509 otherwise
159 if (!"X.509".equalsIgnoreCase(publicKey.getFormat())) {
160 throw new IllegalArgumentException("publicKey's is not X.509, but "
161 + publicKey.getFormat());
178 if (!(publicKey instanceof X509Key)) {
181 return (X509Key)publicKey;
188 * The publicKey is not necessarily to be an instance of
192 return publicKey;
261 info.set(X509CertInfo.KEY, new CertificateX509Key(publicKey));
325 private PublicKey publicKey; field in class:CertAndKeyGen
[all...]
/openjdk7/jdk/src/share/classes/org/jcp/xml/dsig/internal/dom/
H A DDOMKeyValue.java57 private PublicKey publicKey; field in class:DOMKeyValue
70 this.publicKey = key;
96 publicKey = unmarshalDSAKeyValue(kvtElem);
98 publicKey = unmarshalRSAKeyValue(kvtElem);
100 publicKey = null;
106 if (publicKey == null) {
109 return publicKey;
127 if (publicKey != null) {
128 if (publicKey instanceof DSAPublicKey) {
131 } else if (publicKey instanceo
[all...]

Completed in 1442 milliseconds

12