org.springframework.security.oauth2.client.resource
类 OAuth2AccessDeniedException

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

public class OAuth2AccessDeniedException
extends OAuth2Exception

When access is denied we usually want a 403, but we want the same treatment as all teh other OAuth2Exception types, so this is not a Spring Security AccessDeniedException.

作者:
Ryan Heaton, 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
 
构造方法摘要
OAuth2AccessDeniedException()
           
OAuth2AccessDeniedException(OAuth2ProtectedResourceDetails resource)
           
OAuth2AccessDeniedException(String msg)
           
OAuth2AccessDeniedException(String msg, OAuth2ProtectedResourceDetails resource)
           
OAuth2AccessDeniedException(String msg, OAuth2ProtectedResourceDetails resource, Throwable t)
           
 
方法摘要
 int getHttpErrorCode()
          The HTTP error code associated with this error.
 String getOAuth2ErrorCode()
          The OAuth2 error code.
 OAuth2ProtectedResourceDetails getResource()
           
 void setResource(OAuth2ProtectedResourceDetails resource)
           
 
从类 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
 

构造方法详细信息

OAuth2AccessDeniedException

public OAuth2AccessDeniedException()

OAuth2AccessDeniedException

public OAuth2AccessDeniedException(String msg)

OAuth2AccessDeniedException

public OAuth2AccessDeniedException(OAuth2ProtectedResourceDetails resource)

OAuth2AccessDeniedException

public OAuth2AccessDeniedException(String msg,
                                   OAuth2ProtectedResourceDetails resource)

OAuth2AccessDeniedException

public OAuth2AccessDeniedException(String msg,
                                   OAuth2ProtectedResourceDetails resource,
                                   Throwable t)
方法详细信息

getResource

public OAuth2ProtectedResourceDetails getResource()

setResource

public void setResource(OAuth2ProtectedResourceDetails resource)

getOAuth2ErrorCode

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

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

getHttpErrorCode

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

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


Copyright © 2013. All rights reserved.