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.

See Also:
Serialized Form

Constructor Summary
SecurityPrincipal(String name)
          Default Constructor
 
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)
Default Constructor

Parameters:
name - the name of the principal
Method Detail

equals

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

Overrides:
equals in class 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