SwitchYard: Core 0.6.0.Beta2

org.switchyard.security.principal
Class Role

java.lang.Object
  extended by org.switchyard.security.principal.Role
All Implemented Interfaces:
Serializable, Principal

public class Role
extends Object
implements Principal, Serializable

Role.

Author:
David Ward <dward@jboss.org> © 2012 Red Hat Inc.
See Also:
Serialized Form

Constructor Summary
Role(String name)
          Constructs a Role with the specified name.
 
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

Role

public Role(String name)
Constructs a Role with the specified name.

Parameters:
name - the specified name
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

SwitchYard: Core 0.6.0.Beta2

JBoss by Red Hat