com.sun.identity.wss.security
Class SecurityPrincipal

java.lang.Object
  extended bycom.sun.identity.wss.security.SecurityPrincipal
All Implemented Interfaces:
java.security.Principal

public class SecurityPrincipal
extends java.lang.Object
implements java.security.Principal

This class SecurityPrincipal exposes the authenticated principal via the message level security.


Constructor Summary
SecurityPrincipal(java.lang.String name)
          Default Constructor
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares with given object.
 java.lang.String getName()
          Returns the name of the principal.
 java.lang.String toString()
          Converts to string.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.security.Principal
hashCode
 

Constructor Detail

SecurityPrincipal

public SecurityPrincipal(java.lang.String name)
Default Constructor

Parameters:
name - the name of the principal
Method Detail

equals

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

Specified by:
equals in interface java.security.Principal

getName

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

Specified by:
getName in interface java.security.Principal
Returns:
the name of the principal.

toString

public java.lang.String toString()
Converts to string.

Specified by:
toString in interface java.security.Principal
Returns:
String the principal name


Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.