public abstract class TokenApplyingOptions extends Object
Modifier and Type | Field and Description |
---|---|
protected List<String> |
datacenters
Specifies the datacenters the policy is valid within
|
protected static String |
DATACENTERS_KEY |
protected String |
name
The name of the service/node
|
Constructor and Description |
---|
TokenApplyingOptions() |
Modifier and Type | Method and Description |
---|---|
TokenApplyingOptions |
addDatacenter(String datacenter)
Adds a datacenter, like
setDatacenters(List) |
List<String> |
getDatacenters() |
String |
getName() |
TokenApplyingOptions |
setDatacenters(List<String> datacenters)
Sets an optional datacenters.
|
TokenApplyingOptions |
setName(String name)
Sets a name
|
JsonObject |
toJson() |
protected static final String DATACENTERS_KEY
protected String name
public String getName()
public TokenApplyingOptions setName(String name)
name
- - must be no longer than 256 characters, must start and end with a lowercase alphanumeric character,
and can only contain lowercase alphanumeric characters as well as '-' and '_'.public TokenApplyingOptions setDatacenters(List<String> datacenters)
datacenters
- list of datacentersdatacenters
public TokenApplyingOptions addDatacenter(String datacenter)
setDatacenters(List)
datacenters
public JsonObject toJson()
Copyright © 2024 Eclipse. All rights reserved.