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.apereo.cas.util.NamedObject,org.springframework.core.Ordered
public class RemoteAddressAuthenticationHandler
extends org.apereo.cas.authentication.AbstractAuthenticationHandler
Checks if the remote address is in the range of allowed addresses.
- Since:
- 3.2.1
-
Field Summary
Fields inherited from interface org.apereo.cas.authentication.AuthenticationHandler
SUCCESSFUL_AUTHENTICATION_HANDLERSFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionRemoteAddressAuthenticationHandler(org.apereo.cas.configuration.model.support.generic.RemoteAuthenticationProperties props, org.apereo.cas.services.ServicesManager servicesManager, org.apereo.cas.authentication.principal.PrincipalFactory principalFactory) -
Method Summary
Modifier and TypeMethodDescriptionorg.apereo.cas.authentication.AuthenticationHandlerExecutionResultauthenticate(org.apereo.cas.authentication.Credential credential, org.apereo.cas.authentication.principal.Service service) voidconfigureIpNetworkRange(String ipAddressRange) Sets ip network range.The network netmask.The network base address.voidsetInetNetmask(InetAddress inetNetmask) The network netmask.voidsetInetNetworkRange(InetAddress inetNetworkRange) The network base address.booleanbooleansupports(org.apereo.cas.authentication.Credential credential) Methods inherited from class org.apereo.cas.authentication.AbstractAuthenticationHandler
equals, getCredentialSelectionPredicate, getName, getOrder, getPrincipalFactory, getServicesManager, getState, hashCode, setCredentialSelectionPredicate, setState
-
Constructor Details
-
RemoteAddressAuthenticationHandler
public RemoteAddressAuthenticationHandler(org.apereo.cas.configuration.model.support.generic.RemoteAuthenticationProperties props, org.apereo.cas.services.ServicesManager servicesManager, org.apereo.cas.authentication.principal.PrincipalFactory principalFactory)
-
-
Method Details
-
authenticate
public org.apereo.cas.authentication.AuthenticationHandlerExecutionResult authenticate(org.apereo.cas.authentication.Credential credential, org.apereo.cas.authentication.principal.Service service) throws Throwable - Throws:
Throwable
-
supports
public boolean supports(org.apereo.cas.authentication.Credential credential) -
supports
-
configureIpNetworkRange
Sets ip network range.- Parameters:
ipAddressRange- the IP address range that should be allowed trusted logins
-
setInetNetmask
The network netmask. -
setInetNetworkRange
The network base address. -
getInetNetmask
The network netmask. -
getInetNetworkRange
The network base address.
-