Class OAuth20InvalidResponseTypeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.ibm.oauth.core.api.error.OAuthException
-
- com.ibm.oauth.core.api.error.oauth20.OAuth20Exception
-
- com.ibm.oauth.core.api.error.oauth20.OAuth20InvalidResponseTypeException
-
- All Implemented Interfaces:
java.io.Serializable
public class OAuth20InvalidResponseTypeException extends OAuth20Exception
Represents an invalid response type exception in an OAuth request.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.ibm.oauth.core.api.error.oauth20.OAuth20Exception
ACCESS_DENIED, INSUFFICIENT_SCOPE, INVALID_CLIENT, INVALID_GRANT, INVALID_REQUEST, INVALID_SCOPE, INVALID_TOKEN, SERVER_ERROR, TEMPORARILY_UNAVAILABLE, UNAUTHORIZED_CLIENT, UNSUPPORED_GRANT_TPE, UNSUPPORTED_RESPONSE_TPE
-
-
Constructor Summary
Constructors Constructor Description OAuth20InvalidResponseTypeException(java.lang.String responseType)
Creates a OAuth20InvalidResponseTypeException.OAuth20InvalidResponseTypeException(java.lang.String msgKey, java.lang.String responseType)
OAuth20InvalidResponseTypeException(java.lang.String msgKey, java.lang.String responseType, java.lang.String firstResponseTypeOption, java.lang.String secondResponseTypeOption)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
formatSelf(java.util.Locale locale, java.lang.String encoding)
java.lang.String
getResponseType()
-
Methods inherited from class com.ibm.oauth.core.api.error.oauth20.OAuth20Exception
getError
-
Methods inherited from class com.ibm.oauth.core.api.error.OAuthException
getMsgKey, getObjects
-
-
-
-
Constructor Detail
-
OAuth20InvalidResponseTypeException
public OAuth20InvalidResponseTypeException(java.lang.String responseType)
Creates a OAuth20InvalidResponseTypeException.- Parameters:
responseType
- A response type in a request.
-
OAuth20InvalidResponseTypeException
public OAuth20InvalidResponseTypeException(java.lang.String msgKey, java.lang.String responseType)
-
OAuth20InvalidResponseTypeException
public OAuth20InvalidResponseTypeException(java.lang.String msgKey, java.lang.String responseType, java.lang.String firstResponseTypeOption, java.lang.String secondResponseTypeOption)
-
-
Method Detail
-
formatSelf
public java.lang.String formatSelf(java.util.Locale locale, java.lang.String encoding)
- Overrides:
formatSelf
in classOAuth20Exception
-
getResponseType
public java.lang.String getResponseType()
- Returns:
- response type.
-
-