net.sf.jguard.jsf.authentication.schemes
Class JSFFormSchemeHandler
java.lang.Object
net.sf.jguard.core.authentication.schemes.FormSchemeHandler
net.sf.jguard.jsf.authentication.schemes.JSFFormSchemeHandler
- All Implemented Interfaces:
- net.sf.jguard.core.authentication.schemes.AuthenticationSchemeHandler, net.sf.jguard.core.authentication.schemes.StatefulAuthenticationSchemeHandler
public class JSFFormSchemeHandler
- extends net.sf.jguard.core.authentication.schemes.FormSchemeHandler
implements an HTTP FORM Authentication scheme based on the JSF API.
- Author:
- Charles Gay
| Fields inherited from class net.sf.jguard.core.authentication.schemes.FormSchemeHandler |
factory, goToLastAccessDeniedUriOnSuccess, grantedPermissions, LOGIN, logonPermission, PASSWORD |
|
Constructor Summary |
JSFFormSchemeHandler(java.util.Map<java.lang.String,java.lang.String> parameters,
net.sf.jguard.core.authentication.bindings.AuthenticationBindingsFactory factory)
|
|
Method Summary |
void |
authenticationFailed(net.sf.jguard.core.authentication.AccessContext context)
redirect to the authenticationFailedURI JSF view. |
void |
authenticationSucceed(net.sf.jguard.core.authentication.AccessContext context)
if goToLastAccessprotected void initSettings(Map parameters) throws IllegalArgumentException {DeniedUriOnSuccess is set to true,
we redirect to the last JSF view which access has been denied. |
void |
buildChallenge(net.sf.jguard.core.authentication.AccessContext context)
redirect to the logonURI JSF view. |
protected java.lang.String |
getLogin(net.sf.jguard.core.authentication.AccessContext context)
|
java.security.Permission |
getLogoffPermission()
|
protected java.security.Permission |
getlogonProcessPermission()
|
protected java.lang.String |
getPassword(net.sf.jguard.core.authentication.AccessContext context)
|
protected java.security.Permission |
getPermission(net.sf.jguard.core.authentication.AccessContext context)
|
protected void |
initSettings(java.util.Map<java.lang.String,java.lang.String> parameters)
|
| Methods inherited from class net.sf.jguard.core.authentication.schemes.FormSchemeHandler |
answerToChallenge, getCallbackTypes, getGrantedPermissions, getName, handleSchemeCallbacks |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSFFormSchemeHandler
public JSFFormSchemeHandler(java.util.Map<java.lang.String,java.lang.String> parameters,
net.sf.jguard.core.authentication.bindings.AuthenticationBindingsFactory factory)
buildChallenge
public void buildChallenge(net.sf.jguard.core.authentication.AccessContext context)
throws net.sf.jguard.core.authentication.AuthenticationException
- redirect to the logonURI JSF view.
- Specified by:
buildChallenge in interface net.sf.jguard.core.authentication.schemes.AuthenticationSchemeHandler- Specified by:
buildChallenge in class net.sf.jguard.core.authentication.schemes.FormSchemeHandler
- Parameters:
context - AccessContext
- Throws:
net.sf.jguard.core.authentication.AuthenticationException
authenticationFailed
public void authenticationFailed(net.sf.jguard.core.authentication.AccessContext context)
throws net.sf.jguard.core.authentication.AuthenticationException
- redirect to the authenticationFailedURI JSF view.
- Parameters:
context - AccessContext
- Throws:
net.sf.jguard.core.authentication.AuthenticationException
authenticationSucceed
public void authenticationSucceed(net.sf.jguard.core.authentication.AccessContext context)
throws net.sf.jguard.core.authentication.AuthenticationException
- if goToLastAccessprotected void initSettings(Map parameters) throws IllegalArgumentException {DeniedUriOnSuccess is set to true,
we redirect to the last JSF view which access has been denied.
if goToLastAccessDeniedUriOnSuccess is set to false,
we redirect to the indexURI if access is granted to it,
otherwise to logon JSF view.
- Parameters:
context - AccessContext
- Throws:
net.sf.jguard.core.authentication.AuthenticationException
getLogin
protected java.lang.String getLogin(net.sf.jguard.core.authentication.AccessContext context)
- Specified by:
getLogin in class net.sf.jguard.core.authentication.schemes.FormSchemeHandler
getPassword
protected java.lang.String getPassword(net.sf.jguard.core.authentication.AccessContext context)
- Specified by:
getPassword in class net.sf.jguard.core.authentication.schemes.FormSchemeHandler
getLogoffPermission
public java.security.Permission getLogoffPermission()
getPermission
protected java.security.Permission getPermission(net.sf.jguard.core.authentication.AccessContext context)
- Specified by:
getPermission in class net.sf.jguard.core.authentication.schemes.FormSchemeHandler
getlogonProcessPermission
protected java.security.Permission getlogonProcessPermission()
- Specified by:
getlogonProcessPermission in class net.sf.jguard.core.authentication.schemes.FormSchemeHandler
initSettings
protected void initSettings(java.util.Map<java.lang.String,java.lang.String> parameters)
throws java.lang.IllegalArgumentException
- Specified by:
initSettings in class net.sf.jguard.core.authentication.schemes.FormSchemeHandler
- Throws:
java.lang.IllegalArgumentException
Copyright © 2004-2009. All Rights Reserved.