org.ogf.graap.wsag.wsrf.security
Class Merlin
java.lang.Object
org.apache.ws.security.components.crypto.CryptoBase
org.apache.ws.security.components.crypto.AbstractCrypto
org.apache.ws.security.components.crypto.Merlin
org.ogf.graap.wsag.wsrf.security.Merlin
- All Implemented Interfaces:
- org.apache.ws.security.components.crypto.Crypto
public class Merlin
- extends org.apache.ws.security.components.crypto.Merlin
Merlin
- Author:
- Oliver Waeldrich
Fields inherited from class org.apache.ws.security.components.crypto.Merlin |
NAME_CONSTRAINTS_OID |
Fields inherited from class org.apache.ws.security.components.crypto.AbstractCrypto |
certFact, properties |
Fields inherited from class org.apache.ws.security.components.crypto.CryptoBase |
cacerts, certFactMap, keystore |
Constructor Summary |
Merlin(Properties properties)
Creates a new Merlin instance using the specified
properties. |
Merlin(Properties properties,
ClassLoader loader)
Creates a new Merlin instance using the specified
properties and class loader. |
Methods inherited from class org.apache.ws.security.components.crypto.Merlin |
getCertificateData, getX509Certificates, validateCertPath |
Methods inherited from class org.apache.ws.security.components.crypto.AbstractCrypto |
getCryptoProvider, getDefaultX509Alias, load |
Methods inherited from class org.apache.ws.security.components.crypto.CryptoBase |
createKeyStoreErrorMessage, getAliasesForDN, getAliasForX509Cert, getAliasForX509Cert, getAliasForX509Cert, getAliasForX509Cert, getAliasForX509CertThumb, getCertificateFactory, getKeyStore, getSKIBytesFromCert, loadCertificate, setKeyStore, splitAndTrim |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Merlin
public Merlin(Properties properties)
throws org.apache.ws.security.components.crypto.CredentialException,
IOException
- Creates a new
Merlin
instance using the specified
properties.
- Parameters:
properties
- the properties to use
- Throws:
org.apache.ws.security.components.crypto.CredentialException
- error processing the keystore credentials
IOException
- error accessing the keystore
Merlin
public Merlin(Properties properties,
ClassLoader loader)
throws org.apache.ws.security.components.crypto.CredentialException,
IOException
- Creates a new
Merlin
instance using the specified
properties and class loader.
- Parameters:
properties
- the properties to useloader
- the class loader to use
- Throws:
org.apache.ws.security.components.crypto.CredentialException
- error processing the keystore credentials
IOException
- error accessing the keystore
getPrivateKey
public PrivateKey getPrivateKey(String alias,
String password)
throws Exception
-
- Specified by:
getPrivateKey
in interface org.apache.ws.security.components.crypto.Crypto
- Overrides:
getPrivateKey
in class org.apache.ws.security.components.crypto.CryptoBase
- Throws:
Exception
- See Also:
Change the alias name provided in the AXIS2 service configuration to the defaultAlias if necessary
and change the password accordingly.
getCertificates
public X509Certificate[] getCertificates(String alias)
throws org.apache.ws.security.WSSecurityException
- Change the alias name provided in the AXIS2 service configuration to the defaultAlias if necessary.
- Specified by:
getCertificates
in interface org.apache.ws.security.components.crypto.Crypto
- Overrides:
getCertificates
in class org.apache.ws.security.components.crypto.CryptoBase
- Throws:
org.apache.ws.security.WSSecurityException
- See Also:
Crypto.getCertificates(java.lang.String)
Copyright © 2008-2012. All Rights Reserved.