public static PrincipalFactory newRestfulPrincipalFactory(final RestEndpointProperties properties) {
        return new RestfulPrincipalFactory(properties);
    }
New restful principal factory .

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