Package org.opensaml.xmlsec.keyinfo.impl
Class KeyAgreementKeyInfoGeneratorFactory
java.lang.Object
org.opensaml.xmlsec.keyinfo.impl.BasicKeyInfoGeneratorFactory
org.opensaml.xmlsec.keyinfo.impl.KeyAgreementKeyInfoGeneratorFactory
- All Implemented Interfaces:
KeyInfoGeneratorFactory
A factory implementation which produces instances of
KeyInfoGenerator capable of
handling the information contained within an KeyAgreementCredential.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassAn implementation ofKeyInfoGeneratorcapable of handling the information contained within aKeyAgreementCredential.protected classOptions to be used in the production of aKeyInfofrom anKeyAgreementCredential.Nested classes/interfaces inherited from class org.opensaml.xmlsec.keyinfo.impl.BasicKeyInfoGeneratorFactory
BasicKeyInfoGeneratorFactory.BasicKeyInfoGenerator, BasicKeyInfoGeneratorFactory.BasicOptions -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final KeyAgreementKeyInfoGeneratorFactory.KeyAgreementOptionsThe set of options configured for the factory. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the option to emit the OriginatorKeyInfo element within the AgreementMethod element.booleanGet the option to emit the RecipientKeyInfo element within the AgreementMethod element.Class<? extends Credential>Get the options of this instance.Get theKeyInfoGeneratorManagerinstance to use to emitOriginatorKeyInfo.Get theKeyInfoGeneratorManagerinstance to use to emitRecipientKeyInfo.booleanhandles(Credential credential) newInstance(Class<? extends KeyInfo> type) Get a new instance to hold options.voidsetEmitOriginatorKeyInfo(boolean newValue) Set the option to emit the OriginatorKeyInfo element within the AgreementMethod element.voidsetEmitRecipientKeyInfo(boolean newValue) Set the option to emit the RecipientKeyInfo element within the AgreementMethod element.voidSet theKeyInfoGeneratorManagerinstance to use to emitOriginatorKeyInfo.voidSet theKeyInfoGeneratorManagerinstance to use to emitRecipientKeyInfo.Methods inherited from class org.opensaml.xmlsec.keyinfo.impl.BasicKeyInfoGeneratorFactory
emitEntityIDAsKeyName, emitKeyNames, emitPublicDEREncodedKeyValue, emitPublicKeyValue, setEmitEntityIDAsKeyName, setEmitKeyNames, setEmitPublicDEREncodedKeyValue, setEmitPublicKeyValue
-
Field Details
-
options
The set of options configured for the factory.
-
-
Constructor Details
-
KeyAgreementKeyInfoGeneratorFactory
public KeyAgreementKeyInfoGeneratorFactory()Constructor.
-
-
Method Details
-
getCredentialType
- Specified by:
getCredentialTypein interfaceKeyInfoGeneratorFactory- Overrides:
getCredentialTypein classBasicKeyInfoGeneratorFactory
-
handles
- Specified by:
handlesin interfaceKeyInfoGeneratorFactory- Overrides:
handlesin classBasicKeyInfoGeneratorFactory
-
newInstance
- Specified by:
newInstancein interfaceKeyInfoGeneratorFactory- Overrides:
newInstancein classBasicKeyInfoGeneratorFactory
-
newInstance
- Specified by:
newInstancein interfaceKeyInfoGeneratorFactory- Overrides:
newInstancein classBasicKeyInfoGeneratorFactory
-
emitOriginatorKeyInfo
public boolean emitOriginatorKeyInfo()Get the option to emit the OriginatorKeyInfo element within the AgreementMethod element.- Returns:
- the option value
-
setEmitOriginatorKeyInfo
public void setEmitOriginatorKeyInfo(boolean newValue) Set the option to emit the OriginatorKeyInfo element within the AgreementMethod element.- Parameters:
newValue- the new option value
-
emitRecipientKeyInfo
public boolean emitRecipientKeyInfo()Get the option to emit the RecipientKeyInfo element within the AgreementMethod element.- Returns:
- the option value
-
setEmitRecipientKeyInfo
public void setEmitRecipientKeyInfo(boolean newValue) Set the option to emit the RecipientKeyInfo element within the AgreementMethod element.- Parameters:
newValue- the new option value
-
getOriginatorKeyInfoGeneratorManager
Get theKeyInfoGeneratorManagerinstance to use to emitOriginatorKeyInfo.- Returns:
- the manager
-
setOriginatorKeyInfoGeneratorManager
Set theKeyInfoGeneratorManagerinstance to use to emitOriginatorKeyInfo.- Parameters:
manager- the manager instance
-
getRecipientKeyInfoGeneratorManager
Get theKeyInfoGeneratorManagerinstance to use to emitRecipientKeyInfo.- Returns:
- the manager
-
setRecipientKeyInfoGeneratorManager
Set theKeyInfoGeneratorManagerinstance to use to emitRecipientKeyInfo.- Parameters:
manager- the manager instance
-
getOptions
Get the options of this instance. Used by subclass constructors to get the options built by the top-level class constructor withBasicKeyInfoGeneratorFactory.newOptions().- Overrides:
getOptionsin classBasicKeyInfoGeneratorFactory- Returns:
- the options instance
-
newOptions
Get a new instance to hold options. Used by the top-level superclass constructor. Subclasses MUST override to produce an instance of the appropriate subclass ofBasicKeyInfoGeneratorFactory.BasicOptions.- Overrides:
newOptionsin classBasicKeyInfoGeneratorFactory- Returns:
- a new instance of factory/generator options
-