Class OAuth20MismatchedRedirectUriException

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Constructor Detail

      • OAuth20MismatchedRedirectUriException

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

        public OAuth20MismatchedRedirectUriException​(java.lang.String msgKey,
                                                     java.lang.String receivedRedirectURI,
                                                     java.lang.String issuedToRedirectURI)
    • Method Detail

      • formatSelf

        public java.lang.String formatSelf​(java.util.Locale locale,
                                           java.lang.String encoding)
        Overrides:
        formatSelf in class OAuth20Exception
      • getReceivedRedirectURI

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

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