Package io.vertx.ext.consul
Class AclToken
- java.lang.Object
-
- io.vertx.ext.consul.AclToken
-
@Deprecated public class AclToken extends Object
Deprecated.Holds properties of Acl token- Author:
- Ruslan Sennov
-
-
Constructor Summary
Constructors Constructor Description AclToken()Deprecated.Default constructorAclToken(JsonObject token)Deprecated.Constructor from JSONAclToken(AclToken token)Deprecated.Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetId()Deprecated.Get ID of tokenStringgetName()Deprecated.Get name of tokenStringgetRules()Deprecated.Get rules for tokenAclTokenTypegetType()Deprecated.Get type of tokenAclTokensetId(String id)Deprecated.Set ID of tokenAclTokensetName(String name)Deprecated.Set name of tokenAclTokensetRules(String rules)Deprecated.Set rules for tokenAclTokensetType(AclTokenType type)Deprecated.Set type of tokenJsonObjecttoJson()Deprecated.Convert to JSON
-
-
-
Constructor Detail
-
AclToken
public AclToken()
Deprecated.Default constructor
-
AclToken
public AclToken(AclToken token)
Deprecated.Copy constructor- Parameters:
token- the one to copy
-
AclToken
public AclToken(JsonObject token)
Deprecated.Constructor from JSON- Parameters:
token- the JSON
-
-
Method Detail
-
toJson
public JsonObject toJson()
Deprecated.Convert to JSON- Returns:
- the JSON
-
getId
public String getId()
Deprecated.Get ID of token- Returns:
- ID of token
-
setId
public AclToken setId(String id)
Deprecated.Set ID of token- Parameters:
id- ID of token- Returns:
- reference to this, for fluency
-
getName
public String getName()
Deprecated.Get name of token- Returns:
- name of token
-
setName
public AclToken setName(String name)
Deprecated.Set name of token- Parameters:
name- name of token- Returns:
- reference to this, for fluency
-
getType
public AclTokenType getType()
Deprecated.Get type of token- Returns:
- type of token
-
setType
public AclToken setType(AclTokenType type)
Deprecated.Set type of token- Parameters:
type- type of token- Returns:
- reference to this, for fluency
-
getRules
public String getRules()
Deprecated.Get rules for token- Returns:
- rules for token
-
-