Class OAuth2AuthorizationRequest

    • Method Detail

      • getAuthorizationUri

        public java.lang.String getAuthorizationUri()
        Returns the uri for the authorization endpoint.
        Returns:
        the uri for the authorization endpoint
      • getClientId

        public java.lang.String getClientId()
        Returns the client identifier.
        Returns:
        the client identifier
      • getRedirectUri

        public java.lang.String getRedirectUri()
        Returns the uri for the redirection endpoint.
        Returns:
        the uri for the redirection endpoint
      • getScopes

        public java.util.Set<java.lang.String> getScopes()
        Returns the scope(s).
        Returns:
        the scope(s), or an empty Set if not available
      • getState

        public java.lang.String getState()
        Returns the state.
        Returns:
        the state
      • getAdditionalParameters

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalParameters()
        Returns the additional parameter(s) used in the request.
        Returns:
        a Map of the additional parameter(s), or an empty Map if not available
      • getAttributes

        public java.util.Map<java.lang.String,​java.lang.Object> getAttributes()
        Returns the attribute(s) associated to the request.
        Returns:
        a Map of the attribute(s), or an empty Map if not available
        Since:
        5.2
      • getAttribute

        public <T> T getAttribute​(java.lang.String name)
        Returns the value of an attribute associated to the request.
        Type Parameters:
        T - the type of the attribute
        Parameters:
        name - the name of the attribute
        Returns:
        the value of the attribute associated to the request, or null if not available
        Since:
        5.2
      • getAuthorizationRequestUri

        public java.lang.String getAuthorizationRequestUri()
        Returns the URI string representation of the OAuth 2.0 Authorization Request.

        NOTE: The URI string is encoded in the application/x-www-form-urlencoded MIME format.

        Returns:
        the URI string representation of the OAuth 2.0 Authorization Request
        Since:
        5.1