com.sun.identity.wss.security
Class SecurityPrincipal

java.lang.Object
  extended by com.sun.identity.wss.security.SecurityPrincipal

public class SecurityPrincipal
extends Object

This class SecurityPrincipal exposes the authenticated principal via the message level security. It implements Principal and Serializable interfaces.

See Also:
Serialized Form

Constructor Summary
SecurityPrincipal(String name)
          Constructs SecurityPrincipal object.
 
Method Summary
 boolean equals(Object o)
          Compares with given object.
 String getName()
          Returns the name of the principal.
 String toString()
          Converts to string.
 

Constructor Detail

SecurityPrincipal

public SecurityPrincipal(String name)
Constructs SecurityPrincipal object.

Parameters:
name - the name of the principal
Method Detail

equals

public boolean equals(Object o)
Compares with given object.

Overrides:
equals in class Object
Parameters:
o - the given object
Returns:
false if the given object is not equal to this principal.

getName

public String getName()
Returns the name of the principal.

Returns:
the name of the principal.

toString

public String toString()
Converts to string.

Overrides:
toString in class Object
Returns:
String the principal name string.