public abstract class AbstractCrypto extends CryptoBase
Modifier and Type | Field and Description |
---|---|
protected static CertificateFactory |
certFact |
protected Properties |
properties |
cacerts, certFactMap, keystore
Constructor and Description |
---|
AbstractCrypto(Properties properties)
Constructor
|
AbstractCrypto(Properties properties,
ClassLoader loader)
This allows providing a custom class loader to load the resources, etc
|
Modifier and Type | Method and Description |
---|---|
protected String |
getCryptoProvider() |
String |
getDefaultX509Alias()
Retrieves the alias name of the default certificate which has been
specified as a property.
|
KeyStore |
load(InputStream input,
String storepass,
String provider,
String type)
Loads the keystore from an
InputStream . |
createKeyStoreErrorMessage, getAliasesForDN, getAliasForX509Cert, getAliasForX509Cert, getAliasForX509Cert, getAliasForX509Cert, getAliasForX509CertThumb, getCertificateData, getCertificateFactory, getCertificates, getKeyStore, getPrivateKey, getSKIBytesFromCert, getX509Certificates, loadCertificate, setKeyStore, splitAndTrim, validateCertPath
protected static CertificateFactory certFact
protected Properties properties
public AbstractCrypto(Properties properties) throws CredentialException, IOException
properties
- CredentialException
IOException
public AbstractCrypto(Properties properties, ClassLoader loader) throws CredentialException, IOException
properties
- loader
- CredentialException
IOException
public KeyStore load(InputStream input, String storepass, String provider, String type) throws CredentialException
InputStream
.
input
- InputStream
to read fromCredentialException
protected String getCryptoProvider()
getCryptoProvider
in class CryptoBase
public String getDefaultX509Alias()
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.