Class BaseJWSProvider

    • Constructor Summary

      Constructors 
      Constructor Description
      BaseJWSProvider​(java.util.Set<JWSAlgorithm> algs)
      Creates a new base JWS provider.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      JCAContext getJCAContext()
      Returns the Java Cryptography Architecture (JCA) context.
      java.util.Set<JWSAlgorithm> supportedJWSAlgorithms()
      Returns the names of the supported algorithms by the JWS provider instance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BaseJWSProvider

        public BaseJWSProvider​(java.util.Set<JWSAlgorithm> algs)
        Creates a new base JWS provider.
        Parameters:
        algs - The supported algorithms by the JWS provider instance. Must not be null.
    • Method Detail

      • supportedJWSAlgorithms

        public java.util.Set<JWSAlgorithm> supportedJWSAlgorithms()
        Description copied from interface: JWSProvider
        Returns the names of the supported algorithms by the JWS provider instance. These correspond to the alg JWS header parameter.
        Specified by:
        supportedJWSAlgorithms in interface JWSProvider
        Returns:
        The supported JWS algorithms, empty set if none.
      • getJCAContext

        public JCAContext getJCAContext()
        Description copied from interface: JCAAware
        Returns the Java Cryptography Architecture (JCA) context. May be used to set a specific JCA security provider or secure random generator.
        Specified by:
        getJCAContext in interface JCAAware<JCAContext>
        Returns:
        The JCA context. Not null.