Class SoapSignatureTokenConnectionImpl
java.lang.Object
eu.europa.esig.dss.ws.server.signing.soap.SoapSignatureTokenConnectionImpl
- All Implemented Interfaces:
SoapSignatureTokenConnection,Serializable
public class SoapSignatureTokenConnectionImpl
extends Object
implements SoapSignatureTokenConnection
The SOAP implementation of server signing
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault construction instantiating object with null token connection -
Method Summary
Modifier and TypeMethodDescriptionRetrieves a key by its aliasgetKeys()Retrieves all the available keys (private keys entries) from the token.voidSets remote token connectionsign(ToBeSignedDTO toBeSigned, DigestAlgorithm digestAlgorithm, MaskGenerationFunction mgf, String alias) This method signs thetoBeSigneddata with the digestdigestAlgorithm, the maskmgfand the givenalias.sign(ToBeSignedDTO toBeSigned, DigestAlgorithm digestAlgorithm, String alias) This method signs thetoBeSigneddata with the digestdigestAlgorithmand the givenalias.sign(ToBeSignedDTO toBeSigned, SignatureAlgorithm signatureAlgorithm, String alias) This method signs thetoBeSigneddata with thesignatureAlgorithmand the givenalias.signDigest(DigestDTO digest, MaskGenerationFunction mgf, String alias) This method signs thedigestdata with a maskmgfand the givenalias.signDigest(DigestDTO digest, SignatureAlgorithm signatureAlgorithm, String alias) This method signs thedigestdata with asignatureAlgorithmand the givenalias.signDigest(DigestDTO digest, String alias) This method signs thedigestdata with the givenalias.
-
Constructor Details
-
SoapSignatureTokenConnectionImpl
public SoapSignatureTokenConnectionImpl()Default construction instantiating object with null token connection
-
-
Method Details
-
setToken
Sets remote token connection- Parameters:
token-RemoteSignatureTokenConnection
-
getKeys
Description copied from interface:SoapSignatureTokenConnectionRetrieves all the available keys (private keys entries) from the token.- Specified by:
getKeysin interfaceSoapSignatureTokenConnection- Returns:
- List of encapsulated private keys
-
getKey
Description copied from interface:SoapSignatureTokenConnectionRetrieves a key by its alias- Specified by:
getKeyin interfaceSoapSignatureTokenConnection- Parameters:
alias- the key alias to retrieve- Returns:
- the RemoteKeyEntry with the given alias
-
sign
public SignatureValueDTO sign(ToBeSignedDTO toBeSigned, DigestAlgorithm digestAlgorithm, String alias) Description copied from interface:SoapSignatureTokenConnectionThis method signs thetoBeSigneddata with the digestdigestAlgorithmand the givenalias.- Specified by:
signin interfaceSoapSignatureTokenConnection- Parameters:
toBeSigned- The data that need to be signeddigestAlgorithm- The digest algorithm to be used before signingalias- The key alias to be used- Returns:
- The array of bytes representing the signature value
-
sign
public SignatureValueDTO sign(ToBeSignedDTO toBeSigned, DigestAlgorithm digestAlgorithm, MaskGenerationFunction mgf, String alias) Description copied from interface:SoapSignatureTokenConnectionThis method signs thetoBeSigneddata with the digestdigestAlgorithm, the maskmgfand the givenalias.- Specified by:
signin interfaceSoapSignatureTokenConnection- Parameters:
toBeSigned- The data that need to be signeddigestAlgorithm- The digest algorithm to be used before signingmgf- the mask generation functionalias- The key alias to be used- Returns:
- The array of bytes representing the signature value
-
sign
public SignatureValueDTO sign(ToBeSignedDTO toBeSigned, SignatureAlgorithm signatureAlgorithm, String alias) Description copied from interface:SoapSignatureTokenConnectionThis method signs thetoBeSigneddata with thesignatureAlgorithmand the givenalias.- Specified by:
signin interfaceSoapSignatureTokenConnection- Parameters:
toBeSigned- The data that need to be signedsignatureAlgorithm- The digest algorithm to be used for signingalias- The key alias to be used- Returns:
- The array of bytes representing the signature value
-
signDigest
Description copied from interface:SoapSignatureTokenConnectionThis method signs thedigestdata with the givenalias.- Specified by:
signDigestin interfaceSoapSignatureTokenConnection- Parameters:
digest- The digested data that need to be signedalias- The key alias to be used- Returns:
- the signature value representation with the used algorithm and the binary value
-
signDigest
Description copied from interface:SoapSignatureTokenConnectionThis method signs thedigestdata with a maskmgfand the givenalias.- Specified by:
signDigestin interfaceSoapSignatureTokenConnection- Parameters:
digest- The digested data that need to be signedmgf- the mask generation functionalias- The key alias to be used- Returns:
- the signature value representation with the used algorithm and the binary value
-
signDigest
public SignatureValueDTO signDigest(DigestDTO digest, SignatureAlgorithm signatureAlgorithm, String alias) Description copied from interface:SoapSignatureTokenConnectionThis method signs thedigestdata with asignatureAlgorithmand the givenalias.- Specified by:
signDigestin interfaceSoapSignatureTokenConnection- Parameters:
digest- The digested data that need to be signedsignatureAlgorithm- The digest algorithm to be used for signingalias- The key alias to be used- Returns:
- the signature value representation with the used algorithm and the binary value
-