org.springframework.security.oauth2.common.exceptions
类 InsufficientScopeException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 java.lang.RuntimeException
              继承者 org.springframework.security.oauth2.common.exceptions.OAuth2Exception
                  继承者 org.springframework.security.oauth2.common.exceptions.InsufficientScopeException
所有已实现的接口:
Serializable

public class InsufficientScopeException
extends OAuth2Exception

Exception representing insufficient scope in a token when a request is handled by a Resource Server. It is akin to an AccessDeniedException and should result in a 403 (FORBIDDEN) HTTP status.

作者:
Dave Syer
另请参见:
序列化表格

字段摘要
 
从类 org.springframework.security.oauth2.common.exceptions.OAuth2Exception 继承的字段
ACCESS_DENIED, DESCRIPTION, ERROR, INVALID_CLIENT, INVALID_GRANT, INVALID_REQUEST, INVALID_SCOPE, INVALID_TOKEN, REDIRECT_URI_MISMATCH, UNAUTHORIZED_CLIENT, UNSUPPORTED_GRANT_TYPE, UNSUPPORTED_RESPONSE_TYPE, URI
 
构造方法摘要
InsufficientScopeException(String msg)
           
InsufficientScopeException(String msg, Set<String> validScope)
           
 
方法摘要
 int getHttpErrorCode()
          The HTTP error code associated with this error.
 String getOAuth2ErrorCode()
          The OAuth2 error code.
 
从类 org.springframework.security.oauth2.common.exceptions.OAuth2Exception 继承的方法
addAdditionalInformation, create, getAdditionalInformation, getSummary, toString, valueOf
 
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

InsufficientScopeException

public InsufficientScopeException(String msg,
                                  Set<String> validScope)

InsufficientScopeException

public InsufficientScopeException(String msg)
方法详细信息

getHttpErrorCode

public int getHttpErrorCode()
从类 OAuth2Exception 复制的描述
The HTTP error code associated with this error.

覆盖:
OAuth2Exception 中的 getHttpErrorCode
返回:
The HTTP error code associated with this error.

getOAuth2ErrorCode

public String getOAuth2ErrorCode()
从类 OAuth2Exception 复制的描述
The OAuth2 error code.

覆盖:
OAuth2Exception 中的 getOAuth2ErrorCode
返回:
The OAuth2 error code.


Copyright © 2013. All rights reserved.