Package org.opensaml.xmlsec.keyinfo.impl
Class KeyAgreementKeyInfoGeneratorFactory.KeyAgreementKeyInfoGenerator
- java.lang.Object
-
- org.opensaml.xmlsec.keyinfo.impl.BasicKeyInfoGeneratorFactory.BasicKeyInfoGenerator
-
- org.opensaml.xmlsec.keyinfo.impl.KeyAgreementKeyInfoGeneratorFactory.KeyAgreementKeyInfoGenerator
-
- All Implemented Interfaces:
KeyInfoGenerator
- Enclosing class:
- KeyAgreementKeyInfoGeneratorFactory
public class KeyAgreementKeyInfoGeneratorFactory.KeyAgreementKeyInfoGenerator extends BasicKeyInfoGeneratorFactory.BasicKeyInfoGenerator
An implementation ofKeyInfoGeneratorcapable of handling the information contained within aKeyAgreementCredential.
-
-
Field Summary
Fields Modifier and Type Field Description private XMLObjectBuilder<AgreementMethod>agreementMethodBuilderBuilder for AgreementMethod objects.private org.slf4j.LoggerlogClass logger.private KeyAgreementKeyInfoGeneratorFactory.KeyAgreementOptionsoptionsThe set of options to be used by the generator.
-
Constructor Summary
Constructors Modifier Constructor Description protectedKeyAgreementKeyInfoGenerator(KeyAgreementKeyInfoGeneratorFactory.KeyAgreementOptions newOptions, Class<? extends KeyInfo> type)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyInfogenerate(Credential credential)private voidprocessAgreementParameters(KeyInfo keyInfo, AgreementMethod agreementMethod, KeyAgreementCredential credential)private voidprocessOriginatorKeyInfo(KeyInfo keyInfo, AgreementMethod agreementMethod, KeyAgreementCredential credential)Process theKeyAgreementCredential.getOriginatorCredential().private voidprocessRecipientKeyInfo(KeyInfo keyInfo, AgreementMethod agreementMethod, KeyAgreementCredential credential)-
Methods inherited from class org.opensaml.xmlsec.keyinfo.impl.BasicKeyInfoGeneratorFactory.BasicKeyInfoGenerator
buildKeyInfo, classToElementName, processEntityID, processKeyNames, processPublicKey
-
-
-
-
Field Detail
-
log
private final org.slf4j.Logger log
Class logger.
-
options
private KeyAgreementKeyInfoGeneratorFactory.KeyAgreementOptions options
The set of options to be used by the generator.
-
agreementMethodBuilder
private final XMLObjectBuilder<AgreementMethod> agreementMethodBuilder
Builder for AgreementMethod objects.
-
-
Constructor Detail
-
KeyAgreementKeyInfoGenerator
protected KeyAgreementKeyInfoGenerator(KeyAgreementKeyInfoGeneratorFactory.KeyAgreementOptions newOptions, Class<? extends KeyInfo> type)
Constructor.- Parameters:
newOptions- the options to be used by the generatortype- the KeyInfo element type
-
-
Method Detail
-
generate
@Nullable public KeyInfo generate(@Nullable Credential credential) throws SecurityException
- Specified by:
generatein interfaceKeyInfoGenerator- Overrides:
generatein classBasicKeyInfoGeneratorFactory.BasicKeyInfoGenerator- Throws:
SecurityException
-
processAgreementParameters
private void processAgreementParameters(@Nonnull KeyInfo keyInfo, @Nonnull AgreementMethod agreementMethod, @Nonnull KeyAgreementCredential credential) throws SecurityException- Parameters:
keyInfo- the KeyInfo that is being builtagreementMethod- the AgreementMethod that is being builtcredential- the Credential that is being processed- Throws:
SecurityException- if there is a fatal error processing any agreement parameters
-
processOriginatorKeyInfo
private void processOriginatorKeyInfo(@Nonnull KeyInfo keyInfo, @Nonnull AgreementMethod agreementMethod, @Nonnull KeyAgreementCredential credential) throws SecurityExceptionProcess theKeyAgreementCredential.getOriginatorCredential().- Parameters:
keyInfo- the KeyInfo that is being builtagreementMethod- the AgreementMethod that is being builtcredential- the Credential that is being processed- Throws:
SecurityException- if there is a fatal error processing the originator KeyInfo
-
processRecipientKeyInfo
private void processRecipientKeyInfo(@Nonnull KeyInfo keyInfo, @Nonnull AgreementMethod agreementMethod, @Nonnull KeyAgreementCredential credential) throws SecurityException- Parameters:
keyInfo- the KeyInfo that is being builtagreementMethod- the AgreementMethod that is being builtcredential- the Credential that is being processed- Throws:
SecurityException- if there is a fatal error processing the recipient KeyInfo
-
-