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