Class BasicKeyAgreementCredential
java.lang.Object
org.opensaml.security.credential.AbstractCredential
org.opensaml.security.credential.BasicCredential
org.opensaml.xmlsec.agreement.impl.BasicKeyAgreementCredential
- All Implemented Interfaces:
Credential,MutableCredential,KeyAgreementCredential
Basic implementation of
KeyAgreementCredential.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringAlgorithm URI.private CredentialOriginator credential.private KeyAgreementParametersParameters.private CredentialRecipient credential. -
Constructor Summary
ConstructorsConstructorDescriptionBasicKeyAgreementCredential(SecretKey derivedKey, String agreementAlgorithm, Credential originator, Credential recipient) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionThe key agreement algorithm URI used.Class<? extends Credential>Get the primary type of the credential instance.The credential holding the originator key material.The parameters to the key agreement operation.The credential holding the recipient key material.Methods inherited from class org.opensaml.security.credential.BasicCredential
setEntityId, setPrivateKey, setPublicKey, setSecretKey, setUsageTypeMethods inherited from class org.opensaml.security.credential.AbstractCredential
getCredentialContextSet, getEntityId, getKeyNames, getPrivateKey, getPublicKey, getSecretKey, getUsageTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensaml.security.credential.Credential
getCredentialContextSet, getEntityId, getKeyNames, getPrivateKey, getPublicKey, getSecretKey, getUsageType
-
Field Details
-
algorithm
Algorithm URI. -
originatorCredential
Originator credential. -
recipientCredential
Recipient credential. -
parameters
Parameters.
-
-
Constructor Details
-
BasicKeyAgreementCredential
public BasicKeyAgreementCredential(@Nonnull SecretKey derivedKey, @Nonnull String agreementAlgorithm, @Nonnull Credential originator, @Nonnull Credential recipient) Constructor.- Parameters:
derivedKey- the derived secret keyagreementAlgorithm- the key agreement algorithmoriginator- the originator credentialrecipient- the recipient credential
-
-
Method Details
-
getCredentialType
Get the primary type of the credential instance. This will usually be the primary sub-interface ofCredentialimplemented by an implementation.- Specified by:
getCredentialTypein interfaceCredential- Overrides:
getCredentialTypein classBasicCredential- Returns:
- the credential type
-
getAlgorithm
The key agreement algorithm URI used.- Specified by:
getAlgorithmin interfaceKeyAgreementCredential- Returns:
- the algorithm
-
getOriginatorCredential
The credential holding the originator key material.- Specified by:
getOriginatorCredentialin interfaceKeyAgreementCredential- Returns:
- the originator credential
-
getRecipientCredential
The credential holding the recipient key material.- Specified by:
getRecipientCredentialin interfaceKeyAgreementCredential- Returns:
- the recipient credential
-
getParameters
The parameters to the key agreement operation.- Specified by:
getParametersin interfaceKeyAgreementCredential- Returns:
- the parameters
-