/** {@inheritDoc} */ @Override @Nonnull protected Subject populateSubject(@Nonnull final Subject subject) { subject.getPrincipals().add(((X509Certificate) certContext.getCertificate()).getSubjectX500Principal()); subject.getPublicCredentials().add(certContext.getCertificate()); return subject; }
AuthnEventIds.NO_CREDENTIALS); return false; } else if (certContext.getCertificate() == null || !(certContext.getCertificate() instanceof X509Certificate)) { log.info("{} No X.509 certificate available within CertificateContext", getLogPrefix()); handleError(profileRequestContext, authenticationContext, AuthnEventIds.NO_CREDENTIALS,
try { final BasicX509Credential cred = new BasicX509Credential((X509Certificate) certContext.getCertificate()); if (!certContext.getIntermediates().isEmpty()) { cred.getEntityCertificateChain().add((X509Certificate) certContext.getCertificate()); for (final Certificate extra : certContext.getIntermediates()) { if (extra instanceof X509Certificate) { ((X509Certificate) certContext.getCertificate()).getSubjectX500Principal().getName()); recordSuccess(); buildAuthenticationResult(profileRequestContext, authenticationContext);