Searched refs:alias (Results 1 - 25 of 86) sorted by relevance

1234

/openjdk7/jdk/src/share/classes/sun/jvmstat/perfdata/resources/
H A Daliasmap30 * follows the reserved word 'alias'. Following the key counter name is
32 * The convention is to order these alias names from newest to oldest
45 alias java.ci.totalTime // 1.5.0 b39
49 alias java.cls.loadedClasses // 1.5.0 b39
51 alias java.cls.unloadedClasses // 1.5.0 b39
55 alias java.property.java.class.path // 1.5.0 b39
57 alias java.property.java.endorsed.dirs // 1.5.0 b39
59 alias java.property.java.ext.dirs // 1.5.0 b39
61 alias java.property.java.home // 1.5.0 b39
63 alias jav
[all...]
/openjdk7/jdk/src/share/classes/javax/security/auth/x500/
H A DX500PrivateCredential.java35 * KeyStore alias used to reference that exact key pair in the KeyStore.
43 private String alias; field in class:X500PrivateCredential
47 * a private key and the KeyStore alias.
61 this.alias=null;
66 * a private key and the KeyStore alias.
70 * @param alias KeyStore alias
72 * <code>key</code> or <code>alias</code> is null
76 String alias) {
77 if (cert == null || key == null|| alias
75 X500PrivateCredential(X509Certificate cert, PrivateKey key, String alias) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/security/validator/
H A DKeyStores.java100 String alias = e.nextElement();
101 if (ks.isCertificateEntry(alias)) {
102 Certificate cert = ks.getCertificate(alias);
106 } else if (ks.isKeyEntry(alias)) {
107 Certificate[] certs = ks.getCertificateChain(alias);
/openjdk7/jdk/src/windows/classes/sun/security/mscapi/
H A DKeyStore.java78 private String alias; field in class:KeyStore.KeyEntry
84 KeyEntry(String alias, Key key, X509Certificate[] chain) { argument
88 * The default alias for both entry types is derived from a
91 if (alias == null) {
92 this.alias = Integer.toString(chain[0].hashCode());
94 this.alias = alias;
99 * Gets the alias for the keystore entry.
103 return alias;
107 * Sets the alias fo
109 setAlias(String alias) argument
246 engineGetKey(String alias, char[] password) argument
280 engineGetCertificateChain(String alias) argument
312 engineGetCertificate(String alias) argument
337 engineGetCreationDate(String alias) argument
377 engineSetKeyEntry(String alias, java.security.Key key, char[] password, Certificate[] chain) argument
450 engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) argument
472 engineSetCertificateEntry(String alias, Certificate cert) argument
525 engineDeleteEntry(String alias) argument
593 engineContainsAlias(String alias) argument
621 engineIsKeyEntry(String alias) argument
643 engineIsCertificateEntry(String alias) argument
776 generateCertificateChain(String alias, Collection certCollection, Collection<KeyEntry> entries) argument
806 generateRSAKeyAndCertificateChain(String alias, long hCryptProv, long hCryptKey, int keyLength, Collection certCollection, Collection<KeyEntry> entries) argument
891 storeCertificate(String name, String alias, byte[] encoding, int encodingLength, long hCryptProvider, long hCryptKey) argument
902 removeCertificate(String name, String alias, byte[] encoding, int encodingLength) argument
[all...]
/openjdk7/jdk/src/share/classes/java/security/
H A DKeyStoreSpi.java57 * Returns the key associated with the given alias, using the given
59 * the alias by a call to <code>setKeyEntry</code>,
63 * @param alias the alias name
66 * @return the requested key, or null if the given alias does not exist
74 public abstract Key engineGetKey(String alias, char[] password) argument
78 * Returns the certificate chain associated with the given alias.
79 * The certificate chain must have been associated with the alias
84 * @param alias the alias nam
90 engineGetCertificateChain(String alias) argument
113 engineGetCertificate(String alias) argument
123 engineGetCreationDate(String alias) argument
147 engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) argument
173 engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) argument
194 engineSetCertificateEntry(String alias, Certificate cert) argument
205 engineDeleteEntry(String alias) argument
222 engineContainsAlias(String alias) argument
242 engineIsKeyEntry(String alias) argument
255 engineIsCertificateEntry(String alias) argument
445 engineGetEntry(String alias, KeyStore.ProtectionParameter protParam) argument
504 engineSetEntry(String alias, KeyStore.Entry entry, KeyStore.ProtectionParameter protParam) argument
577 engineEntryInstanceOf(String alias, Class<? extends KeyStore.Entry> entryClass) argument
[all...]
H A DKeyStore.java72 * <p> Each entry in a keystore is identified by an "alias" string. In the
766 * Returns the key associated with the given alias, using the given
768 * the alias by a call to <code>setKeyEntry</code>,
772 * @param alias the alias name
775 * @return the requested key, or null if the given alias does not exist
785 public final Key getKey(String alias, char[] password) argument
792 return keyStoreSpi.engineGetKey(alias, password);
796 * Returns the certificate chain associated with the given alias.
797 * The certificate chain must have been associated with the alias
811 getCertificateChain(String alias) argument
844 getCertificate(String alias) argument
864 getCreationDate(String alias) argument
896 setKeyEntry(String alias, Key key, char[] password, Certificate[] chain) argument
936 setKeyEntry(String alias, byte[] key, Certificate[] chain) argument
964 setCertificateEntry(String alias, Certificate cert) argument
981 deleteEntry(String alias) argument
1017 containsAlias(String alias) argument
1057 isKeyEntry(String alias) argument
1080 isCertificateEntry(String alias) argument
1280 getEntry(String alias, ProtectionParameter protParam) argument
1317 setEntry(String alias, Entry entry, ProtectionParameter protParam) argument
1350 entryInstanceOf(String alias, Class<? extends KeyStore.Entry> entryClass) argument
1415 getProtectionParameter(String alias) argument
1636 getProtectionParameter(String alias) argument
[all...]
/openjdk7/jdk/test/sun/security/pkcs11/fips/
H A DImportKeyStore.java72 for (String alias : aliases) {
73 System.out.println("Alias: " + alias);
74 if (srcks.isCertificateEntry(alias)) {
75 X509Certificate cert = (X509Certificate)srcks.getCertificate(alias);
77 dstks.setCertificateEntry(alias + "-cert", cert);
78 } else if (srcks.isKeyEntry(alias)) {
79 PrivateKeyEntry entry = (PrivateKeyEntry)srcks.getEntry(alias, new PasswordProtection(passwd));
81 dstks.setEntry(alias, entry, null);
83 System.out.println(" Unknown entry: " + alias);
/openjdk7/jdk/test/sun/security/ssl/com/sun/net/ssl/internal/ssl/X509KeyManager/
H A DPreferredKey.java72 String alias = km.chooseClientAlias(new String[] {"RSA", "DSA"},
76 if (aliases != null || alias != null) {
77 String algorithm = km.getPrivateKey(alias).getAlgorithm();
85 alias = km.chooseClientAlias(new String[] {"DSA", "RSA"},
89 if (aliases != null || alias != null) {
90 String algorithm = km.getPrivateKey(alias).getAlgorithm();
/openjdk7/jdk/test/sun/security/ssl/com/sun/net/ssl/internal/www/protocol/https/HttpsClient/
H A DMyKeyManager.java48 String alias = (String)aliases.nextElement();
49 if (ks.isKeyEntry(alias)) {
51 certs = ks.getCertificateChain(alias);
59 Key key = ks.getKey(alias, password);
60 certChainMap.put(alias, certs);
61 keyMap.put(alias, key);
68 * Choose an alias to authenticate the client side of a secure
91 * Choose an alias to authenticate the server side of a secure
112 * Returns the certificate chain associated with the given alias.
114 * @param alias th
121 getCertificateChain(String alias) argument
139 getPrivateKey(String alias) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/security/provider/
H A DJavaKeyStore.java56 String convertAlias(String alias) { argument
57 return alias.toLowerCase();
63 String convertAlias(String alias) { argument
64 return alias;
87 * Hash entries are keyed by alias names.
95 // convert an alias to internal form, overridden in subclasses:
98 abstract String convertAlias(String alias); argument
101 * Returns the key associated with the given alias, using the given
104 * @param alias the alias nam
115 engineGetKey(String alias, char[] password) argument
152 engineGetCertificateChain(String alias) argument
181 engineGetCertificate(String alias) argument
207 engineGetCreationDate(String alias) argument
243 engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) argument
301 engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) argument
344 engineSetCertificateEntry(String alias, Certificate cert) argument
369 engineDeleteEntry(String alias) argument
393 engineContainsAlias(String alias) argument
413 engineIsKeyEntry(String alias) argument
429 engineIsCertificateEntry(String alias) argument
[all...]
/openjdk7/jdk/src/share/native/sun/awt/medialib/
H A Dmlib_sys.c56 __attribute__ ((weak,alias("__mlib_memmove")));
58 __attribute__ ((weak,alias("__mlib_malloc")));
60 __attribute__ ((weak,alias("__mlib_realloc")));
62 __attribute__ ((weak,alias("__mlib_free")));
64 __attribute__ ((weak,alias("__mlib_memset")));
66 __attribute__ ((weak,alias("__mlib_memcpy")));
73 __attribute__ ((weak,alias("__mlib_sincosf")));
/openjdk7/jdk/test/sun/security/provider/KeyStore/
H A DWrongPassword.java45 String alias = "mykey";
78 entry = ks.getEntry(alias, null);
85 entry = ks.getEntry(alias, new PasswordProtection(wrongPW));
92 entry = ks.getEntry(alias, new PasswordProtection(new char[0]));
98 entry = ks.getEntry(alias, new PasswordProtection(pw));
102 ks.getKey(alias, null);
109 ks.getKey(alias, wrongPW);
116 ks.getKey(alias, new char[0]);
122 Key k = ks.getKey(alias, pw);
/openjdk7/jdk/test/sun/security/mscapi/
H A DAccessKeyStore.java90 String alias = (String) e.nextElement();
91 displayEntry(keyStore, alias, i++);
95 private static void displayEntry(KeyStore keyStore, String alias, argument
98 if (keyStore.isKeyEntry(alias)) {
99 System.out.println("[" + index + "]\n " + alias +
104 Key key = keyStore.getKey(alias, null);
119 Certificate[] chain = keyStore.getCertificateChain(alias);
129 System.out.println("[" + index + "]\n " + alias +
131 Certificate[] chain = keyStore.getCertificateChain(alias);
/openjdk7/jdk/test/sun/security/rsa/
H A DTestCACerts.java54 String alias = (String)e.nextElement();
55 if (ks.isCertificateEntry(alias)) {
56 System.out.println("* Testing " + alias + "...");
57 X509Certificate cert = (X509Certificate)ks.getCertificate(alias);
67 System.out.println("Skipping alias " + alias);
/openjdk7/jdk/test/sun/security/pkcs11/rsa/
H A DTestCACerts.java60 String alias = (String)e.nextElement();
61 if (ks.isCertificateEntry(alias)) {
62 System.out.println("* Testing " + alias + "...");
63 X509Certificate cert = (X509Certificate)ks.getCertificate(alias);
73 System.out.println("Skipping alias " + alias);
/openjdk7/jdk/test/sun/security/pkcs11/KeyStore/
H A DSecretKeysBasic.java93 private static boolean checkSecretKeyEntry(String alias, argument
98 ks.setKeyEntry(alias, expected, null, null);
100 SecretKey result = (SecretKey) (ks.getKey(alias, null));
147 String alias = aliases.nextElement();
148 System.out.println("\t" + alias);
149 ks.deleteEntry(alias);
153 String alias = "testSKey";
155 boolean testResult = checkSecretKeyEntry(alias, softkey, true);
160 if (!checkSecretKeyEntry(alias, sk1, true)) {
164 if (!checkSecretKeyEntry(alias, sk
[all...]
/openjdk7/jdk/src/share/classes/com/sun/net/ssl/
H A DX509KeyManager.java40 * socket. The individual entries are identified by unique alias names.
54 * @return the matching alias names
59 * Choose an alias to authenticate the client side of a secure
65 * @return the alias name for the desired key
76 * @return the matching alias names
81 * Choose an alias to authenticate the server side of a secure
87 * @return the alias name for the desired key
92 * Returns the certificate chain associated with the given alias.
94 * @param alias the alias nam
99 getCertificateChain(String alias) argument
108 getPrivateKey(String alias) argument
[all...]
/openjdk7/jdk/test/sun/security/x509/AlgorithmId/
H A DExtensibleAlgorithmId.java42 String alias = "Alg.Alias.Signature.OID." + algid.toString();
43 String stdAlgName = p.getProperty(alias);
/openjdk7/jdk/test/java/security/KeyStore/
H A DKeyStoreBuilder.java52 String alias = "vajra";
59 entry = ks.getEntry(alias, builder.getProtectionParameter(alias));
66 entry = ks.getEntry(alias, builder.getProtectionParameter(alias));
83 entry = ks.getEntry(alias, builder.getProtectionParameter(alias));
161 public Key engineGetKey(String alias, char[] password) { argument
164 public Certificate[] engineGetCertificateChain(String alias) { argument
167 public Certificate engineGetCertificate(String alias) { argument
170 engineGetCreationDate(String alias) argument
173 engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] certs) argument
176 engineSetKeyEntry(String alias, byte[] key, Certificate[] certs) argument
179 engineSetCertificateEntry(String alias, Certificate cert) argument
182 engineDeleteEntry(String alias) argument
188 engineContainsAlias(String alias) argument
194 engineIsKeyEntry(String alias) argument
197 engineIsCertificateEntry(String alias) argument
[all...]
H A DEntryMethods.java136 // TEST getEntry with alias/protParam - use invalid alias
147 // TEST getEntry with alias/null protParam - get private key
157 // TEST getEntry with alias/bad password - get private key
168 // TEST getEntry with alias/unknown protection - get private key
178 // TEST getEntry with alias/protParam - get private key
188 // TEST getEntry with alias/null protParam - get trusted cert
197 // TEST getEntry with alias/non-null protParam - get trusted cert
207 // TEST setEntry with alias/entry/protParam - use invalid alias
365 engineGetKey(String alias, char[] password) argument
370 engineGetCertificateChain(String alias) argument
375 engineGetCertificate(String alias) argument
380 engineGetCreationDate(String alias) argument
384 engineSetKeyEntry(String alias, Key key, char[] password, java.security.cert.Certificate[] chain) argument
391 engineSetKeyEntry(String alias, byte[] key, java.security.cert.Certificate[] chain) argument
397 engineSetCertificateEntry(String alias, java.security.cert.Certificate cert) argument
403 engineDeleteEntry(String alias) argument
412 engineContainsAlias(String alias) argument
420 engineIsKeyEntry(String alias) argument
424 engineIsCertificateEntry(String alias) argument
462 engineGetEntry(String alias, KeyStore.ProtectionParameter protectionParam) argument
481 engineSetEntry(String alias, KeyStore.Entry entry, KeyStore.ProtectionParameter protectionParam) argument
499 engineEntryInstanceOf(String alias, Class<? extends KeyStore.Entry> entryClass) argument
514 engineGetEntry(String alias, KeyStore.ProtectionParameter protectionParam) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/security/ssl/
H A DSunX509KeyManagerImpl.java52 * use. As implemented here, both always return the first alias returned by
76 * Map: String(alias) -> X509Credentials(credentials)
85 * Map: String(keyType) -> String[](alias)
127 String alias = aliases.nextElement();
128 if (!ks.isKeyEntry(alias)) {
131 Key key = ks.getKey(alias, password);
135 Certificate[] certs = ks.getCertificateChain(alias);
148 credentialsMap.put(alias, cred);
151 System.out.println("found key for : " + alias);
162 * Returns the certificate chain associated with the given alias
167 getCertificateChain(String alias) argument
182 getPrivateKey(String alias) argument
[all...]
/openjdk7/jdk/test/sun/security/ssl/javax/net/ssl/NewAPIs/SSLEngine/
H A DMyX509KeyManager.java59 public X509Certificate[] getCertificateChain(String alias) { argument
61 return km.getCertificateChain(alias);
64 public PrivateKey getPrivateKey(String alias) { argument
66 return km.getPrivateKey(alias);
/openjdk7/jdk/test/sun/security/pkcs11/Secmod/
H A DTrustAnchors.java64 for (String alias : aliases) {
65 if (ks.isCertificateEntry(alias) == false) {
66 throw new Exception("not trusted: " + alias);
68 X509Certificate cert = (X509Certificate)ks.getCertificate(alias);
H A DAddTrustedCert.java65 String alias = "anchor";
66 ks.setCertificateEntry(alias, cert);
67 ks.setCertificateEntry(alias, cert);
74 if ((size2 != size1 + 1) || (aliases.contains(alias) == false)) {
77 X509Certificate cert2 = (X509Certificate)ks.getCertificate(alias);
/openjdk7/jdk/src/share/classes/com/sun/crypto/provider/
H A DJceKeyStore.java88 * Hash entries are keyed by alias names.
93 * Returns the key associated with the given alias, using the given
96 * @param alias the alias name
99 * @return the requested key, or null if the given alias does not exist
107 public Key engineGetKey(String alias, char[] password) argument
112 Object entry = entries.get(alias.toLowerCase());
141 * Returns the certificate chain associated with the given alias.
143 * @param alias the alias nam
151 engineGetCertificateChain(String alias) argument
180 engineGetCertificate(String alias) argument
205 engineGetCreationDate(String alias) argument
247 engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) argument
309 engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) argument
345 engineSetCertificateEntry(String alias, Certificate cert) argument
374 engineDeleteEntry(String alias) argument
398 engineContainsAlias(String alias) argument
418 engineIsKeyEntry(String alias) argument
437 engineIsCertificateEntry(String alias) argument
[all...]

Completed in 1332 milliseconds

1234