public class BouncyCastle extends AbstractCrypto
certFact, propertiescacerts, 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, loadcreateKeyStoreErrorMessage, getAliasesForDN, getAliasForX509Cert, getAliasForX509Cert, getAliasForX509Cert, getAliasForX509Cert, getAliasForX509CertThumb, getCertificateFactory, getCertificates, getKeyStore, getPrivateKey, getSKIBytesFromCert, loadCertificate, setKeyStore, splitAndTrimpublic BouncyCastle(Properties properties) throws CredentialException, IOException
properties - CredentialExceptionIOExceptionpublic BouncyCastle(Properties properties, ClassLoader loader) throws CredentialException, IOException
CredentialExceptionIOExceptionpublic X509Certificate[] getX509Certificates(byte[] data, boolean reverse) throws WSSecurityException
getX509Certificates in interface CryptogetX509Certificates in class CryptoBasedata - The byte array containing the X509 datareverse - If set the first certificate in input data will
the last in the arrayWSSecurityExceptionpublic byte[] getCertificateData(boolean reverse,
X509Certificate[] certs)
throws WSSecurityException
getCertificateData in interface CryptogetCertificateData in class CryptoBasereverse - If set the first certificate in the array data will
the last in the byte arraycerts - The certificates to convertWSSecurityExceptionpublic boolean validateCertPath(X509Certificate[] certs) throws WSSecurityException
validateCertPath in interface CryptovalidateCertPath in class CryptoBasecerts - Certificate chain to validateWSSecurityExceptionCopyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.