|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nimbusds.openid.connect.sdk.ClaimsRequest
public abstract class ClaimsRequest
Base abstract class for resolved ID Token and UserInfo claim requests.
Used to return the following resolved claims request information:
The required claims
that the
authorisation server must provide with the response.
The requested essential
claims
that are required for providing the service
requested by the end-user.
The requested voluntary
claims
that are used to provide non-essential tasks offered
to the end-user.
The underlying resolved claims request as a JSON object can be retrieved
with the getRequestedClaimsObject()
method.
Related specifications:
Field Summary | |
---|---|
protected net.minidev.json.JSONObject |
requestedClaims
Claims requested by the client that the authorisation server may choose to provide with the response according to policy and end-user consent. |
protected Set<String> |
requiredClaims
Claims that the authorisation server must provide with the response. |
Constructor Summary | |
---|---|
protected |
ClaimsRequest()
Creates a new claims request. |
Method Summary | |
---|---|
Set<String> |
getClaimNames()
Gets all claims requested by the client (essential and voluntary). |
net.minidev.json.JSONObject |
getRequestedClaimsObject()
Gets the resolved JSON object representing the claims requested by the client. |
Set<String> |
getRequestedEssentialClaims()
Gets those claims requested by the client that are marked as essential. |
Set<String> |
getRequestedVoluntaryClaims()
Gets those claims requested by the client that are marked as voluntary. |
Set<String> |
getRequiredClaims()
Gets the required claims that the authorisation server must provide with the response. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Set<String> requiredClaims
protected net.minidev.json.JSONObject requestedClaims
Constructor Detail |
---|
protected ClaimsRequest()
requiredClaims
field is
set to a new empty set. The requestedClaims
field is set to
a new empty JSON object.
Method Detail |
---|
public Set<String> getRequiredClaims()
public net.minidev.json.JSONObject getRequestedClaimsObject()
Example resolved UserInfo claims request:
{ "name" : { "essential" : true }, "nickname" : null, "email" : { "essential" : true }, "email_verified" : { "essential" : true }, "picture" : null }
Example resolved ID Token claims request:
{ "auth_time" : { "essential": true }, "acr" : { "values":["2"] } }
public Set<String> getRequestedEssentialClaims()
public Set<String> getRequestedVoluntaryClaims()
public Set<String> getClaimNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |