Package org.projecthusky.xua.crypt
Class SignCryptModuleImpl
java.lang.Object
org.projecthusky.xua.crypt.SignCryptModuleImpl
- All Implemented Interfaces:
SignCryptModule
Class implementing the corresponding interface SignCryptModule.
Die Klasse implementiert das entsprechende Interface SignCryptModule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setPki
(KeyStore aKeyStore, String aKeyStorePassword, KeyStore aTrustStore, String aTrustStorePassword) Method to set the key and truststore and the corresponding passwords. Methode um den key und trust store und deren Passwörter zu setzen.void
signArtifactResolve
(ArtifactResolve artifactResolve, String aSigningAlias) void
signAuthnRequest
(AuthnRequest aAuthnRequest, String aSigningAlias) Method to sign an AuthnRequest. Methode um einen AuthnRequest zu signieren.
-
Constructor Details
-
SignCryptModuleImpl
public SignCryptModuleImpl()
-
-
Method Details
-
setPki
public void setPki(KeyStore aKeyStore, String aKeyStorePassword, KeyStore aTrustStore, String aTrustStorePassword) Method to set the key and truststore and the corresponding passwords.Methode um den key und trust store und deren Passwörter zu setzen.- Specified by:
setPki
in interfaceSignCryptModule
- Parameters:
aKeyStore
-the keystore to be set.der Keystore der gesetzt werden soll.aKeyStorePassword
-the password of the keystore to be set.das Passwort zum KeystoreaTrustStore
-the truststore to be set.der Truststore der gesetzt werden soll.aTrustStorePassword
-the password of the truststore to be set.das Passwort zum Truststore- See Also:
-
signArtifactResolve
public void signArtifactResolve(ArtifactResolve artifactResolve, String aSigningAlias) throws SigningException - Specified by:
signArtifactResolve
in interfaceSignCryptModule
- Throws:
SigningException
-
signAuthnRequest
public void signAuthnRequest(AuthnRequest aAuthnRequest, String aSigningAlias) throws SigningException Method to sign an AuthnRequest.Methode um einen AuthnRequest zu signieren.- Specified by:
signAuthnRequest
in interfaceSignCryptModule
- Parameters:
aAuthnRequest
-the AuthnRequest to be signedder AuthnRequest der signiert werden sollaSigningAlias
-the alias of the key in the keystore to be used for signingder Alias des Keys aus dem Keystore welcher zum signieren gebraucht werden soll- Throws:
SigningException
-will be thrown when an error occures signing the AuthnRequestwird geworfen wenn ein Fehler beim Signieren des Authnrequests auftritt- See Also:
-