# Uses of Class
org.opensaml.xmlsec.agreement.KeyAgreementException

Packages that use KeyAgreementException
Package
Description
org.opensaml.xmlsec.agreement
API components related to key agreement operations.
org.opensaml.xmlsec.agreement.impl
Implementation components related to key agreement operations.
org.opensaml.xmlsec.derivation.impl
Implementation components related to key derivation operations.

## Uses of KeyAgreementException in org.opensaml.xmlsec.agreement

Methods in org.opensaml.xmlsec.agreement that throw KeyAgreementException
Modifier and Type
Method
Description
`KeyAgreementCredential`
KeyAgreementProcessor.`execute(Credential publicCredential, String keyAlgorithm, KeyAgreementParameters parameters)`
Perform the key agreement operation and return a new credential representing the results.
`static KeyAgreementProcessor`
KeyAgreementSupport.`getProcessor(String algorithm)`
Lookup and return the `KeyAgreementProcessor` to use for the specified key agreement algorithm.
`void`
KeyAgreementParameters.`initializeAll()`
A convenience method for initializing all parameters which are initializable.
`static void`
KeyAgreementSupport.`validateKeyAlgorithmAndSize(String algorithmURI, Integer specifiedKeyLength)`
Validate the specified algorithm URI and key length for consistency.

## Uses of KeyAgreementException in org.opensaml.xmlsec.agreement.impl

Methods in org.opensaml.xmlsec.agreement.impl that throw KeyAgreementException
Modifier and Type
Method
Description
`protected KeyAgreementCredential`
AbstractKeyAgreementProcessor.`buildKeyAgreementCredential(SecretKey derivedKey, Credential publicCredential, Credential privateCredential, KeyAgreementParameters parameters)`
Build the final `KeyAgreementCredential` from the given inputs.
`protected SecretKey`
AbstractDerivationKeyAgreementProcessor.`deriveSecretKey(byte[] secret, String keyAlgorithm, KeyAgreementParameters parameters)`
Derive a `SecretKey` from a given secret.
`protected abstract SecretKey`
AbstractKeyAgreementProcessor.`deriveSecretKey(byte[] secret, String keyAlgorithm, KeyAgreementParameters parameters)`
Derive a `SecretKey` from a given secret.
`protected SecretKey`
DHWithLegacyKDFKeyAgreementProcessor.`deriveSecretKey(byte[] secret, String keyAlgorithm, KeyAgreementParameters parameters)`
Derive a `SecretKey` from a given secret.
`KeyAgreementCredential`
AbstractKeyAgreementProcessor.`execute(Credential publicCredential, String keyAlgorithm, KeyAgreementParameters inputParameters)`
Perform the key agreement operation and return a new credential representing the results.
`protected abstract byte[]`
AbstractKeyAgreementProcessor.`generateAgreementSecret(Credential publicCredential, Credential privateCredential, KeyAgreementParameters parameters)`
Generate the agreement secret according to the key algorithm and using the supplied public and private credentials.
`protected byte[]`
DHWithExplicitKDFKeyAgreementProcessor.`generateAgreementSecret(Credential publicCredential, Credential privateCredential, KeyAgreementParameters parameters)`
Generate the agreement secret according to the key algorithm and using the supplied public and private credentials.
`protected byte[]`
DHWithLegacyKDFKeyAgreementProcessor.`generateAgreementSecret(Credential publicCredential, Credential privateCredential, KeyAgreementParameters parameters)`
Generate the agreement secret according to the key algorithm and using the supplied public and private credentials.
`protected byte[]`
ECDHKeyAgreementProcessor.`generateAgreementSecret(Credential publicCredential, Credential privateCredential, KeyAgreementParameters parameters)`
Generate the agreement secret according to the key algorithm and using the supplied public and private credentials.
`protected Credential`
AbstractKeyAgreementProcessor.`obtainPrivateCredential(Credential publicCredential, KeyAgreementParameters parameters)`
Obtain the private credential which is compatible with the given public credential.
`protected Credential`
DHWithExplicitKDFKeyAgreementProcessor.`obtainPrivateCredential(Credential publicCredential, KeyAgreementParameters parameters)`
Obtain the private credential which is compatible with the given public credential.
`protected Credential`
DHWithLegacyKDFKeyAgreementProcessor.`obtainPrivateCredential(Credential publicCredential, KeyAgreementParameters parameters)`
Obtain the private credential which is compatible with the given public credential.
`protected Credential`
ECDHKeyAgreementProcessor.`obtainPrivateCredential(Credential publicCredential, KeyAgreementParameters parameters)`
Obtain the private credential which is compatible with the given public credential.
`KeyAgreementParameter`
DigestMethod.Parser.`parse(XMLObject xmlObject)`
Parse the specified `XMLObject` into a `KeyAgreementParameter`.
`KeyAgreementParameter`
KANonce.Parser.`parse(XMLObject xmlObject)`
Parse the specified `XMLObject` into a `KeyAgreementParameter`.
`KeyAgreementParameter`
KeyAgreementParameterParser.`parse(XMLObject xmlObject)`
Parse the specified `XMLObject` into a `KeyAgreementParameter`.
`KeyAgreementParameters`
KeyAgreementParametersParser.`parse(AgreementMethod agreementMethod)`
Parse the specified `AgreementMethod` into an instance of `KeyAgreementParameters`.

## Uses of KeyAgreementException in org.opensaml.xmlsec.derivation.impl

Methods in org.opensaml.xmlsec.derivation.impl that throw KeyAgreementException
Modifier and Type
Method
Description
`KeyAgreementParameter`
ConcatKDF.Parser.`parse(XMLObject xmlObject)`
Parse the specified `XMLObject` into a `KeyAgreementParameter`.
`KeyAgreementParameter`
PBKDF2.Parser.`parse(XMLObject xmlObject)`
Parse the specified `XMLObject` into a `KeyAgreementParameter`.