Package org.opensaml.xmlsec.agreement
Class KeyAgreementProcessorRegistry
- java.lang.Object
-
- org.opensaml.xmlsec.agreement.KeyAgreementProcessorRegistry
-
public class KeyAgreementProcessorRegistry extends Object
A component which provides access to registered instances ofKeyAgreementProcessor.
-
-
Field Summary
Fields Modifier and Type Field Description private Map<String,KeyAgreementProcessor>processorsThe registered processors.
-
Constructor Summary
Constructors Constructor Description KeyAgreementProcessorRegistry()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clear all registered processors.voidderegister(String algorithm)Deregister a processor.KeyAgreementProcessorgetProcessor(String algorithm)Get the processor registered for the specified algorithm.Set<String>getRegisteredAlgorithms()Get the set of all registered algorithms.voidregister(KeyAgreementProcessor processor)Register a processor.
-
-
-
Field Detail
-
processors
@Nonnull private Map<String,KeyAgreementProcessor> processors
The registered processors.
-
-
Method Detail
-
register
public void register(@Nonnull KeyAgreementProcessor processor)Register a processor.Any existing processor registered for the given algorithm will be overwritten.
- Parameters:
processor- the processor to register
-
deregister
public void deregister(@Nonnull String algorithm)Deregister a processor.- Parameters:
algorithm- the algorithm of the processor to deregister
-
clear
public void clear()
Clear all registered processors.
-
getRegisteredAlgorithms
@Nonnull public Set<String> getRegisteredAlgorithms()
Get the set of all registered algorithms.- Returns:
- the set of registered algorithms
-
getProcessor
@Nullable public KeyAgreementProcessor getProcessor(@Nonnull String algorithm)
Get the processor registered for the specified algorithm.- Parameters:
algorithm- the processor algorithm- Returns:
- the processor registered for that algorithm
-
-