FileDocCategorySizeDatePackage
PermissionImpl.javaAPI DocJava SE 5 API1553Fri Aug 26 14:55:02 BST 2005com.sun.jmx.snmp.IPAcl

PermissionImpl

public class PermissionImpl extends Object implements Serializable, java.security.acl.Permission
Permission is represented as a String.
see
java.security.acl.Permission
version
4.10 12/19/03
author
Sun Microsystems, Inc

Fields Summary
private String
perm
Constructors Summary
public PermissionImpl(String s)
Constructs a permission.

param
s the string representing the permission.

  
               
     
	perm = s;
  
Methods Summary
public booleanequals(java.lang.Object p)
Returns true if the object passed matches the permission represented in.

param
p the Permission object to compare with.
return
true if the Permission objects are equal, false otherwise.

	if (p instanceof PermissionImpl){
	  return perm.equals(((PermissionImpl)p).getString());
	} else {
	  return false;
	}
  
public java.lang.StringgetString()
Prints the permission.

return
a string representation of this permission.

	return perm;
  
public inthashCode()

	return super.hashCode();	
  
public java.lang.StringtoString()
Prints a string representation of this permission.

return
a string representation of this permission.

	return perm.toString();