FileDocCategorySizeDatePackage
PrivilegeImpl.javaAPI DocGlassfish v2 API2829Fri May 04 22:35:26 BST 2007com.sun.enterprise.security.auth

PrivilegeImpl

public class PrivilegeImpl extends Object implements Privilege
This method provides an implementation a Privilege
author
Harish Prabandham

Fields Summary
private String
name
Constructors Summary
public PrivilegeImpl(String name)
Creates a new Privilege object..

	this.name = name;
    
Methods Summary
public booleanequals(java.lang.Object obj)
Compares equality...

	if(obj instanceof Privilege) {
	    Privilege priv = (Privilege) obj;
	    return getName().equals(priv.getName());
	} else {
	    return false;
	}
    
public java.lang.StringgetName()
Returns the name of the name of the Privilege.

return
The name of the name of the Privilege.

	return name;
    
public inthashCode()
Returns the hashCode ..

	return name.hashCode();