|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.authentication.AuthenticationHandler com.jalios.jcms.authentication.handlers.DelegationAuthenticationHandler
public class DelegationAuthenticationHandler
Uses the Member's delegation to allow him to change its identity to somebody else.
Any account can be excluded from delegation by adding its member's ID to the
property (seperated with space or coma) :
auth-mgr.delegation.excluded-mbr-ids: c_42
Field Summary | |
---|---|
static int |
ORDER_DELEGATION_HANDLER
Order used by the DelegationAuthenticationHandler |
Fields inherited from class com.jalios.jcms.authentication.AuthenticationHandler |
---|
channel, GENERIC_BAD_AUTHENTICATION_MSG, REVISION |
Method Summary | |
---|---|
Set<Member> |
filterExcludedMember(Set<Member> setToFilter)
Filter the specified member Set to remove all member excluded from delegation. |
static DelegationAuthenticationHandler |
getInstance()
|
static List<Member> |
getSuHistory(javax.servlet.http.HttpServletRequest request)
Retrieve the change user history from the current session. |
static String |
getSuLink(Member suMember)
Retrieves a link that will request an user changer to the specified member. Note : The link is always return, even though the su might not be allowed. |
boolean |
isExcludedFromDelegation(Member suMbr)
Check if the specified Member can be used as the target of a delegation. |
void |
loadProperties()
This method will be called by the AuthenticationManager each time the Channel properties are loaded/reloaded. You can use it to reload properties that might have been changed. This method is called during initialization of the AuthenticationManager |
void |
login(AuthenticationContext ctxt)
Authenticate a member. |
Methods inherited from class com.jalios.jcms.authentication.AuthenticationHandler |
---|
compareTo, equals, getOrder, init, logout, setOrder |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ORDER_DELEGATION_HANDLER
Method Detail |
---|
public static final DelegationAuthenticationHandler getInstance()
public void loadProperties()
AuthenticationHandler
loadProperties
in class AuthenticationHandler
public void login(AuthenticationContext ctxt) throws IOException
AuthenticationHandler
AuthenticationContext
object (request, response, login.. etc) AuthenticationContext.setLoggedMember(com.jalios.jcms.Member)
AuthenticationContext.doChain()
,AuthenticationContext
.
login
in class AuthenticationHandler
ctxt
- the AuthenticationContext
used for this login
IOException
public Set<Member> filterExcludedMember(Set<Member> setToFilter)
setToFilter
- the Member set to filter
isExcludedFromDelegation(Member)
public boolean isExcludedFromDelegation(Member suMbr)
suMbr
- the Member in which a delegation could be request
public static final List<Member> getSuHistory(javax.servlet.http.HttpServletRequest request)
request
- the current HttpServletRequest
public static final String getSuLink(Member suMember)
suMember
- the member to login into
"index.jsp?JCMS_sulogin=johndoe"
)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |