Class OpenAmAccessTokenResolver

  • All Implemented Interfaces:
    AccessTokenResolver

    @Deprecated
    public class OpenAmAccessTokenResolver
    extends Object
    implements AccessTokenResolver
    Deprecated.
    The “/oauth2/tokeninfo” endpoint was deprecated in AM 6.5. OpenAmAccessTokenResolver is deprecated and should not be used.
    An OpenAmAccessTokenResolver knows how to resolve a given token identifier against an OpenAm instance.

    Models an AccessTokenInfo as returned by the OpenAM tokeninfo endpoint.

         
         curl https://openam.example.com:8443/openam/oauth2/tokeninfo?access_token=70e5776c-b0fa-4c70-9962-defb0e9c3cd6
         
     
    Example of OpenAM returned Json value (for the previous request):
         
         {
             "scope": [
                 "email",
                 "profile"
             ],
             "grant_type": "password",
             "realm": "/",
             "token_type": "Bearer",
             "expires_in": 471,
             "access_token": "70e5776c-b0fa-4c70-9962-defb0e9c3cd6",
             "email": "",
             "profile": ""
         }
         
     
    See Also:
    as replacement.
    • Constructor Detail

      • OpenAmAccessTokenResolver

        public OpenAmAccessTokenResolver​(Handler client,
                                         Clock clock,
                                         String tokenInfoEndpoint)
        Deprecated.
        Creates a new OpenAmAccessTokenResolver configured to access the given /oauth2/tokeninfo OpenAm endpoint.
        Parameters:
        client - Http client handler used to perform the request
        clock - Clock used to compute the token expiration time
        tokenInfoEndpoint - full URL of the /oauth2/tokeninfo endpoint