public class KeystoreManager extends Object implements org.springframework.beans.factory.InitializingBean
Modifier and Type | Class and Description |
---|---|
static class |
KeystoreManager.IssuerSerial |
Constructor and Description |
---|
KeystoreManager(String identityStorePath,
String identityStoreType,
String identityStorePassword,
String identityAlias,
String identityKeypass,
String trustStorePath,
String trustStoreType,
String trustStorePassword)
Create a KeystoreManager for the given identity and trust keystores
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
X509Certificate[] |
getCertificatesByIssuerSerial(String issuerName,
BigInteger serial) |
CertStore |
getCertsForSignature()
create a CertStore containing the certificates we want carried in a signature
|
X509Certificate |
getIdentityCertificate() |
KeyPair |
getIdentityPrivateKey() |
org.bouncycastle.asn1.ASN1EncodableVector |
getSignedAttrs() |
X509Certificate |
getTrustedCertificate(String alias) |
KeyStore |
getTrustKeystore() |
void |
setEncryptAlias(String encryptAlias) |
void |
setIdentityAlias(String identityAlias) |
void |
setIdentityKeypass(String identityKeypass) |
void |
setIdentityStoreType(String identityStoreType) |
void |
setSignCertAliasList(String[] signCertAliasList)
Set an array of certificate aliases to be attached to signatures
|
void |
setTrustStoreType(String trustStoreType) |
public KeystoreManager(String identityStorePath, String identityStoreType, String identityStorePassword, String identityAlias, String identityKeypass, String trustStorePath, String trustStoreType, String trustStorePassword)
identityStorePath
- path to the identity keystoreidentityStoreType
- keystore type of the identity keystoreidentityStorePassword
- password to the identity keystoreidentityAlias
- alias for the identity keyidentityKeypass
- identity key passwordtrustStorePath
- path to the trust keystoretrustStoreType
- keystore type of the trust keystoretrustStorePassword
- password to the trust keystorepublic X509Certificate[] getCertificatesByIssuerSerial(String issuerName, BigInteger serial)
public KeyStore getTrustKeystore()
public KeyPair getIdentityPrivateKey()
public X509Certificate getIdentityCertificate()
public X509Certificate getTrustedCertificate(String alias)
public CertStore getCertsForSignature()
public void setIdentityAlias(String identityAlias)
public void setIdentityKeypass(String identityKeypass)
public void setSignCertAliasList(String[] signCertAliasList)
signCertAliasList
- a String array of aliases which maybe specified as a comma separated String in Springpublic void setEncryptAlias(String encryptAlias)
public org.bouncycastle.asn1.ASN1EncodableVector getSignedAttrs()
public void setIdentityStoreType(String identityStoreType)
public void setTrustStoreType(String trustStoreType)
Copyright © 2016–2019 AdroitLogic. All rights reserved.