public final class GlobusSSLHelper extends Object
Modifier and Type | Method and Description |
---|---|
static KeyStore |
buildTrustStore(String provider,
String trustAnchorStoreType,
String trustAnchorStoreLocation,
String trustAnchorStorePassword)
Create a trust store using the supplied details.
|
static KeyStore |
findCredentialStore(String provider,
String credentialStoreType,
String credentialStoreLocation,
String credentialStorePassword)
Create a configured CredentialStore using the supplied parameters.
|
static CertStore |
findCRLStore(String crlPattern)
Create a store of Certificate Revocation Lists.
|
public static KeyStore buildTrustStore(String provider, String trustAnchorStoreType, String trustAnchorStoreLocation, 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 KeyStore findCredentialStore(String provider, String credentialStoreType, String credentialStoreLocation, 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 CertStore findCRLStore(String crlPattern) throws GlobusSSLConfigurationException
crlPattern
- The pattern which defines the locations of the CRL'sGlobusSSLConfigurationException
- if the store cannot be loaded.Copyright © 2016. All rights reserved.