Class RestEndpointMultifactorAuthenticationTrigger
- java.lang.Object
-
- org.apereo.cas.authentication.mfa.trigger.RestEndpointMultifactorAuthenticationTrigger
-
- All Implemented Interfaces:
org.apereo.cas.authentication.MultifactorAuthenticationTrigger,org.springframework.core.Ordered
public class RestEndpointMultifactorAuthenticationTrigger extends java.lang.Object implements org.apereo.cas.authentication.MultifactorAuthenticationTrigger- Since:
- 6.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRestEndpointMultifactorAuthenticationTrigger.RestEndpointEntityThe Rest endpoint entity passed along to the API.
-
Constructor Summary
Constructors Constructor Description RestEndpointMultifactorAuthenticationTrigger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringcallRestEndpointForMultifactor(org.apereo.cas.authentication.principal.Principal principal, org.apereo.cas.authentication.principal.Service resolvedService)Call rest endpoint for multifactor.java.util.Optional<org.apereo.cas.authentication.MultifactorAuthenticationProvider>isActivated(org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.services.RegisteredService registeredService, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse response, org.apereo.cas.authentication.principal.Service service)
-
-
-
Method Detail
-
isActivated
public java.util.Optional<org.apereo.cas.authentication.MultifactorAuthenticationProvider> isActivated(org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.services.RegisteredService registeredService, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse response, org.apereo.cas.authentication.principal.Service service)- Specified by:
isActivatedin interfaceorg.apereo.cas.authentication.MultifactorAuthenticationTrigger
-
callRestEndpointForMultifactor
protected java.lang.String callRestEndpointForMultifactor(org.apereo.cas.authentication.principal.Principal principal, org.apereo.cas.authentication.principal.Service resolvedService)Call rest endpoint for multifactor.- Parameters:
principal- the principalresolvedService- the resolved service- Returns:
- return the rest response, typically the mfa id.
-
-