Package org.apereo.cas.impl.calcs
Class GeoLocationAuthenticationRequestRiskCalculator
- java.lang.Object
-
- org.apereo.cas.impl.calcs.BaseAuthenticationRequestRiskCalculator
-
- org.apereo.cas.impl.calcs.GeoLocationAuthenticationRequestRiskCalculator
-
- All Implemented Interfaces:
AuthenticationRequestRiskCalculator
public class GeoLocationAuthenticationRequestRiskCalculator extends BaseAuthenticationRequestRiskCalculator
- Since:
- 5.1.0
-
-
Field Summary
-
Fields inherited from class org.apereo.cas.impl.calcs.BaseAuthenticationRequestRiskCalculator
casEventRepository, casProperties
-
Fields inherited from interface org.apereo.cas.api.AuthenticationRequestRiskCalculator
HIGHEST_RISK_SCORE, LOWEST_RISK_SCORE
-
-
Constructor Summary
Constructors Constructor Description GeoLocationAuthenticationRequestRiskCalculator(org.apereo.cas.support.events.CasEventRepository casEventRepository, org.apereo.cas.configuration.CasConfigurationProperties casProperties, org.apereo.cas.authentication.adaptive.geo.GeoLocationService geoLocationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.math.BigDecimalcalculateScore(javax.servlet.http.HttpServletRequest request, org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.services.RegisteredService service, java.util.function.Supplier<java.util.stream.Stream<? extends org.apereo.cas.support.events.dao.CasEvent>> events)Calculate score authentication risk score.-
Methods inherited from class org.apereo.cas.impl.calcs.BaseAuthenticationRequestRiskCalculator
calculate, calculateScoreBasedOnEventsCount, getCasTicketGrantingTicketCreatedEventsFor, getFinalAveragedScore
-
-
-
-
Constructor Detail
-
GeoLocationAuthenticationRequestRiskCalculator
public GeoLocationAuthenticationRequestRiskCalculator(org.apereo.cas.support.events.CasEventRepository casEventRepository, org.apereo.cas.configuration.CasConfigurationProperties casProperties, org.apereo.cas.authentication.adaptive.geo.GeoLocationService geoLocationService)
-
-
Method Detail
-
calculateScore
protected java.math.BigDecimal calculateScore(javax.servlet.http.HttpServletRequest request, org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.services.RegisteredService service, java.util.function.Supplier<java.util.stream.Stream<? extends org.apereo.cas.support.events.dao.CasEvent>> events)Description copied from class:BaseAuthenticationRequestRiskCalculatorCalculate score authentication risk score.- Overrides:
calculateScorein classBaseAuthenticationRequestRiskCalculator- Parameters:
request- the requestauthentication- the authenticationservice- the serviceevents- the events- Returns:
- the authentication risk score
-
-