public final class GlobusSSLHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.security.KeyStore |
buildTrustStore(java.lang.String provider,
java.lang.String trustAnchorStoreType,
java.lang.String trustAnchorStoreLocation,
java.lang.String trustAnchorStorePassword)
Create a trust store using the supplied details.
|
static java.security.KeyStore |
findCredentialStore(java.lang.String provider,
java.lang.String credentialStoreType,
java.lang.String credentialStoreLocation,
java.lang.String credentialStorePassword)
Create a configured CredentialStore using the supplied parameters.
|
static java.security.cert.CertStore |
findCRLStore(java.lang.String crlPattern)
Create a store of Certificate Revocation Lists.
|
public static java.security.KeyStore buildTrustStore(java.lang.String provider, java.lang.String trustAnchorStoreType, java.lang.String trustAnchorStoreLocation, java.lang.String trustAnchorStorePassword) throws GlobusSSLConfigurationException
provider
- The Java security provider to use.trustAnchorStoreType
- The type of key store to be constructed.trustAnchorStoreLocation
- The location of the trust store filetrustAnchorStorePassword
- The password for the trust store.GlobusSSLConfigurationException
- If unable to construct the TrustStore.public static java.security.KeyStore findCredentialStore(java.lang.String provider, java.lang.String credentialStoreType, java.lang.String credentialStoreLocation, java.lang.String credentialStorePassword) throws GlobusSSLConfigurationException
provider
- The Java security provider to use.credentialStoreType
- The type of key store to be constructed.credentialStoreLocation
- The location of the credential store filecredentialStorePassword
- The password for the credential store.GlobusSSLConfigurationException
- If unable to construct the Credential Store.public static java.security.cert.CertStore findCRLStore(java.lang.String crlPattern) throws GlobusSSLConfigurationException
crlPattern
- The pattern which defines the locations of the CRL'sGlobusSSLConfigurationException
- if the store cannot be loaded.