public static class Permission.CredentialPermissionBuilder
extends java.lang.Object
Permission
instances.| Modifier and Type | Method and Description |
|---|---|
Permission.CredentialPermissionBuilder |
app(java.lang.String appId)
Set the ID of an application that will be assigned permissions on a credential.
|
Permission |
build()
Construct a
Permission with the provided values. |
Permission.CredentialPermissionBuilder |
client(java.lang.String clientId)
Set the ID of an OAuth2 client that will be assigned permissions on a credential.
|
Permission.CredentialPermissionBuilder |
client(java.lang.String zoneId,
java.lang.String clientId)
Set the ID of an OAuth2 client that will be assigned permissions on a credential.
|
Permission.CredentialPermissionBuilder |
operation(Operation operation)
Set an
Operation that the actor will be allowed to perform on
the credential. |
Permission.CredentialPermissionBuilder |
operations(Operation... operations)
Specify a set of
Operations that the actor will be allowed to perform
on the credential. |
Permission.CredentialPermissionBuilder |
user(java.lang.String userId)
Set the ID of a user that will be assigned permissions on a credential.
|
Permission.CredentialPermissionBuilder |
user(java.lang.String zoneId,
java.lang.String userId)
Set the ID of a user that will be assigned permissions on a credential.
|
public Permission.CredentialPermissionBuilder app(java.lang.String appId)
appId - application ID; must not be nullpublic Permission.CredentialPermissionBuilder user(java.lang.String userId)
userId - user ID; must not be nullpublic Permission.CredentialPermissionBuilder user(java.lang.String zoneId, java.lang.String userId)
zoneId - zone ID; must not be nulluserId - user ID; must not be nullpublic Permission.CredentialPermissionBuilder client(java.lang.String clientId)
clientId - OAuth2 client ID; must not be nullpublic Permission.CredentialPermissionBuilder client(java.lang.String zoneId, java.lang.String clientId)
zoneId - zone ID; must not be nullclientId - OAuth2 client ID; must not be nullpublic Permission.CredentialPermissionBuilder operation(Operation operation)
Operation that the actor will be allowed to perform on
the credential. Multiple operations can be provided with consecutive calls to
this method.operation - the Operationpublic Permission.CredentialPermissionBuilder operations(Operation... operations)
Operations that the actor will be allowed to perform
on the credential.operations - the Operationspublic Permission build()
Permission with the provided values.Permission