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, properties
cacerts, 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, load
createKeyStoreErrorMessage, getAliasesForDN, getAliasForX509Cert, getAliasForX509Cert, getAliasForX509Cert, getAliasForX509Cert, getAliasForX509CertThumb, getCertificateFactory, getCertificates, getKeyStore, getPrivateKey, getSKIBytesFromCert, loadCertificate, setKeyStore, splitAndTrim
public static final String NAME_CONSTRAINTS_OID
public Merlin(Properties properties) throws CredentialException, IOException
properties
- CredentialException
IOException
public Merlin(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
CryptoBase
validateCertPath
in interface Crypto
validateCertPath
in class CryptoBase
certs
- Certificate chain to validateWSSecurityException
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.