Class AlgorithmFactory<A extends Algorithm>

java.lang.Object
org.jose4j.jwa.AlgorithmFactory<A>

public class AlgorithmFactory<A extends Algorithm> extends Object
  • Field Details

    • log

      private final org.slf4j.Logger log
    • parameterName

      private String parameterName
    • algorithms

      private final Map<String,A extends Algorithm> algorithms
  • Constructor Details

    • AlgorithmFactory

      public AlgorithmFactory(String parameterName, Class<A> type)
  • Method Details

    • getAlgorithm

      public A getAlgorithm(String algorithmIdentifier) throws InvalidAlgorithmException
      Throws:
      InvalidAlgorithmException
    • isAvailable

      public boolean isAvailable(String algorithmIdentifier)
    • getSupportedAlgorithms

      public Set<String> getSupportedAlgorithms()
    • registerAlgorithm

      public void registerAlgorithm(A algorithm)
    • isAvailable

      private boolean isAvailable(A algorithm)
    • unregisterAlgorithm

      public void unregisterAlgorithm(String algorithmIdentifier)