Class JceDefaultTlsCredentialedDecryptor

    • Field Detail

      • privateKey

        protected java.security.PrivateKey privateKey
    • Constructor Detail

      • JceDefaultTlsCredentialedDecryptor

        public JceDefaultTlsCredentialedDecryptor​(JcaTlsCrypto crypto,
                                                  Certificate certificate,
                                                  java.security.PrivateKey privateKey)
    • Method Detail

      • decrypt

        public TlsSecret decrypt​(TlsCryptoParameters cryptoParams,
                                 byte[] ciphertext)
                          throws java.io.IOException
        Description copied from interface: TlsCredentialedDecryptor
        Decrypt the passed in cipher text using the parameters available.
        Specified by:
        decrypt in interface TlsCredentialedDecryptor
        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.
      • safeDecryptPreMasterSecret

        protected TlsSecret safeDecryptPreMasterSecret​(TlsCryptoParameters cryptoParams,
                                                       java.security.PrivateKey rsaServerPrivateKey,
                                                       byte[] encryptedPreMasterSecret)