Package org.glassfish.security.common
Class FileRealmStorageManager.User
- java.lang.Object
-
- org.glassfish.security.common.PrincipalImpl
-
- org.glassfish.security.common.FileRealmStorageManager.User
-
- All Implemented Interfaces:
Serializable,Principal
- Enclosing class:
- FileRealmStorageManager
public static class FileRealmStorageManager.User extends PrincipalImpl
Represents a FileRealm user.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)This function returns true if the object passed matches the principal represented in this implementationStringgetAlgo()String[]getGroups()Return the names of the groups this user belongs to.byte[]getHash()Get hash value.byte[]getSalt()Returns salt value.inthashCode()Returns the hashcode for this Principal objectvoidsetAlgo(String algo)voidsetGroups(String[] grp)Set group membership.voidsetHash(byte[] hash)Set hash value.voidsetSalt(byte[] salt)Set salt value.-
Methods inherited from class org.glassfish.security.common.PrincipalImpl
getName, toString
-
-
-
-
Method Detail
-
equals
public boolean equals(Object obj)
Description copied from class:PrincipalImplThis function returns true if the object passed matches the principal represented in this implementation- Specified by:
equalsin interfacePrincipal- Overrides:
equalsin classPrincipalImpl- Parameters:
obj- the Principal to compare with.- Returns:
- true if the Principal passed is the same as that encapsulated in this object, false otherwise
-
hashCode
public int hashCode()
Description copied from class:PrincipalImplReturns the hashcode for this Principal object- Specified by:
hashCodein interfacePrincipal- Overrides:
hashCodein classPrincipalImpl- Returns:
- a hashcode for the principal.
-
getSalt
public byte[] getSalt()
Returns salt value.
-
setSalt
public void setSalt(byte[] salt)
Set salt value.
-
getHash
public byte[] getHash()
Get hash value.
-
setHash
public void setHash(byte[] hash)
Set hash value.
-
getGroups
public String[] getGroups()
Return the names of the groups this user belongs to.- Returns:
- String[] List of group memberships.
-
setGroups
public void setGroups(String[] grp)
Set group membership.
-
getAlgo
public String getAlgo()
- Returns:
- the algo
-
setAlgo
public void setAlgo(String algo)
- Parameters:
algo- the algo to set
-
-