public class AclToken extends Object
Constructor and Description |
---|
AclToken() |
AclToken(JsonObject json) |
Modifier and Type | Method and Description |
---|---|
AclToken |
addPolicy(PolicyLink policyLink)
Adds a policy.
|
String |
getAccessorId()
Returns accessorId
|
String |
getDescription() |
Boolean |
getLocal() |
List<PolicyLink> |
getPolicies() |
String |
getSecretId()
Returns secretId
|
AclToken |
local()
Indicates that it is a local token
|
AclToken |
setDescription(String description)
Sets an optional free-form description that is human-readable
|
AclToken |
setExpirationTime(String expirationTime)
Sets the expiration time.
|
AclToken |
setNamespace(String namespace)
Sets an optional namespace.
|
AclToken |
setNodeIdentities(List<NodeTokenApplyingOptions> nodeIdentities)
Sets a list of nodes
|
AclToken |
setPolicies(List<PolicyLink> policies)
Sets policies
|
AclToken |
setServiceIdentities(List<ServiceTokenApplyingOptions> serviceIdentities)
Sets a list of services
|
JsonObject |
toJson() |
public AclToken()
public AclToken(JsonObject json)
public JsonObject toJson()
public String getAccessorId()
accessorId
public String getDescription()
public List<PolicyLink> getPolicies()
public Boolean getLocal()
public AclToken setDescription(String description)
description
- description
public AclToken setPolicies(List<PolicyLink> policies)
policies
- PolicyLink
public AclToken addPolicy(PolicyLink policyLink)
setPolicies(List)
policyLink
- public AclToken setExpirationTime(String expirationTime)
expirationTime
- must be between 1 minute and 24 hours in the futureexpirationTime
public AclToken setNamespace(String namespace)
namespace
- namespace
public AclToken setNodeIdentities(List<NodeTokenApplyingOptions> nodeIdentities)
NodeTokenApplyingOptions
public AclToken setServiceIdentities(List<ServiceTokenApplyingOptions> serviceIdentities)
ServiceTokenApplyingOptions
Copyright © 2024 Eclipse. All rights reserved.