Interface SignServiceSigner
- All Known Implementing Classes:
SignServiceECSigner
,SignServiceRSAPSSSigner
,SignServiceRSASigner
public interface SignServiceSigner
Interface for sign service signer used to create signature values.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
sign
(byte[] toBeSignedBytes, PrivateKey privateKey, se.swedenconnect.security.algorithms.SignatureAlgorithm signatureAlgorithm) Creates a signature value.
-
Method Details
-
sign
byte[] sign(@Nonnull byte[] toBeSignedBytes, @Nonnull PrivateKey privateKey, @Nonnull se.swedenconnect.security.algorithms.SignatureAlgorithm signatureAlgorithm) throws SignatureException Creates a signature value.- Parameters:
toBeSignedBytes
- the bytes to be hashed and signed by this signerprivateKey
- the private key used to signsignatureAlgorithm
- the signature algorithm used for signing- Returns:
- signature value
- Throws:
SignatureException
- on errors creating the signature
-