Class AppAuthManager

    • Constructor Detail

      • AppAuthManager

        public AppAuthManager()
    • Method Detail

      • extractAuthorizationHeaderTokenOrReturnNull

        public static String extractAuthorizationHeaderTokenOrReturnNull​(javax.ws.rs.core.HttpHeaders headers)
        Extracts the token string from the Authorization Bearer Header.
        Parameters:
        headers -
        Returns:
        the token string or null if the Authorization header is not of type Bearer, or the token string is missing.
      • extractAuthorizationHeaderToken

        public static String extractAuthorizationHeaderToken​(javax.ws.rs.core.HttpHeaders headers)
        Extracts the token string from the Authorization Bearer Header.
        Parameters:
        headers -
        Returns:
        the token string or null of the Authorization header is missing
        Throws:
        javax.ws.rs.NotAuthorizedException - if the Authorization header is not of type Bearer, or the token string is missing.