Top Description Methods
org.bouncycastle.tls

public Interface TlsCredentialedDecryptor

extends TlsCredentials
Known Direct Implementers
org.bouncycastle.tls.crypto.impl.bc.BcDefaultTlsCredentialedDecryptor, org.bouncycastle.tls.crypto.impl.jcajce.JceDefaultTlsCredentialedDecryptor
Imports
java.io.IOException, org.bouncycastle.tls.crypto.TlsCryptoParameters, .TlsSecret

Base interface for a class that decrypts TLS secrets.

Method Summary

Modifier and TypeMethod and Description
public TlsSecret

Returns:

a TLS secret.
decrypt
(TlsCryptoParameters
the parameters to use for the decryption.
cryptoParams
,
byte[]
the cipher text containing the secret.
ciphertext
)

Decrypt the passed in cipher text using the parameters available.

Inherited from org.bouncycastle.tls.TlsCredentials:
getCertificate

Method Detail

decryptback to summary
public TlsSecret decrypt(TlsCryptoParameters cryptoParams, byte[] ciphertext) throws IOException

Decrypt the passed in cipher text using the parameters available.

Parameters
cryptoParams:TlsCryptoParameters

the parameters to use for the decryption.

ciphertext:byte[]

the cipher text containing the secret.

Returns:TlsSecret

a TLS secret.

Exceptions
IOException:
on a parsing or decryption error.