public static class AuthorizationRequest.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AuthorizationRequest |
build() |
AuthorizationRequest.Builder |
context(List<PermissionContext> context)
A set of permission contexts
|
AuthorizationRequest.Builder |
copy(AuthorizationRequest model) |
AuthorizationRequest.Builder |
policyHash(String policyHash)
The hash of cached policy on the caller service side.
|
AuthorizationRequest.Builder |
requestId(String requestId)
The id of this request.
|
AuthorizationRequest.Builder |
serviceName(String serviceName)
The name of the service that is making this authorization request
|
AuthorizationRequest.Builder |
svcPrincipal(Principal svcPrincipal)
The service principal object for service to service calls.
|
AuthorizationRequest.Builder |
userPrincipal(Principal userPrincipal)
The user principal object
|
public AuthorizationRequest.Builder requestId(String requestId)
The id of this request. It is a GUID.
requestId
- the value to setpublic AuthorizationRequest.Builder userPrincipal(Principal userPrincipal)
The user principal object
userPrincipal
- the value to setpublic AuthorizationRequest.Builder svcPrincipal(Principal svcPrincipal)
The service principal object for service to service calls.
svcPrincipal
- the value to setpublic AuthorizationRequest.Builder serviceName(String serviceName)
The name of the service that is making this authorization request
serviceName
- the value to setpublic AuthorizationRequest.Builder context(List<PermissionContext> context)
A set of permission contexts
context
- the value to setpublic AuthorizationRequest.Builder policyHash(String policyHash)
The hash of cached policy on the caller service side. If this is different than what Identity has, it will send the most recent policy statements.
policyHash
- the value to setpublic AuthorizationRequest build()
public AuthorizationRequest.Builder copy(AuthorizationRequest model)
Copyright © 2016–2024. All rights reserved.