public class Merlin extends AbstractCrypto
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME_CONSTRAINTS_OID
OID For the NameConstraints Extension to X.509
http://java.sun.com/j2se/1.4.2/docs/api/
http://www.ietf.org/rfc/rfc3280.txt (s.
|
certFact, propertiescacerts, certFactMap, keystore| Constructor and Description |
|---|
Merlin(Properties properties)
Constructor.
|
Merlin(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)
Overridden because there's a bug in the base class where they don't use
the provider variant for the certificate validator.
|
getCryptoProvider, getDefaultX509Alias, loadcreateKeyStoreErrorMessage, getAliasesForDN, getAliasForX509Cert, getAliasForX509Cert, getAliasForX509Cert, getAliasForX509Cert, getAliasForX509CertThumb, getCertificateFactory, getCertificates, getKeyStore, getPrivateKey, getSKIBytesFromCert, loadCertificate, setKeyStore, splitAndTrimpublic static final String NAME_CONSTRAINTS_OID
public Merlin(Properties properties) throws CredentialException, IOException
properties - CredentialExceptionIOExceptionpublic Merlin(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
CryptoBasevalidateCertPath in interface CryptovalidateCertPath in class CryptoBasecerts - Certificate chain to validateWSSecurityExceptionCopyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.