Class RemoteAddressAuthenticationHandler
- java.lang.Object
-
- org.apereo.cas.authentication.AbstractAuthenticationHandler
-
- org.apereo.cas.adaptors.generic.remote.RemoteAddressAuthenticationHandler
-
- All Implemented Interfaces:
org.apereo.cas.authentication.AuthenticationHandler,org.springframework.core.Ordered
public class RemoteAddressAuthenticationHandler extends org.apereo.cas.authentication.AbstractAuthenticationHandlerChecks if the remote address is in the range of allowed addresses.- Since:
- 3.2.1
-
-
Constructor Summary
Constructors Constructor Description RemoteAddressAuthenticationHandler(java.lang.String name, org.apereo.cas.services.ServicesManager servicesManager, org.apereo.cas.authentication.principal.PrincipalFactory principalFactory, java.lang.Integer order)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apereo.cas.authentication.AuthenticationHandlerExecutionResultauthenticate(org.apereo.cas.authentication.Credential credential)voidconfigureIpNetworkRange(java.lang.String ipAddressRange)Sets ip network range.booleansupports(java.lang.Class<? extends org.apereo.cas.authentication.Credential> clazz)booleansupports(org.apereo.cas.authentication.Credential credential)
-
-
-
Method Detail
-
authenticate
public org.apereo.cas.authentication.AuthenticationHandlerExecutionResult authenticate(org.apereo.cas.authentication.Credential credential) throws java.security.GeneralSecurityException- Throws:
java.security.GeneralSecurityException
-
supports
public boolean supports(org.apereo.cas.authentication.Credential credential)
-
supports
public boolean supports(java.lang.Class<? extends org.apereo.cas.authentication.Credential> clazz)
-
configureIpNetworkRange
public void configureIpNetworkRange(java.lang.String ipAddressRange)
Sets ip network range.- Parameters:
ipAddressRange- the IP address range that should be allowed trusted logins
-
-