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