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_HANDLERS

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
    RemoteAddressAuthenticationHandler(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 Type
    Method
    Description
    org.apereo.cas.authentication.AuthenticationHandlerExecutionResult
    authenticate(org.apereo.cas.authentication.Credential credential, org.apereo.cas.authentication.principal.Service service)
     
    void
    Sets ip network range.
    The network netmask.
    The network base address.
    void
    The network netmask.
    void
    setInetNetworkRange(InetAddress inetNetworkRange)
    The network base address.
    boolean
    supports(Class<? extends org.apereo.cas.authentication.Credential> clazz)
     
    boolean
    supports(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

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait
  • 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

      public boolean supports(Class<? extends org.apereo.cas.authentication.Credential> clazz)
    • configureIpNetworkRange

      public void configureIpNetworkRange(String ipAddressRange)
      Sets ip network range.
      Parameters:
      ipAddressRange - the IP address range that should be allowed trusted logins
    • setInetNetmask

      public void setInetNetmask(InetAddress inetNetmask)
      The network netmask.
    • setInetNetworkRange

      public void setInetNetworkRange(InetAddress inetNetworkRange)
      The network base address.
    • getInetNetmask

      public InetAddress getInetNetmask()
      The network netmask.
    • getInetNetworkRange

      public InetAddress getInetNetworkRange()
      The network base address.