Package org.nuxeo.ecm.platform.oauth2
Class OAuth2Error
- java.lang.Object
 - 
- org.nuxeo.ecm.platform.oauth2.OAuth2Error
 
 
- 
public class OAuth2Error extends Object
- Since:
 - 9.2
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringACCESS_DENIEDprotected Stringdescriptionprotected Stringidstatic StringINVALID_CLIENTstatic StringINVALID_GRANTstatic StringINVALID_REQUESTstatic StringINVALID_SCOPEstatic StringSERVER_ERRORstatic StringTEMPORARILY_UNAVAILABLEstatic StringUNAUTHORIZED_CLIENTstatic StringUNSUPPORTED_GRANT_TYPEstatic StringUNSUPPORTED_RESPONSE_TYPE 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedOAuth2Error(String id, String description) 
- 
Method Summary
 
 - 
 
- 
- 
Field Detail
- 
INVALID_REQUEST
public static final String INVALID_REQUEST
- See Also:
 - Constant Field Values
 
 
- 
UNAUTHORIZED_CLIENT
public static final String UNAUTHORIZED_CLIENT
- See Also:
 - Constant Field Values
 
 
- 
ACCESS_DENIED
public static final String ACCESS_DENIED
- See Also:
 - Constant Field Values
 
 
- 
UNSUPPORTED_RESPONSE_TYPE
public static final String UNSUPPORTED_RESPONSE_TYPE
- See Also:
 - Constant Field Values
 
 
- 
INVALID_SCOPE
public static final String INVALID_SCOPE
- See Also:
 - Constant Field Values
 
 
- 
SERVER_ERROR
public static final String SERVER_ERROR
- See Also:
 - Constant Field Values
 
 
- 
TEMPORARILY_UNAVAILABLE
public static final String TEMPORARILY_UNAVAILABLE
- See Also:
 - Constant Field Values
 
 
- 
INVALID_CLIENT
public static final String INVALID_CLIENT
- See Also:
 - Constant Field Values
 
 
- 
INVALID_GRANT
public static final String INVALID_GRANT
- See Also:
 - Constant Field Values
 
 
- 
UNSUPPORTED_GRANT_TYPE
public static final String UNSUPPORTED_GRANT_TYPE
- See Also:
 - Constant Field Values
 
 
- 
description
protected final String description
 
 - 
 
- 
Constructor Detail
- 
OAuth2Error
protected OAuth2Error(String id, String description)
 
 - 
 
- 
Method Detail
- 
getDescription
public String getDescription()
 
- 
invalidRequest
public static OAuth2Error invalidRequest(String description)
 
- 
invalidRequest
public static OAuth2Error invalidRequest()
 
- 
unauthorizedClient
public static OAuth2Error unauthorizedClient(String description)
 
- 
unauthorizedClient
public static OAuth2Error unauthorizedClient()
 
- 
accessDenied
public static OAuth2Error accessDenied(String description)
 
- 
accessDenied
public static OAuth2Error accessDenied()
 
- 
unsupportedResponseType
public static OAuth2Error unsupportedResponseType(String description)
 
- 
unsupportedResponseType
public static OAuth2Error unsupportedResponseType()
 
- 
invalidScope
public static OAuth2Error invalidScope(String description)
 
- 
invalidScope
public static OAuth2Error invalidScope()
 
- 
serverError
public static OAuth2Error serverError(String description)
 
- 
serverError
public static OAuth2Error serverError()
 
- 
temporarilyUnavailable
public static OAuth2Error temporarilyUnavailable(String description)
 
- 
temporarilyUnavailable
public static OAuth2Error temporarilyUnavailable()
 
- 
invalidClient
public static OAuth2Error invalidClient(String description)
 
- 
invalidClient
public static OAuth2Error invalidClient()
 
- 
invalidGrant
public static OAuth2Error invalidGrant(String description)
 
- 
invalidGrant
public static OAuth2Error invalidGrant()
 
- 
unsupportedGrantType
public static OAuth2Error unsupportedGrantType(String description)
 
- 
unsupportedGrantType
public static OAuth2Error unsupportedGrantType()
 
 - 
 
 -