Class OAuth20InvalidGrantTypeException

  • All Implemented Interfaces:
    java.io.Serializable

    public class OAuth20InvalidGrantTypeException
    extends OAuth20Exception
    Represents an invalid or not supported grant type in an OAuth request.
    See Also:
    Serialized Form
    • Constructor Detail

      • OAuth20InvalidGrantTypeException

        public OAuth20InvalidGrantTypeException​(java.lang.String grantType)
        Creates a OAuth20InvalidGrantTypeException.
        Parameters:
        grantType - A grant type in request.
      • OAuth20InvalidGrantTypeException

        public OAuth20InvalidGrantTypeException​(java.lang.String msgKey,
                                                java.lang.String grantType)
    • Method Detail

      • formatSelf

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

        public java.lang.String getGrantType()
        Returns:
        the requested grant type.