Methods Summary |
---|
public java.lang.String | chooseClientAlias(java.lang.String[] keyType, java.security.Principal[] issuers, java.net.Socket socket)
String alias = null;
for (int i = 0; i < mgrs.length; i++) {
alias = mgrs[i].chooseClientAlias(keyType, issuers, socket);
if (alias != null) {
break;
}
}
return alias;
|
public java.lang.String | chooseServerAlias(java.lang.String keyType, java.security.Principal[] issuers, java.net.Socket socket)
String alias = null;
for (int i = 0; i < mgrs.length; i++) {
alias = mgrs[i].chooseServerAlias(keyType, issuers, socket);
if (alias != null) {
break;
}
}
return alias;
|
public java.security.cert.X509Certificate[] | getCertificateChain(java.lang.String alias)
X509Certificate[] chain = null;
for (int i = 0; i < mgrs.length; i++) {
chain = mgrs[i].getCertificateChain(alias);
if (chain != null) {
break;
}
}
return chain;
|
public java.lang.String[] | getClientAliases(java.lang.String keyType, java.security.Principal[] issuers)
ArrayList clientAliases = new ArrayList();
for (int i = 0; i < mgrs.length; i++) {
String[] clAliases = mgrs[i].getClientAliases(keyType, issuers);
if (clAliases != null && clAliases.length > 0) {
for (int j = 0; j < clAliases.length; j++) {
clientAliases.add(clAliases[j]);
}
}
}
return (clientAliases.size() == 0) ? null :
(String[])clientAliases.toArray(new String[clientAliases.size()]);
|
public java.security.PrivateKey | getPrivateKey(java.lang.String alias)
PrivateKey privKey = null;
for (int i = 0; i < mgrs.length; i++) {
privKey = mgrs[i].getPrivateKey(alias);
if (privKey != null) {
break;
}
}
return privKey;
|
public java.lang.String[] | getServerAliases(java.lang.String keyType, java.security.Principal[] issuers)
ArrayList serverAliases = new ArrayList();
for (int i = 0; i < mgrs.length; i++) {
String[] serAliases = mgrs[i].getClientAliases(keyType, issuers);
if (serAliases != null && serAliases.length > 0) {
for (int j = 0; j < serAliases.length; j++) {
serverAliases.add(serAliases[j]);
}
}
}
return (serverAliases.size() == 0) ? null :
(String[])serverAliases.toArray(new String[serverAliases.size()]);
|
java.lang.String[] | getTokenNames()
String[] tokens = new String[tokenNames.length];
System.arraycopy(tokenNames, 0, tokens, 0, tokenNames.length);
return tokens;
|
javax.net.ssl.X509KeyManager[] | getX509KeyManagers()
X509KeyManager[] kmgrs = new X509KeyManager[mgrs.length];
System.arraycopy(mgrs, 0, kmgrs, 0, mgrs.length);
return kmgrs;
|