|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ogf.graap.wsag.client.wsrf.security.Merlin
public class Merlin
WSAG4J Merlin is an implementation of the WSS4J Crypto
interface. It reads a crypto object from the
Axis2 MessageContext
using the SecurityConstants.CRYPTO_SIGN
key. All calls to this
instance are delegated to the signing crypto.
Constructor Summary | |
---|---|
Merlin(Properties properties)
Default constructor used by the WS-Security implementation. |
|
Merlin(Properties properties,
ClassLoader loader)
Default constructor used by the WS-Security implementation. |
Method Summary | |
---|---|
String[] |
getAliasesForDN(String arg0)
Test Test. |
String |
getAliasForX509Cert(byte[] arg0)
|
String |
getAliasForX509Cert(Certificate arg0)
|
String |
getAliasForX509Cert(String issuer)
|
String |
getAliasForX509Cert(String arg0,
BigInteger arg1)
|
String |
getAliasForX509CertThumb(byte[] arg0)
|
byte[] |
getCertificateData(boolean arg0,
X509Certificate[] certs)
|
CertificateFactory |
getCertificateFactory()
|
X509Certificate[] |
getCertificates(String alias)
|
String |
getDefaultX509Alias()
|
KeyStore |
getKeyStore()
|
PrivateKey |
getPrivateKey(String alias,
String password)
|
byte[] |
getSKIBytesFromCert(X509Certificate certificate)
|
X509Certificate[] |
getX509Certificates(byte[] bytes,
boolean arg1)
|
X509Certificate |
loadCertificate(InputStream in)
|
boolean |
validateCertPath(X509Certificate[] cert)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Merlin(Properties properties) throws org.apache.ws.security.components.crypto.CredentialException, IOException
properties
- the Merlin properties
org.apache.ws.security.components.crypto.CredentialException
- indicates an error loading or processing the credentials
IOException
- indicates an error reading from the keystorepublic Merlin(Properties properties, ClassLoader loader) throws org.apache.ws.security.components.crypto.CredentialException, IOException
properties
- the Merlin propertiesloader
- the ClassLoader
to use
org.apache.ws.security.components.crypto.CredentialException
- indicates an error loading or processing the credentials
IOException
- indicates an error reading from the keystoreMethod Detail |
---|
public String[] getAliasesForDN(String arg0) throws org.apache.ws.security.WSSecurityException
getAliasesForDN
in interface org.apache.ws.security.components.crypto.Crypto
org.apache.ws.security.WSSecurityException
public String getAliasForX509Cert(byte[] arg0) throws org.apache.ws.security.WSSecurityException
getAliasForX509Cert
in interface org.apache.ws.security.components.crypto.Crypto
arg0
-
org.apache.ws.security.WSSecurityException
Crypto.getAliasForX509Cert(byte[])
public String getAliasForX509Cert(Certificate arg0) throws org.apache.ws.security.WSSecurityException
getAliasForX509Cert
in interface org.apache.ws.security.components.crypto.Crypto
arg0
-
org.apache.ws.security.WSSecurityException
Crypto.getAliasForX509Cert(java.security.cert.Certificate)
public String getAliasForX509Cert(String arg0, BigInteger arg1) throws org.apache.ws.security.WSSecurityException
getAliasForX509Cert
in interface org.apache.ws.security.components.crypto.Crypto
arg0
- arg1
-
org.apache.ws.security.WSSecurityException
Crypto.getAliasForX509Cert(java.lang.String,
java.math.BigInteger)
public String getAliasForX509Cert(String issuer) throws org.apache.ws.security.WSSecurityException
getAliasForX509Cert
in interface org.apache.ws.security.components.crypto.Crypto
org.apache.ws.security.WSSecurityException
CryptoBase.getAliasForX509Cert(String)
public String getAliasForX509CertThumb(byte[] arg0) throws org.apache.ws.security.WSSecurityException
getAliasForX509CertThumb
in interface org.apache.ws.security.components.crypto.Crypto
arg0
- The certificate thumb as byte array.
org.apache.ws.security.WSSecurityException
- A failure occurred getting the alias from the certificate.Crypto.getAliasForX509CertThumb(byte[])
public byte[] getCertificateData(boolean arg0, X509Certificate[] certs) throws org.apache.ws.security.WSSecurityException
getCertificateData
in interface org.apache.ws.security.components.crypto.Crypto
arg0
- certs
- The certificate chain to convert.
org.apache.ws.security.WSSecurityException
- A failure occurred getting the certificate data.Crypto.getCertificateData(boolean,
java.security.cert.X509Certificate[])
public CertificateFactory getCertificateFactory() throws org.apache.ws.security.WSSecurityException
getCertificateFactory
in interface org.apache.ws.security.components.crypto.Crypto
org.apache.ws.security.WSSecurityException
- A failure occurred getting the certificate factory.Crypto.getCertificateFactory()
public X509Certificate[] getCertificates(String alias) throws org.apache.ws.security.WSSecurityException
getCertificates
in interface org.apache.ws.security.components.crypto.Crypto
alias
- The alias for which the certificate chain should be retrieved.
org.apache.ws.security.WSSecurityException
- A failure occurred getting the certificate chain.Crypto.getCertificates(java.lang.String)
public String getDefaultX509Alias()
getDefaultX509Alias
in interface org.apache.ws.security.components.crypto.Crypto
Crypto.getDefaultX509Alias()
public KeyStore getKeyStore()
getKeyStore
in interface org.apache.ws.security.components.crypto.Crypto
Crypto.getKeyStore()
public PrivateKey getPrivateKey(String alias, String password) throws Exception
getPrivateKey
in interface org.apache.ws.security.components.crypto.Crypto
alias
- The private key alias.password
- The private key password.
Exception
- A failure occurred getting the private key.Crypto.getPrivateKey(java.lang.String, java.lang.String)
public byte[] getSKIBytesFromCert(X509Certificate certificate) throws org.apache.ws.security.WSSecurityException
getSKIBytesFromCert
in interface org.apache.ws.security.components.crypto.Crypto
certificate
- The certificate to get the SKI bytes from.
org.apache.ws.security.WSSecurityException
- A failure occurred getting the SKI bytes.Crypto.getSKIBytesFromCert(java.security.cert.X509Certificate)
public X509Certificate[] getX509Certificates(byte[] bytes, boolean arg1) throws org.apache.ws.security.WSSecurityException
getX509Certificates
in interface org.apache.ws.security.components.crypto.Crypto
bytes
- arg1
-
org.apache.ws.security.WSSecurityException
- A failure occurred during the loading procedure.Crypto.getX509Certificates(byte[], boolean)
public X509Certificate loadCertificate(InputStream in) throws org.apache.ws.security.WSSecurityException
loadCertificate
in interface org.apache.ws.security.components.crypto.Crypto
in
- The input stream from which the certificate is loaded.
org.apache.ws.security.WSSecurityException
- A failure occurred during the loading procedure.Crypto.loadCertificate(java.io.InputStream)
public boolean validateCertPath(X509Certificate[] cert) throws org.apache.ws.security.WSSecurityException
validateCertPath
in interface org.apache.ws.security.components.crypto.Crypto
cert
- The certificate path to validate.
org.apache.ws.security.WSSecurityException
- An exception occurred during the certificate path validation process.Crypto.validateCertPath(java.security.cert.X509Certificate[])
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |