Package org.opensaml.xmlsec.agreement
Class KeyAgreementProcessorRegistry
java.lang.Object
org.opensaml.xmlsec.agreement.KeyAgreementProcessorRegistry
A component which provides access to registered instances of
KeyAgreementProcessor.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Map<String,KeyAgreementProcessor> The registered processors. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear all registered processors.voidderegister(String algorithm) Deregister a processor.getProcessor(String algorithm) Get the processor registered for the specified algorithm.Get the set of all registered algorithms.voidregister(KeyAgreementProcessor processor) Register a processor.
-
Field Details
-
processors
The registered processors.
-
-
Constructor Details
-
KeyAgreementProcessorRegistry
public KeyAgreementProcessorRegistry()Constructor.
-
-
Method Details
-
register
Register a processor.Any existing processor registered for the given algorithm will be overwritten.
- Parameters:
processor- the processor to register
-
deregister
Deregister a processor.- Parameters:
algorithm- the algorithm of the processor to deregister
-
clear
public void clear()Clear all registered processors. -
getRegisteredAlgorithms
Get the set of all registered algorithms.- Returns:
- the set of registered algorithms
-
getProcessor
Get the processor registered for the specified algorithm.- Parameters:
algorithm- the processor algorithm- Returns:
- the processor registered for that algorithm
-