Interface TlsCredentialedDecryptor

All Superinterfaces:
TlsCredentials
All Known Implementing Classes:
BcDefaultTlsCredentialedDecryptor, JceDefaultTlsCredentialedDecryptor

public interface TlsCredentialedDecryptor extends TlsCredentials
Base interface for a class that decrypts TLS secrets.
  • Method Summary

    Modifier and Type
    Method
    Description
    decrypt(TlsCryptoParameters cryptoParams, byte[] ciphertext)
    Decrypt the passed in cipher text using the parameters available.

    Methods inherited from interface org.bouncycastle.tls.TlsCredentials

    getCertificate
  • Method Details

    • decrypt

      TlsSecret decrypt(TlsCryptoParameters cryptoParams, byte[] ciphertext) throws IOException
      Decrypt the passed in cipher text using the parameters available.
      Parameters:
      cryptoParams - the parameters to use for the decryption.
      ciphertext - the cipher text containing the secret.
      Returns:
      a TLS secret.
      Throws:
      IOException - on a parsing or decryption error.