public static class FileRealmHelper.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, toStringpublic User(String name)
public boolean equals(Object obj)
PrincipalImplequals in interface Principalequals in class PrincipalImplobj - the Principal to compare with.public int hashCode()
PrincipalImplhashCode in interface PrincipalhashCode in class PrincipalImplpublic 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 © 2017–2020 Eclipse Foundation. All rights reserved.