use of org.apereo.cas.adaptors.x509.authentication.principal.X509SubjectPrincipalResolver in project cas by apereo.
the class X509AuthenticationConfiguration method x509SubjectPrincipalResolver.
@Bean
@RefreshScope
public PrincipalResolver x509SubjectPrincipalResolver() {
final X509Properties x509 = casProperties.getAuthn().getX509();
final X509SubjectPrincipalResolver r = new X509SubjectPrincipalResolver(x509.getPrincipalDescriptor());
r.setAttributeRepository(attributeRepository);
r.setPrincipalAttributeName(x509.getPrincipal().getPrincipalAttribute());
r.setReturnNullIfNoAttributes(x509.getPrincipal().isReturnNull());
r.setPrincipalFactory(x509PrincipalFactory());
return r;
}
Aggregations