org.ow2.jonas.lib.security.auth
Class JSubject
java.lang.Object
org.ow2.jonas.lib.security.auth.JSubject
- All Implemented Interfaces:
- Serializable
public class JSubject
- extends Object
- implements 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSubject
public JSubject(Principal name,
Principal group)
- Build new object with name and group
- Parameters:
name
- the given namegroup
- the group containing all roles
getGroup
public Principal getGroup()
- Returns:
- the group (containing groups)
getName
public Principal getName()
- Returns:
- name of user
Copyright © 2010 OW2 Consortium. All Rights Reserved.