class CertificateIdentityParser {

    public CertificateIdentity parse(HttpServletRequest request) throws CertificateIdentityException {
        X509Certificate[] certs = (X509Certificate[]) request.getAttribute(JAVAX_CERT_ATTR);
        return this.parse(certs);
    }

    public  CertificateIdentityParser(Set<String> excludedPrincipalSet, boolean excludeRoleCertificates);

}