Class IsAuthorizedWithTokenRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.verifiedpermissions.model.VerifiedPermissionsRequest
-
- software.amazon.awssdk.services.verifiedpermissions.model.IsAuthorizedWithTokenRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<IsAuthorizedWithTokenRequest.Builder,IsAuthorizedWithTokenRequest>
@Generated("software.amazon.awssdk:codegen") public final class IsAuthorizedWithTokenRequest extends VerifiedPermissionsRequest implements ToCopyableBuilder<IsAuthorizedWithTokenRequest.Builder,IsAuthorizedWithTokenRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceIsAuthorizedWithTokenRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaccessToken()Specifies an access token for the principal to be authorized.ActionIdentifieraction()Specifies the requested action to be authorized.static IsAuthorizedWithTokenRequest.Builderbuilder()ContextDefinitioncontext()Specifies additional context that can be used to make more granular authorization decisions.EntitiesDefinitionentities()Specifies the list of resources and their associated attributes that Verified Permissions can examine when evaluating the policies.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringidentityToken()Specifies an identity token for the principal to be authorized.StringpolicyStoreId()Specifies the ID of the policy store.EntityIdentifierresource()Specifies the resource for which the authorization decision is made.List<SdkField<?>>sdkFields()static Class<? extends IsAuthorizedWithTokenRequest.Builder>serializableBuilderClass()IsAuthorizedWithTokenRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
policyStoreId
public final String policyStoreId()
Specifies the ID of the policy store. Policies in this policy store will be used to make an authorization decision for the input.
- Returns:
- Specifies the ID of the policy store. Policies in this policy store will be used to make an authorization decision for the input.
-
identityToken
public final String identityToken()
Specifies an identity token for the principal to be authorized. This token is provided to you by the identity provider (IdP) associated with the specified identity source. You must specify either an
AccessTokenor anIdentityToken, or both.- Returns:
- Specifies an identity token for the principal to be authorized. This token is provided to you by the
identity provider (IdP) associated with the specified identity source. You must specify either an
AccessTokenor anIdentityToken, or both.
-
accessToken
public final String accessToken()
Specifies an access token for the principal to be authorized. This token is provided to you by the identity provider (IdP) associated with the specified identity source. You must specify either an
AccessToken, or anIdentityToken, or both.- Returns:
- Specifies an access token for the principal to be authorized. This token is provided to you by the
identity provider (IdP) associated with the specified identity source. You must specify either an
AccessToken, or anIdentityToken, or both.
-
action
public final ActionIdentifier action()
Specifies the requested action to be authorized. Is the specified principal authorized to perform this action on the specified resource.
- Returns:
- Specifies the requested action to be authorized. Is the specified principal authorized to perform this action on the specified resource.
-
resource
public final EntityIdentifier resource()
Specifies the resource for which the authorization decision is made. For example, is the principal allowed to perform the action on the resource?
- Returns:
- Specifies the resource for which the authorization decision is made. For example, is the principal allowed to perform the action on the resource?
-
context
public final ContextDefinition context()
Specifies additional context that can be used to make more granular authorization decisions.
- Returns:
- Specifies additional context that can be used to make more granular authorization decisions.
-
entities
public final EntitiesDefinition entities()
Specifies the list of resources and their associated attributes that Verified Permissions can examine when evaluating the policies.
You can include only resource and action entities in this parameter; you can't include principals.
-
The
IsAuthorizedWithTokenoperation takes principal attributes from only theidentityTokenoraccessTokenpassed to the operation. -
For action entities, you can include only their
IdentifierandEntityType.
- Returns:
- Specifies the list of resources and their associated attributes that Verified Permissions can examine
when evaluating the policies.
You can include only resource and action entities in this parameter; you can't include principals.
-
The
IsAuthorizedWithTokenoperation takes principal attributes from only theidentityTokenoraccessTokenpassed to the operation. -
For action entities, you can include only their
IdentifierandEntityType.
-
-
-
toBuilder
public IsAuthorizedWithTokenRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<IsAuthorizedWithTokenRequest.Builder,IsAuthorizedWithTokenRequest>- Specified by:
toBuilderin classVerifiedPermissionsRequest
-
builder
public static IsAuthorizedWithTokenRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends IsAuthorizedWithTokenRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-