public class BouncyCastle extends AbstractCrypto
certFact, properties
cacerts, certFactMap, keystore
Constructor and Description |
---|
BouncyCastle(Properties properties)
Constructor.
|
BouncyCastle(Properties properties,
ClassLoader loader) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getCertificateData(boolean reverse,
X509Certificate[] certs)
get a byte array given an array of X509 certificates.
|
X509Certificate[] |
getX509Certificates(byte[] data,
boolean reverse)
Construct an array of X509Certificate's from the byte array.
|
boolean |
validateCertPath(X509Certificate[] certs)
Uses the CertPath API to validate a given certificate chain
|
getCryptoProvider, getDefaultX509Alias, load
createKeyStoreErrorMessage, getAliasesForDN, getAliasForX509Cert, getAliasForX509Cert, getAliasForX509Cert, getAliasForX509Cert, getAliasForX509CertThumb, getCertificateFactory, getCertificates, getKeyStore, getPrivateKey, getSKIBytesFromCert, loadCertificate, setKeyStore, splitAndTrim
public BouncyCastle(Properties properties) throws CredentialException, IOException
properties
- CredentialException
IOException
public BouncyCastle(Properties properties, ClassLoader loader) throws CredentialException, IOException
CredentialException
IOException
public X509Certificate[] getX509Certificates(byte[] data, boolean reverse) throws WSSecurityException
getX509Certificates
in interface Crypto
getX509Certificates
in class CryptoBase
data
- The byte
array containing the X509 datareverse
- If set the first certificate in input data will
the last in the arrayWSSecurityException
public byte[] getCertificateData(boolean reverse, X509Certificate[] certs) throws WSSecurityException
getCertificateData
in interface Crypto
getCertificateData
in class CryptoBase
reverse
- If set the first certificate in the array data will
the last in the byte arraycerts
- The certificates to convertWSSecurityException
public boolean validateCertPath(X509Certificate[] certs) throws WSSecurityException
validateCertPath
in interface Crypto
validateCertPath
in class CryptoBase
certs
- Certificate chain to validateWSSecurityException
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.