站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss Seam 1.1.0 bate1 API 英文版文档

SeamLoginModule (JBoss Seam API Documentation) - JBoss Seam 1.1.0 bate1 API 英文版文档


org.jboss.seam.security.adapter.jboss
Class SeamLoginModule

java.lang.Object
  extended by org.jboss.seam.security.adapter.jboss.SeamLoginModule
All Implemented Interfaces:
LoginModule

public class SeamLoginModule
extends Object
implements LoginModule

Author:
Shane Bryzak

Constructor Summary
SeamLoginModule()
           
 
Method Summary
 boolean abort()
           
 boolean commit()
           
protected  Group createGroup(String name, Set<Principal> principals)
           
protected  Principal createIdentity(String username)
           
protected  Group[] getRoleSets()
           
 void initialize(Subject subject, CallbackHandler handler, Map sharedState, Map options)
           
 boolean login()
           
 boolean logout()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeamLoginModule

public SeamLoginModule()
Method Detail

abort

public boolean abort()
Specified by:
abort in interface LoginModule

commit

public boolean commit()
Specified by:
commit in interface LoginModule
Returns:
boolean

createGroup

protected Group createGroup(String name,
                            Set<Principal> principals)
                     throws Exception
Parameters:
name - String
principals - Set
Returns:
Group
Throws:
Exception

getRoleSets

protected Group[] getRoleSets()
                       throws Exception
Returns:
Group[]
Throws:
LoginException
Exception

createIdentity

protected Principal createIdentity(String username)
                            throws Exception
Parameters:
username - String
Returns:
Principal
Throws:
Exception

initialize

public void initialize(Subject subject,
                       CallbackHandler handler,
                       Map sharedState,
                       Map options)
Specified by:
initialize in interface LoginModule
Parameters:
subject - Subject
handler - CallbackHandler
sharedState - Map
options - Map

login

public boolean login()
              throws LoginException
Specified by:
login in interface LoginModule
Returns:
boolean
Throws:
LoginException

logout

public boolean logout()
               throws LoginException
Specified by:
logout in interface LoginModule
Returns:
boolean
Throws:
LoginException