Class OAuthError
java.lang.Object
org.apache.cxf.rs.security.oauth2.common.OAuthError
Captures OAuth2 error properties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetError()Gets the errorGets the error descriptionGets the optional link to the page describing the error in detailgetState()Gets the client state tokenvoidSets the error such as "invalid_grant", etcvoidsetErrorDescription(String errorDescription) Sets the error descriptionvoidsetErrorUri(String errorUri) Sets the optional link to the page describing the error in detailvoidSets the client state token which needs to be returned to the client alongside the error information if it was provided during the client requesttoString()
-
Constructor Details
-
OAuthError
public OAuthError() -
OAuthError
-
OAuthError
-
-
Method Details
-
setError
Sets the error such as "invalid_grant", etc- Parameters:
error- the error
-
getError
Gets the error- Returns:
- error
-
setErrorDescription
Sets the error description- Parameters:
errorDescription- error description
-
getErrorDescription
Gets the error description- Returns:
- error description
-
setErrorUri
Sets the optional link to the page describing the error in detail- Parameters:
errorUri- error page URI
-
getErrorUri
Gets the optional link to the page describing the error in detail -
setState
Sets the client state token which needs to be returned to the client alongside the error information if it was provided during the client request- Parameters:
state- the client state token
-
getState
Gets the client state token- Returns:
- the state
-
toString
-