public static class FileRealmStorageManager.User extends PrincipalImpl
Constructor and Description |
---|
User(String name)
Constructor.
|
User(String name,
String[] groups,
String realm,
byte[] salt,
byte[] hash,
String algo)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
This function returns true if the object passed matches the principal represented in this implementation
|
String |
getAlgo() |
String[] |
getGroups()
Return the names of the groups this user belongs to.
|
byte[] |
getHash()
Get hash value.
|
byte[] |
getSalt()
Returns salt value.
|
int |
hashCode()
Returns the hashcode for this Principal object
|
void |
setAlgo(String algo) |
void |
setGroups(String[] grp)
Set group membership.
|
void |
setHash(byte[] hash)
Set hash value.
|
void |
setSalt(byte[] salt)
Set salt value.
|
getName, toString
public User(String name)
public boolean equals(Object obj)
PrincipalImpl
equals
in interface Principal
equals
in class PrincipalImpl
obj
- the Principal to compare with.public int hashCode()
PrincipalImpl
hashCode
in interface Principal
hashCode
in class PrincipalImpl
public byte[] getSalt()
public void setSalt(byte[] salt)
public byte[] getHash()
public void setHash(byte[] hash)
public String[] getGroups()
public void setGroups(String[] grp)
public String getAlgo()
public void setAlgo(String algo)
algo
- the algo to setCopyright © 2021. All rights reserved.