Class CredentialAccessBoundary.AccessBoundaryRule (1.7.0)

publicstaticfinalclass CredentialAccessBoundary.AccessBoundaryRule

Defines an upper bound of permissions on a particular resource.

The following snippet shows an AccessBoundaryRule that applies to the Cloud Storage bucket bucket-one to set the upper bound of permissions to those defined by the roles/storage.objectViewer role.


AccessBoundaryRulerule=AccessBoundaryRule.newBuilder()
.setAvailableResource("//storage.googleapis.com/projects/_/buckets/bucket-one")
.addAvailablePermission("inRole:roles/storage.objectViewer")
.build();

Inheritance

java.lang.Object > CredentialAccessBoundary.AccessBoundaryRule

Static Methods

newBuilder()

publicstaticCredentialAccessBoundary.AccessBoundaryRule.BuildernewBuilder()
Returns
Type Description
CredentialAccessBoundary.AccessBoundaryRule.Builder

Methods

getAvailabilityCondition()

publicCredentialAccessBoundary.AccessBoundaryRule.AvailabilityConditiongetAvailabilityCondition()
Returns
Type Description
CredentialAccessBoundary.AccessBoundaryRule.AvailabilityCondition

getAvailablePermissions()

publicList<String>getAvailablePermissions()
Returns
Type Description
List<String>

getAvailableResource()

publicStringgetAvailableResource()
Returns
Type Description
String

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.