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 Summary
Fields Modifier and Type Field Description private CredentialcredentialThe wrapped Credential.
-
Constructor Summary
Constructors Constructor Description PrivateCredential(Credential newCredential)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CredentialgetCredential()Get the wrapped 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 aPrivateKey
-
-
Method Detail
-
getCredential
@Nonnull public Credential getCredential()
Get the wrapped credential.- Returns:
- the credential
-
-