class CertificateAuthenticationProvider implements AuthenticationProvider {

    @Override
    public Authentication authenticate(Authentication authentication) {
        authentication.setAuthenticated(true);
        return authentication;
    }

}