Class PrivateCredential

  • All Implemented Interfaces:
    KeyAgreementParameter

    public class PrivateCredential
    extends Object
    implements KeyAgreementParameter
    Key agreement parameter used to pass a Credential holding a required private key.

    This is typically used in the decryption case to pass in the recipient's private credential.

    • Field Detail

      • credential

        private Credential credential
        The wrapped Credential.
    • Constructor Detail

      • PrivateCredential

        public PrivateCredential​(@Nonnull
                                 Credential newCredential)
        Constructor.
        Parameters:
        newCredential - the private credential, containing a PrivateKey
    • Method Detail

      • getCredential

        @Nonnull
        public Credential getCredential()
        Get the wrapped credential.
        Returns:
        the credential