public static PrincipalFactory newPrincipalFactory() {
        return new DefaultPrincipalFactory();
    }
New principal factory.

@return the principal factory
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/principal/PrincipalFactoryUtils.java