Package io.github.belgif.rest.problem
Class MissingScopeProblem
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.belgif.rest.problem.api.Problem
io.github.belgif.rest.problem.api.ClientProblem
io.github.belgif.rest.problem.MissingScopeProblem
- All Implemented Interfaces:
FluentProblem<MissingScopeProblem>
,HttpResponseHeaders
,Serializable
public class MissingScopeProblem
extends ClientProblem
implements FluentProblem<MissingScopeProblem>, HttpResponseHeaders
HTTP 403: Missing Scope (https://www.belgif.be/specification/rest/api-guide/problems/missingScope.html)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final URI
The href URI.static final int
The status.static final String
The title.static final String
The problem type.static final URI
The problem type URI.Fields inherited from interface io.github.belgif.rest.problem.api.HttpResponseHeaders
RETRY_AFTER, WWW_AUTHENTICATE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRequiredScope
(String requiredScope) boolean
Return the HTTP response headers.int
hashCode()
void
setRequiredScopes
(String... requiredScopes) void
setRequiredScopes
(List<String> requiredScopes) Methods inherited from class io.github.belgif.rest.problem.api.Problem
getAdditionalProperties, getDetail, getHref, getInstance, getMessage, getStatus, getTitle, getType, setAdditionalProperty, setDetail, setHref, setInstance
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.github.belgif.rest.problem.api.FluentProblem
additionalProperty, detail, href, instance, setAdditionalProperty, setDetail, setHref, setInstance
-
Field Details
-
Constructor Details
-
Method Details
-
realm
-
getRequiredScopes
-
setRequiredScopes
-
setRequiredScopes
-
addRequiredScope
-
equals
-
hashCode
public int hashCode() -
getHttpResponseHeaders
Description copied from interface:HttpResponseHeaders
Return the HTTP response headers.- Specified by:
getHttpResponseHeaders
in interfaceHttpResponseHeaders
- Returns:
- the HTTP response headers
-