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 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, obtainPrivateCredentialMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensaml.xmlsec.agreement.KeyAgreementProcessor
getAlgorithm
-
Constructor Details
-
AbstractDerivationKeyAgreementProcessor
public AbstractDerivationKeyAgreementProcessor()
-
-
Method Details
-
deriveSecretKey
@Nonnull 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
-