electric.soap.security
Class RealmPrincipal

java.lang.Object
  extended byelectric.soap.security.RealmPrincipal
All Implemented Interfaces:
java.security.Principal

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

RealmPrincipal defines a Java Principal object representing an entry in a GLUE Realm. This is useful because (username,realm) pairs, not bare usernames, that identify a GLUE-level user.

Author:
webMethods

Field Summary
protected  IRealm realm
           
protected  java.lang.String user
           
 
Constructor Summary
RealmPrincipal(IRealm realm, java.lang.String user)
           
 
Method Summary
 java.lang.String getName()
           
 IRealm getRealm()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Field Detail

realm

protected IRealm realm

user

protected java.lang.String user
Constructor Detail

RealmPrincipal

public RealmPrincipal(IRealm realm,
                      java.lang.String user)
Parameters:
realm -
user -
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface java.security.Principal
Returns:
the name of the principal.

getRealm

public IRealm getRealm()
Returns:
the realm associated with the principal.


copyright© 2001-2004 by webMethods All Rights Reserved.