public final class HTTPSSLKeyManager
extends java.lang.Object
implements javax.net.ssl.X509KeyManager
Modifier and Type | Field and Description |
---|---|
private ISVNAuthenticationManager |
authenticationManager |
private java.lang.String |
chooseAlias |
private SVNSSLAuthentication |
myAuthentication |
private java.lang.Exception |
myException |
private boolean |
myIsFirstRequest |
private javax.net.ssl.KeyManager[] |
myKeyManagers |
private java.lang.String |
realm |
private SVNURL |
url |
Constructor and Description |
---|
HTTPSSLKeyManager(ISVNAuthenticationManager authenticationManager,
java.lang.String realm,
SVNURL url) |
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeAndClearAuthentication(SVNErrorMessage errorMessage) |
java.lang.String |
chooseClientAlias(java.lang.String[] strings,
java.security.Principal[] principals,
java.net.Socket socket) |
java.lang.String |
chooseServerAlias(java.lang.String location,
java.security.Principal[] principals,
java.net.Socket socket) |
java.security.cert.X509Certificate[] |
getCertificateChain(java.lang.String location) |
java.lang.String[] |
getClientAliases(java.lang.String location,
java.security.Principal[] principals) |
java.lang.Exception |
getException() |
java.security.PrivateKey |
getPrivateKey(java.lang.String string) |
java.lang.String[] |
getServerAliases(java.lang.String location,
java.security.Principal[] principals) |
private static java.util.List<javax.net.ssl.X509KeyManager> |
getX509KeyManagers(javax.net.ssl.KeyManager[] keyManagers) |
private boolean |
initialize() |
private boolean |
initializeNoException() |
boolean |
isInitialized() |
private static boolean |
isMSCAPI(SVNSSLAuthentication sslAuthentication) |
static javax.net.ssl.KeyManager[] |
loadClientCertificate() |
static javax.net.ssl.KeyManager[] |
loadClientCertificate(byte[] clientCert,
char[] clientCertPassword) |
static javax.net.ssl.KeyManager[] |
loadClientCertificate(java.io.File clientCertFile,
char[] clientCertPassword) |
static javax.net.ssl.KeyManager[] |
loadClientCertificate(java.io.File clientCertFile,
java.lang.String clientCertPassword)
Deprecated.
|
javax.net.ssl.KeyManager[] |
loadClientCertificate(SVNSSLAuthentication sslAuthentication) |
private final ISVNAuthenticationManager authenticationManager
private final java.lang.String realm
private final SVNURL url
private javax.net.ssl.KeyManager[] myKeyManagers
private SVNSSLAuthentication myAuthentication
private java.lang.Exception myException
private java.lang.String chooseAlias
private boolean myIsFirstRequest
public HTTPSSLKeyManager(ISVNAuthenticationManager authenticationManager, java.lang.String realm, SVNURL url)
public static javax.net.ssl.KeyManager[] loadClientCertificate() throws SVNException
SVNException
public static javax.net.ssl.KeyManager[] loadClientCertificate(java.io.File clientCertFile, java.lang.String clientCertPassword) throws SVNException
clientCertFile
- clientCertPassword
- SVNException
public static javax.net.ssl.KeyManager[] loadClientCertificate(byte[] clientCert, char[] clientCertPassword) throws SVNException
SVNException
public static javax.net.ssl.KeyManager[] loadClientCertificate(java.io.File clientCertFile, char[] clientCertPassword) throws SVNException
SVNException
public javax.net.ssl.KeyManager[] loadClientCertificate(SVNSSLAuthentication sslAuthentication) throws SVNException
SVNException
public java.lang.String[] getClientAliases(java.lang.String location, java.security.Principal[] principals)
getClientAliases
in interface javax.net.ssl.X509KeyManager
public java.lang.String chooseClientAlias(java.lang.String[] strings, java.security.Principal[] principals, java.net.Socket socket)
chooseClientAlias
in interface javax.net.ssl.X509KeyManager
public java.lang.String[] getServerAliases(java.lang.String location, java.security.Principal[] principals)
getServerAliases
in interface javax.net.ssl.X509KeyManager
public java.lang.String chooseServerAlias(java.lang.String location, java.security.Principal[] principals, java.net.Socket socket)
chooseServerAlias
in interface javax.net.ssl.X509KeyManager
public java.security.cert.X509Certificate[] getCertificateChain(java.lang.String location)
getCertificateChain
in interface javax.net.ssl.X509KeyManager
public java.security.PrivateKey getPrivateKey(java.lang.String string)
getPrivateKey
in interface javax.net.ssl.X509KeyManager
public java.lang.Exception getException()
public void acknowledgeAndClearAuthentication(SVNErrorMessage errorMessage) throws SVNException
SVNException
public boolean isInitialized()
private boolean initializeNoException()
private boolean initialize() throws SVNException
SVNException
private static java.util.List<javax.net.ssl.X509KeyManager> getX509KeyManagers(javax.net.ssl.KeyManager[] keyManagers)
private static boolean isMSCAPI(SVNSSLAuthentication sslAuthentication)