Class PushedAuthorizationRequest

  • All Implemented Interfaces:
    Message, Request

    @Immutable
    public class PushedAuthorizationRequest
    extends AbstractOptionallyAuthenticatedRequest
    Pushed authorisation request.

    Example HTTP request:

     POST /as/par HTTP/1.1
     Host: as.example.com
     Content-Type: application/x-www-form-urlencoded
     Authorization: Basic czZCaGRSa3F0Mzo3RmpmcDBaQnIxS3REUmJuZlZkbUl3
    
     response_type=code
     &client_id=s6BhdRkqt3&state=af0ifjsldkj
     &redirect_uri=https%3A%2F%2Fclient.example.org%2Fcb
     

    Related specifications:

    • OAuth 2.0 Pushed Authorization Requests (draft-lodderstedt-oauth-par-00)
    • Constructor Detail

      • PushedAuthorizationRequest

        public PushedAuthorizationRequest​(URI uri,
                                          ClientAuthentication clientAuth,
                                          AuthorizationRequest authzRequest)
        Creates a new authenticated pushed authorisation request for a confidential client.
        Parameters:
        uri - The URI of the token endpoint. May be null if the toHTTPRequest() method will not be used.
        clientAuth - The client authentication. Must not be null.
        authzRequest - The authorisation request. Must not be null.
      • PushedAuthorizationRequest

        public PushedAuthorizationRequest​(URI uri,
                                          AuthorizationRequest authzRequest)
        Creates a new pushed authorisation request for a public client.
        Parameters:
        uri - The URI of the token endpoint. May be null if the toHTTPRequest() method will not be used.
        authzRequest - The authorisation request. Must not be null.