com.sun.enterprise.deployment
Class ResourcePrincipal

java.lang.Object
  extended by org.glassfish.security.common.PrincipalImpl
      extended by com.sun.enterprise.deployment.ResourcePrincipal
All Implemented Interfaces:
java.io.Serializable, java.security.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
ResourcePrincipal(java.lang.String name, java.lang.String password)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getPassword()
           
 int hashCode()
           
 
Methods inherited from class org.glassfish.security.common.PrincipalImpl
getName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourcePrincipal

public ResourcePrincipal(java.lang.String name,
                         java.lang.String password)
Method Detail

getPassword

public java.lang.String getPassword()

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.security.Principal
Overrides:
equals in class PrincipalImpl

hashCode

public int hashCode()
Specified by:
hashCode in interface java.security.Principal
Overrides:
hashCode in class PrincipalImpl


Copyright © 2012 GlassFish Community. All Rights Reserved.