Package org.keycloak.utils
Class OAuth2Error
- java.lang.Object
-
- org.keycloak.utils.OAuth2Error
-
public class OAuth2Error extends Object
- Author:
- Dmitry Telegin
-
-
Constructor Summary
Constructors Constructor Description OAuth2Error()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.WebApplicationException
build()
OAuth2Error
cors(Cors cors)
OAuth2Error
error(String error)
OAuth2Error
errorDescription(String errorDescription)
javax.ws.rs.WebApplicationException
insufficientScope(String errorDescription)
javax.ws.rs.WebApplicationException
invalidRequest(String errorDescription)
javax.ws.rs.WebApplicationException
invalidToken(String errorDescription)
OAuth2Error
json(boolean json)
OAuth2Error
realm(RealmModel realm)
OAuth2Error
status(javax.ws.rs.core.Response.Status status)
javax.ws.rs.WebApplicationException
unauthorized()
-
-
-
Method Detail
-
realm
public OAuth2Error realm(RealmModel realm)
-
error
public OAuth2Error error(String error)
-
errorDescription
public OAuth2Error errorDescription(String errorDescription)
-
cors
public OAuth2Error cors(Cors cors)
-
status
public OAuth2Error status(javax.ws.rs.core.Response.Status status)
-
json
public OAuth2Error json(boolean json)
-
build
public javax.ws.rs.WebApplicationException build()
-
insufficientScope
public javax.ws.rs.WebApplicationException insufficientScope(String errorDescription)
-
invalidToken
public javax.ws.rs.WebApplicationException invalidToken(String errorDescription)
-
invalidRequest
public javax.ws.rs.WebApplicationException invalidRequest(String errorDescription)
-
unauthorized
public javax.ws.rs.WebApplicationException unauthorized()
-
-