Code example for X509Certificate

Methods: getSubjectX500Principal

0
        if (entityCert == null) {
            log.info("X509Credential did not contain an entity certificate, does not satisfy criteria");
            return Boolean.FALSE;
        } 
 
        Boolean result = entityCert.getSubjectX500Principal().equals(subjectName);
        return result;
    } 
 
} 
Experience pair programming with AI  Get Codota for Java