Package org.bouncycastle.tls
Interface TlsCredentialedDecryptor
- All Superinterfaces:
TlsCredentials
- All Known Implementing Classes:
BcDefaultTlsCredentialedDecryptor
,JceDefaultTlsCredentialedDecryptor
Base interface for a class that decrypts TLS secrets.
-
Method Summary
Modifier and TypeMethodDescriptiondecrypt
(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
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.
-