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 boolean
equals(Object obj)
This function returns true if the object passed matches the principal represented in this implementationString
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 objectvoid
setAlgo(String algo)
void
setGroups(String[] grp)
Set group membership.void
setHash(byte[] hash)
Set hash value.void
setSalt(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:PrincipalImpl
This function returns true if the object passed matches the principal represented in this implementation- Specified by:
equals
in interfacePrincipal
- Overrides:
equals
in 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:PrincipalImpl
Returns the hashcode for this Principal object- Specified by:
hashCode
in interfacePrincipal
- Overrides:
hashCode
in 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
-
-