Class AbstractDerivationKeyAgreementProcessor
java.lang.Object
org.opensaml.xmlsec.agreement.impl.AbstractKeyAgreementProcessor
org.opensaml.xmlsec.agreement.impl.AbstractDerivationKeyAgreementProcessor
- All Implemented Interfaces:
KeyAgreementProcessor
- Direct Known Subclasses:
DHWithExplicitKDFKeyAgreementProcessor
,ECDHKeyAgreementProcessor
Abstract base class for
KeyAgreementProcessor
implementations which do key derivation by means of
a required KeyDerivation
parameter.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SecretKey
deriveSecretKey
(byte[] secret, String keyAlgorithm, KeyAgreementParameters parameters) Derive aSecretKey
from a given secret.Methods inherited from class org.opensaml.xmlsec.agreement.impl.AbstractKeyAgreementProcessor
buildKeyAgreementCredential, execute, generateAgreementSecret, obtainPrivateCredential
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opensaml.xmlsec.agreement.KeyAgreementProcessor
getAlgorithm
-
Constructor Details
-
AbstractDerivationKeyAgreementProcessor
public AbstractDerivationKeyAgreementProcessor()
-
-
Method Details
-
deriveSecretKey
protected SecretKey deriveSecretKey(@Nonnull byte[] secret, @Nonnull String keyAlgorithm, @Nonnull KeyAgreementParameters parameters) throws KeyAgreementException Derive aSecretKey
from a given secret.- Specified by:
deriveSecretKey
in classAbstractKeyAgreementProcessor
- Parameters:
secret
- the input secretkeyAlgorithm
- the JCA key algorithm for the derived keyparameters
- the key agreement parameters- Returns:
- the derived secret key
- Throws:
KeyAgreementException
- if key derivation operation does not complete successfully
-