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
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
- Specified by:
getCredentialTypein interfaceCredential- Overrides:
getCredentialTypein classBasicCredential
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceKeyAgreementCredential
-
getOriginatorCredential
- Specified by:
getOriginatorCredentialin interfaceKeyAgreementCredential
-
getRecipientCredential
- Specified by:
getRecipientCredentialin interfaceKeyAgreementCredential
-
getParameters
- Specified by:
getParametersin interfaceKeyAgreementCredential
-