|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jguard.jee.authentication.schemes.AuditSchemeHandler<Req,Res>
public abstract class AuditSchemeHandler<Req,Res>
| Field Summary |
|---|
| Fields inherited from interface net.sf.jguard.core.authentication.schemes.AuthenticationSchemeHandler |
|---|
REDIRECT |
| Constructor Summary | |
|---|---|
AuditSchemeHandler(Map<String,String> parameters,
StatefulScopes authenticationBindings)
|
|
| Method Summary | |
|---|---|
boolean |
answerToChallenge(Request request,
Response response)
no challenge are asked to the user. |
void |
authenticationFailed(Request request,
Response response)
nothing to do when authentication failed. |
void |
authenticationSucceed(Subject subject,
Request request,
Response response)
nothing to do when authentication succeed. |
void |
buildChallenge(Request request,
Response response)
no challenge are needed to collect required informations. |
boolean |
challengeNeeded(Request request,
Response response)
like AuditSchemeHandler only records activity, it doesnt need to request an authentication challenge. |
Collection<Class<? extends Callback>> |
getCallbackTypes()
|
PermissionCollection |
getGrantedPermissions()
no Permission needs to be granted to the user to collect informations. |
protected abstract Locale |
getLocale(Request<Req> request)
|
String |
getName()
|
protected abstract String |
getRemoteAddress(Request<Req> request)
|
protected abstract String |
getRemoteHost(Request<Req> request)
|
void |
handleSchemeCallbacks(Request<Req> request,
Response<Res> response,
Callback[] cbks)
|
static String |
reverseDns(String hostIp)
return the host name related to the IP adress. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuditSchemeHandler(Map<String,String> parameters,
StatefulScopes authenticationBindings)
| Method Detail |
|---|
public String getName()
getName in interface AuthenticationSchemeHandler<Req,Res>public Collection<Class<? extends Callback>> getCallbackTypes()
getCallbackTypes in interface AuthenticationSchemeHandler<Req,Res>
public boolean answerToChallenge(Request request,
Response response)
answerToChallenge in interface AuthenticationSchemeHandler<Req,Res>
public boolean challengeNeeded(Request request,
Response response)
challengeNeeded in interface AuthenticationSchemeHandler<Req,Res>request - response -
public void buildChallenge(Request request,
Response response)
buildChallenge in interface AuthenticationSchemeHandler<Req,Res>AuthenticationExceptionpublic PermissionCollection getGrantedPermissions()
getGrantedPermissions in interface AuthenticationSchemeHandler<Req,Res>
public void authenticationSucceed(Subject subject,
Request request,
Response response)
authenticationSucceed in interface AuthenticationSchemeHandler<Req,Res>AuthenticationException
public void authenticationFailed(Request request,
Response response)
authenticationFailed in interface AuthenticationSchemeHandler<Req,Res>AuthenticationExceptionprotected abstract String getRemoteAddress(Request<Req> request)
protected abstract String getRemoteHost(Request<Req> request)
protected abstract Locale getLocale(Request<Req> request)
public void handleSchemeCallbacks(Request<Req> request,
Response<Res> response,
Callback[] cbks)
throws UnsupportedCallbackException
handleSchemeCallbacks in interface AuthenticationSchemeHandler<Req,Res>UnsupportedCallbackException
public static String reverseDns(String hostIp)
throws IOException
hostIp - Internet Protocol adress
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||