JBoss Remoting 3 3.2.0.CR6

org.jboss.remoting3.security
Class UserPrincipal

java.lang.Object
  extended by org.jboss.remoting3.security.UserPrincipal
All Implemented Interfaces:
Principal

public final class UserPrincipal
extends Object
implements Principal

A principal representing an authenticated user.

Author:
David M. Lloyd

Constructor Summary
UserPrincipal(String name)
          Construct a new instance.
 
Method Summary
 boolean equals(Object other)
          Determine whether this object is equal to another.
 boolean equals(UserPrincipal other)
          Determine whether this object is equal to another.
 String getName()
          Get the name of this principal.
 int hashCode()
          Get the hash code.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
toString
 

Constructor Detail

UserPrincipal

public UserPrincipal(String name)
Construct a new instance.

Parameters:
name - the name of the user
Method Detail

getName

public String getName()
Get the name of this principal.

Specified by:
getName in interface Principal
Returns:
the name

hashCode

public int hashCode()
Get the hash code.

Specified by:
hashCode in interface Principal
Overrides:
hashCode in class Object
Returns:
the hash code

equals

public boolean equals(Object other)
Determine whether this object is equal to another.

Specified by:
equals in interface Principal
Overrides:
equals in class Object
Parameters:
other - the other object
Returns:
true if they are equal, false otherwise

equals

public boolean equals(UserPrincipal other)
Determine whether this object is equal to another.

Parameters:
other - the other object
Returns:
true if they are equal, false otherwise

JBoss Remoting 3 3.2.0.CR6

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.