|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.internet2.middleware.shibboleth.idp.authn.provider.AbstractLoginHandler
edu.internet2.middleware.shibboleth.idp.authn.provider.IPAddressLoginHandler
public class IPAddressLoginHandler
IP Address authentication handler. This "authenticates" a user based on their IP address. It operates in either default deny or default allow mode, and evaluates a given request against a list of blocked or permitted IPs. It supports both IPv4 and IPv6.
| Field Summary |
|---|
| Fields inherited from interface edu.internet2.middleware.shibboleth.idp.authn.LoginHandler |
|---|
AUTHENTICATION_ERROR_KEY, AUTHENTICATION_EXCEPTION_KEY, AUTHENTICATION_INSTANT_KEY, AUTHENTICATION_METHOD_KEY, PRINCIPAL_KEY, PRINCIPAL_NAME_KEY, SUBJECT_KEY |
| Constructor Summary | |
|---|---|
IPAddressLoginHandler(String user,
List<IPRange> ranges,
boolean isIpInRangeAuthenticated)
Constructor. |
|
| Method Summary | |
|---|---|
protected boolean |
authenticate(InetAddress clientAddress)
Authenticates the client address. |
void |
login(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse)
Authenticate the user making the request. |
boolean |
supportsForceAuthentication()
Returns if this handler supports the ability to force a user to (re-)authenticate. |
boolean |
supportsPassive()
Gets whether this handler supports passive authentication. |
| Methods inherited from class edu.internet2.middleware.shibboleth.idp.authn.provider.AbstractLoginHandler |
|---|
getAuthenticationDuration, getSupportedAuthenticationMethods, setAuthenticationDuration, setAuthenticationDurection, setSupportsForceAuthentication, setSupportsPassive |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IPAddressLoginHandler(String user,
List<IPRange> ranges,
boolean isIpInRangeAuthenticated)
user - username to return upon successful "authentication"ranges - range of IP addresses specifiedisIpInRangeAuthenticated - whether the specified IP address range represent those that are authenticated or
those that are not| Method Detail |
|---|
public boolean supportsPassive()
supportsPassive in interface LoginHandlersupportsPassive in class AbstractLoginHandlerpublic boolean supportsForceAuthentication()
supportsForceAuthentication in interface LoginHandlersupportsForceAuthentication in class AbstractLoginHandler
public void login(javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse)
httpRequest - user requesthttpResponse - response to userprotected boolean authenticate(InetAddress clientAddress)
clientAddress - the client address
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||