Class JwtAuthenticationServiceImpl

    • Constructor Detail

      • JwtAuthenticationServiceImpl

        public JwtAuthenticationServiceImpl()
    • Method Detail

      • getToken

        public JwtToken getToken​(@Nullable @QueryParameter("expiryTimeInMins")
                                 Integer expiryTimeInMins,
                                 @Nullable @QueryParameter("maxExpiryTimeInMins")
                                 Integer maxExpiryTimeInMins)
        Description copied from class: JwtAuthenticationService
        Gives JWT token for authenticated user. See https://tools.ietf.org/html/rfc7519.
        Specified by:
        getToken in class JwtAuthenticationService
        Parameters:
        expiryTimeInMins - token expiry time. Default 30 min.
        maxExpiryTimeInMins - max token expiry time. Default expiry time is 8 hours (480 mins)
        Returns:
        JWT if there is authenticated user or if anonymous user has at least READ permission, otherwise 401 error code is returned
      • getIconFileName

        public String getIconFileName()
      • getDisplayName

        public String getDisplayName()
      • getJwtStore

        public static JwtAuthenticationStore getJwtStore​(org.springframework.security.core.Authentication authentication)