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 KeyStoreprivate Stringprivate Stringprivate Stringprivate Stringprivate CertStoreprivate Stringprivate Map<String, ProxyPolicyHandler> private org.apache.commons.logging.Logprivate SigningPolicyStoreprivate Stringprivate Stringprivate booleanprivate Stringprivate SSLContextprivate Stringprivate KeyStoreprivate Stringprivate Stringprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidCreate an SSLSocketFactory based on the configured stores.Create an SSLServerSocketFactory based on the configured stores.private ManagerFactoryParametersCreate an SSLContext based on the configured stores.booleanprivate KeyManager[]private SecureRandomprivate SSLContextvoidsetCredentialStore(KeyStore credentialStore) voidsetCredentialStoreLocation(String credentialStoreLocation) voidsetCredentialStorePassword(String credentialStorePassword) voidsetCredentialStoreType(String credentialStoreType) voidsetCrlLocationPattern(String crlLocationPattern) voidsetCrlStore(CertStore crlStore) voidsetCrlStoreType(String crlStoreType) voidsetHandlers(Map<String, ProxyPolicyHandler> handlers) voidsetPolicyStore(SigningPolicyStore policyStore) voidsetProtocol(String protocol) voidsetProvider(String provider) voidsetRejectLimitProxy(boolean rejectLimitProxy) voidsetSecureRandomAlgorithm(String secureRandomAlgorithm) voidsetTrustAnchorStore(KeyStore trustAnchorStore) voidsetTrustAnchorStoreLocation(String trustAnchorStoreLocation) voidsetTrustAnchorStorePassword(String trustAnchorStorePassword) voidsetTrustAnchorStoreType(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
-