public class Merlin extends AbstractCrypto
| Modifier and Type | Field and Description |
|---|---|
static java.lang.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(java.util.Properties properties)
Constructor.
|
Merlin(java.util.Properties properties,
java.lang.ClassLoader loader) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getCertificateData(boolean reverse,
java.security.cert.X509Certificate[] certs)
get a byte array given an array of X509 certificates.
|
java.security.cert.X509Certificate[] |
getX509Certificates(byte[] data,
boolean reverse)
Construct an array of X509Certificate's from the byte array.
|
boolean |
validateCertPath(java.security.cert.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 java.lang.String NAME_CONSTRAINTS_OID
public Merlin(java.util.Properties properties)
throws CredentialException,
java.io.IOException
properties - CredentialExceptionjava.io.IOExceptionpublic Merlin(java.util.Properties properties,
java.lang.ClassLoader loader)
throws CredentialException,
java.io.IOException
CredentialExceptionjava.io.IOExceptionpublic java.security.cert.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,
java.security.cert.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(java.security.cert.X509Certificate[] certs)
throws WSSecurityException
CryptoBasevalidateCertPath in interface CryptovalidateCertPath in class CryptoBasecerts - Certificate chain to validateWSSecurityExceptionCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.