Class JsonWebTokenSigner


  • public class JsonWebTokenSigner
    extends java.lang.Object
    Since:
    6.6.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.Set<java.lang.String> ALGORITHM_ALL_EXCEPT_NONE
      Allow all algorithms except none.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] sign​(byte[] value)
      Sign byte array.
      java.lang.String sign​(org.jose4j.jwt.JwtClaims claims)
      Sign claims.
      • Methods inherited from class java.lang.Object

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

      • ALGORITHM_ALL_EXCEPT_NONE

        public static final java.util.Set<java.lang.String> ALGORITHM_ALL_EXCEPT_NONE
        Allow all algorithms except none.
    • Constructor Detail

      • JsonWebTokenSigner

        public JsonWebTokenSigner()
    • Method Detail

      • sign

        public byte[] sign​(byte[] value)
        Sign byte array.
        Parameters:
        value - the value
        Returns:
        the byte []
      • sign

        public java.lang.String sign​(org.jose4j.jwt.JwtClaims claims)
        Sign claims.
        Parameters:
        claims - the claims
        Returns:
        the string