@Override
    public boolean supports(final Principal principal) {
        return principal instanceof SurrogatePrincipal;
    }
This is {@link SurrogateMultifactorAuthenticationPrincipalResolver}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-surrogate-core/src/main/java/org/apereo/cas/authentication/SurrogateMultifactorAuthenticationPrincipalResolver.java