public class IPAddressLoginHandler extends AbstractLoginHandler
AUTHENTICATION_ERROR_KEY, AUTHENTICATION_EXCEPTION_KEY, AUTHENTICATION_INSTANT_KEY, AUTHENTICATION_METHOD_KEY, PRINCIPAL_KEY, PRINCIPAL_NAME_KEY, SUBJECT_KEY
コンストラクタと説明 |
---|
IPAddressLoginHandler(String user,
List<IPRange> ranges,
boolean isIpInRangeAuthenticated)
Constructor.
|
修飾子とタイプ | メソッドと説明 |
---|---|
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.
|
getAuthenticationDuration, getSupportedAuthenticationMethods, setAuthenticationDuration, setAuthenticationDurection, setSupportsForceAuthentication, setSupportsPassive
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 notpublic boolean supportsPassive()
supportsPassive
インタフェース内 LoginHandler
supportsPassive
クラス内 AbstractLoginHandler
public boolean supportsForceAuthentication()
supportsForceAuthentication
インタフェース内 LoginHandler
supportsForceAuthentication
クラス内 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 addressCopyright © 2012. All Rights Reserved.