Class KeyAgreementProcessorRegistry

java.lang.Object
org.opensaml.xmlsec.agreement.KeyAgreementProcessorRegistry

public class KeyAgreementProcessorRegistry extends Object
A component which provides access to registered instances of KeyAgreementProcessor.
  • Field Details

  • Constructor Details

    • KeyAgreementProcessorRegistry

      public KeyAgreementProcessorRegistry()
      Constructor.
  • Method Details

    • 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 @Unmodifiable @NotLive 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