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 booleanequals(Object o)This function returns true if the object passed matches the principal represented in this implementationStringgetPassword()inthashCode()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:PrincipalImplThis function returns true if the object passed matches the principal represented in this implementation- Specified by:
equalsin interfacePrincipal- Overrides:
equalsin 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:PrincipalImplReturns the hashcode for this Principal object- Specified by:
hashCodein interfacePrincipal- Overrides:
hashCodein classPrincipalImpl- Returns:
- a hashcode for the principal.
-
-