Class OAuth20InvalidScopeException
- 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.OAuth20InvalidScopeException
 
 
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class OAuth20InvalidScopeException extends OAuth20Exception Represents an invalid request scope exception in an OAuth request.- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class com.ibm.oauth.core.api.error.oauth20.OAuth20ExceptionACCESS_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 SummaryConstructors Constructor Description OAuth20InvalidScopeException(java.lang.String[] requestedScope, java.lang.String[] approvedScope)Creates a OAuth20InvalidScopeException.OAuth20InvalidScopeException(java.lang.String msgKey, java.lang.String requestType)OAuth20InvalidScopeException(java.lang.String msgKey, java.lang.String[] requestedScope, java.lang.String[] approvedScope)OAuth20InvalidScopeException(java.lang.String msgKey, java.lang.String[] requestedScope, java.lang.String[] approvedScope, java.lang.String clientId)OAuth20InvalidScopeException(java.lang.String msgKey, java.lang.String requestType, java.lang.String clientId)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringformatSelf(java.util.Locale locale, java.lang.String encoding)java.lang.String[]getApprovedScope()java.lang.String[]getRequestedScope()- 
Methods inherited from class com.ibm.oauth.core.api.error.oauth20.OAuth20ExceptiongetError
 
- 
 
- 
- 
- 
Constructor Detail- 
OAuth20InvalidScopeExceptionpublic OAuth20InvalidScopeException(java.lang.String[] requestedScope, java.lang.String[] approvedScope)Creates a OAuth20InvalidScopeException.- Parameters:
- requestedScope- An array of requested scopes in an OAuth request.
- approvedScope- An array of authorized scopes for an OAuth request.
 
 - 
OAuth20InvalidScopeExceptionpublic OAuth20InvalidScopeException(java.lang.String msgKey, java.lang.String[] requestedScope, java.lang.String[] approvedScope)
 - 
OAuth20InvalidScopeExceptionpublic OAuth20InvalidScopeException(java.lang.String msgKey, java.lang.String[] requestedScope, java.lang.String[] approvedScope, java.lang.String clientId)
 - 
OAuth20InvalidScopeExceptionpublic OAuth20InvalidScopeException(java.lang.String msgKey, java.lang.String requestType)- Parameters:
- msgKey-
- requestType-
 
 - 
OAuth20InvalidScopeExceptionpublic OAuth20InvalidScopeException(java.lang.String msgKey, java.lang.String requestType, java.lang.String clientId)- Parameters:
- msgKey-
- requestType-
- clientId-
 
 
- 
 - 
Method Detail- 
formatSelfpublic java.lang.String formatSelf(java.util.Locale locale, java.lang.String encoding)- Overrides:
- formatSelfin class- OAuth20Exception
 
 - 
getRequestedScopepublic java.lang.String[] getRequestedScope() - Returns:
- an array of requested scopes.
 
 - 
getApprovedScopepublic java.lang.String[] getApprovedScope() - Returns:
- an array of approved scopes.
 
 
- 
 
-