Interface TlsCredentialedSigner

All Superinterfaces:
TlsCredentials
All Known Implementing Classes:
BcDefaultTlsCredentialedSigner, DefaultTlsCredentialedSigner, JcaDefaultTlsCredentialedSigner

public interface TlsCredentialedSigner extends TlsCredentials
Support interface for generating a signature based on our private credentials.
  • Method Details

    • generateRawSignature

      byte[] generateRawSignature(byte[] hash) throws IOException
      Generate a signature against the passed in hash.
      Parameters:
      hash - a message digest calculated across the message the signature is to apply to.
      Returns:
      an encoded signature.
      Throws:
      IOException - if the hash cannot be processed, or there is an issue with the private credentials.
    • getSignatureAndHashAlgorithm

      SignatureAndHashAlgorithm getSignatureAndHashAlgorithm()
      Return the algorithm IDs for the signature algorithm and the associated hash it uses.
      Returns:
      the full algorithm details for the signature.
    • getStreamSigner

      TlsStreamSigner getStreamSigner() throws IOException
      Throws:
      IOException