Class JWTHelper


  • public class JWTHelper
    extends Object
    Constructs a JWT token for use with Symphony RSA authentication.
    Author:
    Rob Moffat
    • Field Detail

      • JWT_HEADER

        public static String JWT_HEADER
      • JWT_CLAIMS

        public static String JWT_CLAIMS
    • Constructor Detail

      • JWTHelper

        public JWTHelper()
    • Method Detail

      • createSignedJwt

        public static String createSignedJwt​(String user,
                                             long expiration,
                                             PrivateKey privateKey)
                                      throws Exception
        Parameters:
        user - Common Name of Symphony User
        expiration - Seconds from epoch (1.1.1970) to expiry
        privateKey - your RSA private key, matching the public key on the pod.
        Throws:
        Exception