Package com.sun.enterprise.deployment
Class ResourcePrincipal
- java.lang.Object
-
- org.glassfish.security.common.PrincipalImpl
-
- com.sun.enterprise.deployment.ResourcePrincipal
-
- All Implemented Interfaces:
Serializable
,Principal
public class ResourcePrincipal extends PrincipalImpl
This class encapsulates the Resource Principal information needed to access the Resource.- Author:
- Tony Ng
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourcePrincipal(String name, String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
This function returns true if the object passed matches the principal represented in this implementationString
getPassword()
int
hashCode()
Returns the hashcode for this Principal object-
Methods inherited from class org.glassfish.security.common.PrincipalImpl
getName, toString
-
-
-
-
Method Detail
-
getPassword
public String getPassword()
-
equals
public boolean equals(Object o)
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:
o
- 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.
-
-