@Override
    public Principal resolve(final Principal principal) {
        val surrogate = (SurrogatePrincipal) principal;
        return surrogate.getPrimary();
    }
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