Interface SoapSignatureTokenConnection
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
SoapSignatureTokenConnectionImpl
public interface SoapSignatureTokenConnection extends Serializable
-
-
Method Summary
Modifier and Type Method Description RemoteKeyEntrygetKey(String alias)Retrieves a key by its aliasList<RemoteKeyEntry>getKeys()Retrieves all the available keys (private keys entries) from the token.SignatureValueDTOsign(ToBeSignedDTO toBeSigned, DigestAlgorithm digestAlgorithm, MaskGenerationFunction mgf, String alias)This method signs thetoBeSigneddata with the digestdigestAlgorithm, the maskmgfand the givenalias.SignatureValueDTOsign(ToBeSignedDTO toBeSigned, DigestAlgorithm digestAlgorithm, String alias)This method signs thetoBeSigneddata with the digestdigestAlgorithmand the givenalias.SignatureValueDTOsignDigest(DigestDTO digest, MaskGenerationFunction mgf, String alias)This method signs thedigestdata with a maskmgfand the givenalias.SignatureValueDTOsignDigest(DigestDTO digest, String alias)This method signs thedigestdata with the givenalias.
-
-
-
Method Detail
-
getKeys
List<RemoteKeyEntry> getKeys()
Retrieves all the available keys (private keys entries) from the token.- Returns:
- List of encapsulated private keys
-
getKey
RemoteKeyEntry getKey(String alias)
Retrieves a key by its alias- Parameters:
alias- the key alias to retrieve- Returns:
- the RemoteKeyEntry with the given alias
-
sign
SignatureValueDTO sign(ToBeSignedDTO toBeSigned, DigestAlgorithm digestAlgorithm, String alias)
This method signs thetoBeSigneddata with the digestdigestAlgorithmand the givenalias.- 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
SignatureValueDTO sign(ToBeSignedDTO toBeSigned, DigestAlgorithm digestAlgorithm, MaskGenerationFunction mgf, String alias)
This method signs thetoBeSigneddata with the digestdigestAlgorithm, the maskmgfand the givenalias.- 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
-
signDigest
SignatureValueDTO signDigest(DigestDTO digest, String alias)
This method signs thedigestdata with the givenalias.- 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
SignatureValueDTO signDigest(DigestDTO digest, MaskGenerationFunction mgf, String alias)
This method signs thedigestdata with a maskmgfand the givenalias.- 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
-
-