Package org.bouncycastle.tls
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TlsSecret
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 Detail
-
decrypt
TlsSecret decrypt(TlsCryptoParameters cryptoParams, byte[] ciphertext) throws java.io.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:
java.io.IOException
- on a parsing or decryption error.
-
-