Class PrivateCredential

java.lang.Object
org.opensaml.xmlsec.agreement.impl.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 Details

    • credential

      @Nonnull private Credential credential
      The wrapped Credential.
  • Constructor Details

    • PrivateCredential

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

    • getCredential

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