org.objectweb.jonas.security.auth
Class JSubject

java.lang.Object
  extended by org.objectweb.jonas.security.auth.JSubject
All Implemented Interfaces:
java.io.Serializable

public class JSubject
extends java.lang.Object
implements java.io.Serializable

Designed to embeds Object for JResourceLoginModule. This is due to the fact that Subject class isn't serializable with JacORB Could be removed when it will be the case

Author:
Florent.
See Also:
Serialized Form

Constructor Summary
JSubject(java.security.Principal name, java.security.Principal group)
          Build new object with name and group
 
Method Summary
 java.security.Principal getGroup()
           
 java.security.Principal getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSubject

public JSubject(java.security.Principal name,
                java.security.Principal group)
Build new object with name and group

Parameters:
name - the given name
group - the group containing all roles
Method Detail

getGroup

public java.security.Principal getGroup()
Returns:
the group (containing groups)

getName

public java.security.Principal getName()
Returns:
name of user