issrg.simplePERMIS
Class SimplePERMISPrincipal

java.lang.Object
  extended by issrg.simplePERMIS.SimplePERMISPrincipal
All Implemented Interfaces:
java.security.Principal

public class SimplePERMISPrincipal
extends java.lang.Object
implements java.security.Principal

This class implements a Principal interface to provide the simple implementation of Principal for test scenarios.


Field Summary
protected  java.lang.String name
           
 
Constructor Summary
SimplePERMISPrincipal(java.lang.String name)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
hashCode, toString
 

Field Detail

name

protected java.lang.String name
Constructor Detail

SimplePERMISPrincipal

public SimplePERMISPrincipal(java.lang.String name)
Parameters:
name - - the name of the Principal
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface java.security.Principal
Returns:
String - the name of the Principal, as it was passed to the constructor

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.security.Principal
Overrides:
equals in class java.lang.Object
Returns:
true, if the given object is a Principal and its name is the same String (case sensitive comparison), or both the name of that Principal and this principal are null