Package org.globus.gsi.jsse
Class SSLConfigurator
java.lang.Object
org.globus.gsi.jsse.SSLConfigurator
This class is used to configure and create SSL socket factories. The
factories can either be built by setting the credentialStore, crlStore,
trustAnchorStore and policyStore directly, or it can use the java security
SPI mechanism. This is the simplest way to configure the globus ssl support.
- Since:
- 1.0
- Version:
- ${version}
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate KeyStore
private String
private String
private String
private String
private CertStore
private String
private Map<String,
ProxyPolicyHandler> private org.apache.commons.logging.Log
private SigningPolicyStore
private String
private String
private boolean
private String
private SSLContext
private String
private KeyStore
private String
private String
private String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
Create an SSLSocketFactory based on the configured stores.Create an SSLServerSocketFactory based on the configured stores.private ManagerFactoryParameters
Create an SSLContext based on the configured stores.boolean
private KeyManager[]
private SecureRandom
private SSLContext
void
setCredentialStore
(KeyStore credentialStore) void
setCredentialStoreLocation
(String credentialStoreLocation) void
setCredentialStorePassword
(String credentialStorePassword) void
setCredentialStoreType
(String credentialStoreType) void
setCrlLocationPattern
(String crlLocationPattern) void
setCrlStore
(CertStore crlStore) void
setCrlStoreType
(String crlStoreType) void
setHandlers
(Map<String, ProxyPolicyHandler> handlers) void
setPolicyStore
(SigningPolicyStore policyStore) void
setProtocol
(String protocol) void
setProvider
(String provider) void
setRejectLimitProxy
(boolean rejectLimitProxy) void
setSecureRandomAlgorithm
(String secureRandomAlgorithm) void
setTrustAnchorStore
(KeyStore trustAnchorStore) void
setTrustAnchorStoreLocation
(String trustAnchorStoreLocation) void
setTrustAnchorStorePassword
(String trustAnchorStorePassword) void
setTrustAnchorStoreType
(String trustAnchorStoreType)
-
Field Details
-
provider
-
protocol
-
secureRandomAlgorithm
-
credentialStore
-
trustAnchorStore
-
crlStore
-
policyStore
-
rejectLimitProxy
private boolean rejectLimitProxy -
handlers
-
trustAnchorStoreType
-
trustAnchorStoreLocation
-
trustAnchorStorePassword
-
credentialStoreType
-
credentialStoreLocation
-
credentialStorePassword
-
crlStoreType
-
crlLocationPattern
-
sslContext
-
logger
private org.apache.commons.logging.Log logger -
sslKeyManagerFactoryAlgorithm
-
-
Constructor Details
-
SSLConfigurator
public SSLConfigurator()
-
-
Method Details
-
createFactory
Create an SSLSocketFactory based on the configured stores.- Returns:
- A configured SSLSocketFactory
- Throws:
GlobusSSLConfigurationException
- If we fail to create the socketFactory.
-
getSSLContext
Create an SSLContext based on the configured stores.- Returns:
- A configured SSLContext.
- Throws:
GlobusSSLConfigurationException
- If we fail to create the context.
-
createServerFactory
Create an SSLServerSocketFactory based on the configured stores.- Returns:
- A configured SSLServerSocketFactory
- Throws:
GlobusSSLConfigurationException
- If we fail to create the server socket factory.
-
configureContext
- Throws:
GlobusSSLConfigurationException
-
getCertPathParameters
- Throws:
GlobusSSLConfigurationException
-
loadSSLContext
- Throws:
GlobusSSLConfigurationException
-
loadSecureRandom
- Throws:
GlobusSSLConfigurationException
-
loadKeyManagers
- Throws:
GlobusSSLConfigurationException
-
getProvider
-
setProvider
-
getProtocol
-
setProtocol
-
getSecureRandomAlgorithm
-
setSecureRandomAlgorithm
-
getCredentialStorePassword
-
setCredentialStorePassword
-
getTrustAnchorStore
-
setTrustAnchorStore
-
getCrlStore
-
setCrlStore
-
getPolicyStore
-
setPolicyStore
-
isRejectLimitProxy
public boolean isRejectLimitProxy() -
setRejectLimitProxy
public void setRejectLimitProxy(boolean rejectLimitProxy) -
getHandlers
-
setHandlers
-
getCredentialStoreLocation
-
setCredentialStoreLocation
-
getCredentialStoreType
-
setCredentialStoreType
-
getTrustAnchorStoreType
-
setTrustAnchorStoreType
-
getTrustAnchorStoreLocation
-
setTrustAnchorStoreLocation
-
getTrustAnchorStorePassword
-
setTrustAnchorStorePassword
-
getCrlStoreType
-
setCrlStoreType
-
getCrlLocationPattern
-
setCrlLocationPattern
-
getCredentialStore
-
setCredentialStore
-