Class OAuth2AuthorizationResponse


  • public final class OAuth2AuthorizationResponse
    extends java.lang.Object
    A representation of an OAuth 2.0 Authorization Response for the authorization code grant type.
    Since:
    5.0
    See Also:
    OAuth2Error, Section 4.1.2 Authorization Response
    • Method Detail

      • getRedirectUri

        public java.lang.String getRedirectUri()
        Returns the uri where the response was redirected to.
        Returns:
        the uri where the response was redirected to
      • getState

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

        public java.lang.String getCode()
        Returns the authorization code.
        Returns:
        the authorization code
      • getError

        public OAuth2Error getError()
        Returns the OAuth 2.0 Error if the Authorization Request failed, otherwise null.
        Returns:
        the OAuth2Error if the Authorization Request failed, otherwise null
      • statusOk

        public boolean statusOk()
        Returns true if the Authorization Request succeeded, otherwise false.
        Returns:
        true if the Authorization Request succeeded, otherwise false
      • statusError

        public boolean statusError()
        Returns true if the Authorization Request failed, otherwise false.
        Returns:
        true if the Authorization Request failed, otherwise false