Class OAuth20MismatchedRedirectUriException

All Implemented Interfaces:
Serializable

public class OAuth20MismatchedRedirectUriException extends OAuth20Exception
Represents an error that occurs when the redirect URI passed in the request to the token endpoint does not match the redirect URI associated with the grant.
See Also:
  • Constructor Details

    • OAuth20MismatchedRedirectUriException

      public OAuth20MismatchedRedirectUriException(String receivedRedirectURI, String issuedToRedirectURI)
      Create OAuth20MismatchedRedirectUriException
      Parameters:
      receivedRedirectURI - a redirect URI passed in the request.
      issuedToRedirectURI - a redirect URI associated with the grant.
    • OAuth20MismatchedRedirectUriException

      public OAuth20MismatchedRedirectUriException(String msgKey, String receivedRedirectURI, String issuedToRedirectURI)
  • Method Details

    • formatSelf

      public String formatSelf(Locale locale, String encoding)
      Overrides:
      formatSelf in class OAuth20Exception
    • getReceivedRedirectURI

      public String getReceivedRedirectURI()
      Returns:
      the received redirect URI in a request.
    • getIssuedToRedirectURI

      public String getIssuedToRedirectURI()
      Returns:
      the redirect URI associated with the grant.