edu.internet2.middleware.shibboleth.idp.authn
Class UsernamePrincipal

java.lang.Object
  extended by edu.internet2.middleware.shibboleth.idp.authn.UsernamePrincipal
All Implemented Interfaces:
Serializable, Principal

public class UsernamePrincipal
extends Object
implements Principal, Serializable

A basic implementation of Principal.

See Also:
Serialized Form

Constructor Summary
UsernamePrincipal(String principalName)
          Constructor.
 
Method Summary
 boolean equals(Object obj)
          
 String getName()
          
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UsernamePrincipal

public UsernamePrincipal(String principalName)
Constructor.

Parameters:
principalName - name of the principal
Method Detail

getName

public String getName()

Specified by:
getName in interface Principal

toString

public String toString()

Specified by:
toString in interface Principal
Overrides:
toString in class Object

hashCode

public int hashCode()

Specified by:
hashCode in interface Principal
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Specified by:
equals in interface Principal
Overrides:
equals in class Object


Copyright © 2006-2009 Internet2. All Rights Reserved.