Modifier and Type | Field and Description |
---|---|
static String |
GROUPS_NODE_NAME |
static String |
IDENTITY_NODE_NAME |
static String |
ROLES_NODE_NAME |
static String |
USERS_NODE_NAME |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static PrincipalKey |
from(String principalKey) |
String |
getId() |
PrincipalType |
getType() |
UserStoreKey |
getUserStore() |
int |
hashCode() |
boolean |
isAnonymous() |
boolean |
isGroup() |
boolean |
isRole() |
boolean |
isUser() |
static PrincipalKey |
ofAnonymous() |
static PrincipalKey |
ofGroup(UserStoreKey userStore,
String groupId) |
static PrincipalKey |
ofRole(String roleId) |
static PrincipalKey |
ofUser(UserStoreKey userStore,
String userId) |
NodePath |
toPath() |
String |
toString() |
public static final String IDENTITY_NODE_NAME
public static final String ROLES_NODE_NAME
public static final String GROUPS_NODE_NAME
public static final String USERS_NODE_NAME
public UserStoreKey getUserStore()
public PrincipalType getType()
public String getId()
public boolean isUser()
public boolean isGroup()
public boolean isRole()
public boolean isAnonymous()
public NodePath toPath()
public static PrincipalKey from(String principalKey)
public static PrincipalKey ofAnonymous()
public static PrincipalKey ofUser(UserStoreKey userStore, String userId)
public static PrincipalKey ofGroup(UserStoreKey userStore, String groupId)
public static PrincipalKey ofRole(String roleId)