Interface AccessTokenResolver

    • Method Detail

      • resolve

        default Promise<AccessTokenInfo,​AccessTokenException> resolve​(Context context,
                                                                            Supplier<Request,​IOException> request,
                                                                            String token)
        Resolves a given access token against an authorization server.
        Parameters:
        context - Context chain used to keep a relationship between requests (tracking)
        request - a supplier for the HTTP request the access token was presented on. The request should be defensively copied by the caller in case the resolver needs to consume the entity.
        token - token identifier to be resolved
        Returns:
        a promise completed either with a valid AccessTokenInfo (well-formed, known by the server), or by an exception