Class JwtCompile


  • public class JwtCompile
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      JwtCompile()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String createJWT​(java.lang.String id, java.lang.String subject)
      Create a JWT
      • Methods inherited from class java.lang.Object

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

      • JwtCompile

        public JwtCompile()
    • Method Detail

      • createJWT

        public static java.lang.String createJWT​(java.lang.String id,
                                                 java.lang.String subject)
                                          throws java.lang.IllegalArgumentException
        Create a JWT
        Parameters:
        id - unique id to be encoded in JWT
        subject - jwt subject
        Returns:
        JWT
        Throws:
        java.lang.IllegalArgumentException - if id or subject are empty