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
public abstract class AbstractDerivationKeyAgreementProcessor extends AbstractKeyAgreementProcessor
Abstract base class forKeyAgreementProcessorimplementations which do key derivation by means of a requiredKeyDerivationparameter.
-
-
Constructor Summary
Constructors Constructor Description AbstractDerivationKeyAgreementProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SecretKeyderiveSecretKey(byte[] secret, String keyAlgorithm, KeyAgreementParameters parameters)Derive aSecretKeyfrom 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
-
-
-
-
Method Detail
-
deriveSecretKey
protected SecretKey deriveSecretKey(@Nonnull byte[] secret, @Nonnull String keyAlgorithm, @Nonnull KeyAgreementParameters parameters) throws KeyAgreementException
Derive aSecretKeyfrom a given secret.- Specified by:
deriveSecretKeyin 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
-
-