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 Type
    Method
    Description
    byte[]
    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 signer
      privateKey - the private key used to sign
      signatureAlgorithm - the signature algorithm used for signing
      Returns:
      signature value
      Throws:
      SignatureException - on errors creating the signature