ClaimsRequest Class
- java.
lang. Object - com.
microsoft. aad. msal4j. ClaimsRequest
- com.
public class ClaimsRequest
Represents the claims request parameter as an object
Constructor Summary
Constructor | Description | |
---|---|---|
ClaimsRequest() |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Claims |
formatAsClaimsRequest(String claims)
Creates an instance of Claims |
java.lang.String |
formatAsJSONString()
Converts the Claims |
java.util.List<Requested |
getIdTokenRequestedClaims() |
protected void |
requestClaimInAccessToken(String claim, RequestedClaimAdditionalInfo requestedClaimAdditionalInfo)
Inserts a claim into the list of claims to be added to the "access_token" section of an OIDC claims request |
void |
requestClaimInIdToken(String claim, RequestedClaimAdditionalInfo requestedClaimAdditionalInfo)
Inserts a claim into the list of claims to be added to the "id_token" section of an OIDC claims request |
protected void |
requestClaimInUserInfo(String claim, RequestedClaimAdditionalInfo requestedClaimAdditionalInfo)
Inserts a claim into the list of claims to be added to the "userinfo" section of an OIDC claims request |
void | setIdTokenRequestedClaims(List<RequestedClaim> idTokenRequestedClaims) |
Methods inherited from java.lang.Object
Constructor Details
ClaimsRequest
public ClaimsRequest()
Method Details
formatAsClaimsRequest
public static ClaimsRequest formatAsClaimsRequest(String claims)
Creates an instance of ClaimsRequest from a JSON-formatted String which follows the specification for the OIDC claims request parameter
Parameters:
Returns:
formatAsJSONString
public String formatAsJSONString()
Converts the ClaimsRequest object to a JSON-formatted String which follows the specification for the OIDC claims request parameter
Returns:
getIdTokenRequestedClaims
public List
requestClaimInAccessToken
protected void requestClaimInAccessToken(String claim, RequestedClaimAdditionalInfo requestedClaimAdditionalInfo)
Inserts a claim into the list of claims to be added to the "access_token" section of an OIDC claims request
Parameters:
requestClaimInIdToken
public void requestClaimInIdToken(String claim, RequestedClaimAdditionalInfo requestedClaimAdditionalInfo)
Inserts a claim into the list of claims to be added to the "id_token" section of an OIDC claims request
Parameters:
requestClaimInUserInfo
protected void requestClaimInUserInfo(String claim, RequestedClaimAdditionalInfo requestedClaimAdditionalInfo)
Inserts a claim into the list of claims to be added to the "userinfo" section of an OIDC claims request
Parameters:
setIdTokenRequestedClaims
public void setIdTokenRequestedClaims(List
Parameters: