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 String
ACCESS_DENIED
protected String
description
protected String
id
static String
INVALID_CLIENT
static String
INVALID_GRANT
static String
INVALID_REQUEST
static String
INVALID_SCOPE
static String
SERVER_ERROR
protected int
statusCode
static String
TEMPORARILY_UNAVAILABLE
static String
UNAUTHORIZED_CLIENT
static String
UNSUPPORTED_GRANT_TYPE
static String
UNSUPPORTED_RESPONSE_TYPE
-
Constructor Summary
Constructors Modifier Constructor Description protected
OAuth2Error(String id, String description)
protected
OAuth2Error(String id, String description, int statusCode)
-
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
-
id
protected final String id
-
description
protected final String description
-
statusCode
protected final int statusCode
-
-
Method Detail
-
getId
public String getId()
-
getDescription
public String getDescription()
-
getStatusCode
public int getStatusCode()
- Since:
- 2021.23
-
invalidRequest
public static OAuth2Error invalidRequest(String description, int statusCode)
- Since:
- 2021.23
-
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()
-
from
public static OAuth2Error from(NuxeoException e)
- Since:
- 2021.23
-
-