public static final class PolicyRequest.Builder extends Object
PolicyRequest
.Modifier and Type | Method and Description |
---|---|
PolicyRequest |
build()
Builds and return a
PolicyRequest . |
PolicyRequest.Builder |
claims(Map<String,Object> claims)
Sets the representation of JWT claims for the subject.
|
PolicyRequest.EnvironmentBuilder |
environment()
Sets a list of strings to forward to OpenAM with the request for a policy decision, that represent the
environment (or context) of the request.
|
PolicyRequest.Builder |
environment(Map<String,Set<String>> environment)
Sets a list of strings to forward to OpenAM with the request for a policy decision, that represent the
environment (or context) of the request.
|
PolicyRequest.Builder |
jwt(String jwt)
Sets the JWT string for the subject making the request to the protected resource..
|
PolicyRequest.Builder |
resource(String resourceUri)
Sets the requested resource URI.
|
PolicyRequest.Builder |
ssoToken(String ssoToken)
Sets the OpenAM SSO token ID string for the subject making the request to the protected resource.
|
public PolicyRequest.Builder resource(String resourceUri)
resourceUri
- The requested URI.public PolicyRequest build()
PolicyRequest
.PolicyRequest
.public PolicyRequest.Builder jwt(String jwt)
jwt
- The JWT string for the subject making the request to the protected resource.public PolicyRequest.Builder claims(Map<String,Object> claims)
claims
- The representation of JWT claims for the subject.public PolicyRequest.Builder ssoToken(String ssoToken)
ssoToken
- The OpenAM SSO token ID string for the subject making the request to the protected resource.public PolicyRequest.EnvironmentBuilder environment()
EnvironmentBuilder
.public PolicyRequest.Builder environment(Map<String,Set<String>> environment)
environment
- The list of strings to forward to OpenAM with the request for a policy decision, that represent the
environment (or context) of the request.Copyright 2011-2017 ForgeRock AS.