public class AclToken extends Object
| Constructor and Description | 
|---|
AclToken()
Default constructor 
 | 
AclToken(AclToken token)
Copy constructor 
 | 
AclToken(JsonObject token)
Constructor from JSON 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getId()
Get ID of token 
 | 
String | 
getName()
Get name of token 
 | 
String | 
getRules()
Get rules for token 
 | 
AclTokenType | 
getType()
Get type of token 
 | 
AclToken | 
setId(String id)
Set ID of token 
 | 
AclToken | 
setName(String name)
Set name of token 
 | 
AclToken | 
setRules(String rules)
Set rules for token 
 | 
AclToken | 
setType(AclTokenType type)
Set type of token 
 | 
JsonObject | 
toJson()
Convert to JSON 
 | 
public AclToken()
public AclToken(AclToken token)
token - the one to copypublic AclToken(JsonObject token)
token - the JSONpublic JsonObject toJson()
public String getId()
public AclToken setId(String id)
id - ID of tokenpublic String getName()
public AclToken setName(String name)
name - name of tokenpublic AclTokenType getType()
public AclToken setType(AclTokenType type)
type - type of tokenpublic String getRules()
Copyright © 2020 Eclipse. All rights reserved.