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 type (interface) of the specific type of credential handled by generators produced by this factory.Get the options of this instance.Get theKeyInfoGeneratorManagerinstance to use to emitOriginatorKeyInfo.Get theKeyInfoGeneratorManagerinstance to use to emitRecipientKeyInfo.booleanhandles(Credential credential) Check whether the generators produced by this factory can handle the specified credential.Get a new instance of the generator type produced by the factory.newInstance(Class<? extends KeyInfo> type) Get a new instance of the generator type produced by the factory, and which generatesKeyInfoinstances of the specified type, for exampleOriginatorKeyInfoorRecipientKeyInfo.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
Get the type (interface) of the specific type of credential handled by generators produced by this factory. Primarily used as an index by manager implementions such asKeyInfoGeneratorManager.- Specified by:
getCredentialTypein interfaceKeyInfoGeneratorFactory- Overrides:
getCredentialTypein classBasicKeyInfoGeneratorFactory- Returns:
- the specifc type of credential handled by the generators produced by this factory
-
handles
Check whether the generators produced by this factory can handle the specified credential.- Specified by:
handlesin interfaceKeyInfoGeneratorFactory- Overrides:
handlesin classBasicKeyInfoGeneratorFactory- Parameters:
credential- the credential to evaluate- Returns:
- true if the generators produced by this factory can handle the type of the specified credential, false otherwise
-
newInstance
Get a new instance of the generator type produced by the factory.- Specified by:
newInstancein interfaceKeyInfoGeneratorFactory- Overrides:
newInstancein classBasicKeyInfoGeneratorFactory- Returns:
- a new KeyInfoGenerator instance
-
newInstance
Get a new instance of the generator type produced by the factory, and which generatesKeyInfoinstances of the specified type, for exampleOriginatorKeyInfoorRecipientKeyInfo.- Specified by:
newInstancein interfaceKeyInfoGeneratorFactory- Overrides:
newInstancein classBasicKeyInfoGeneratorFactory- Parameters:
type- the type of element to produce. Null is interpreted as a standardKeyInfo.- Returns:
- a new KeyInfoGenerator instance
-
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
-