@Generated(value="OracleSDKGenerator", comments="API Version: v1") public final class AuthorizationRequest extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
AuthorizationRequest.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the AuthorizationRequest.Builder
, which maintain a
set of all explicitly set fields called AuthorizationRequest.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).Modifier and Type | Class and Description |
---|---|
static class |
AuthorizationRequest.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
AuthorizationRequest(String requestId,
Principal userPrincipal,
Principal svcPrincipal,
String serviceName,
List<PermissionContext> context,
String policyHash)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static AuthorizationRequest.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
List<PermissionContext> |
getContext()
A set of permission contexts
|
String |
getPolicyHash()
The hash of cached policy on the caller service side.
|
String |
getRequestId()
The id of this request.
|
String |
getServiceName()
The name of the service that is making this authorization request
|
Principal |
getSvcPrincipal()
The service principal object for service to service calls.
|
Principal |
getUserPrincipal()
The user principal object
|
int |
hashCode() |
AuthorizationRequest.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"requestId","userPrincipal","svcPrincipal","serviceName","context","policyHash"}) public AuthorizationRequest(String requestId, Principal userPrincipal, Principal svcPrincipal, String serviceName, List<PermissionContext> context, String policyHash)
public static AuthorizationRequest.Builder builder()
Create a new builder.
public AuthorizationRequest.Builder toBuilder()
public String getRequestId()
The id of this request. It is a GUID.
public Principal getUserPrincipal()
The user principal object
public Principal getSvcPrincipal()
The service principal object for service to service calls.
public String getServiceName()
The name of the service that is making this authorization request
public List<PermissionContext> getContext()
A set of permission contexts
public String getPolicyHash()
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.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.