Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.acegisecurity.providers.x509
Interface X509AuthoritiesPopulator  view X509AuthoritiesPopulator download X509AuthoritiesPopulator.java


public interface X509AuthoritiesPopulator

Populates the UserDetails associated with the X.509 certificate presented by a client.

Although the certificate will already have been validated by the web container, implementations may choose to perform additional application-specific checks on the certificate content here. If an implementation chooses to reject the certificate, it should throw a org.acegisecurity.BadCredentialsException.


Method Summary
 org.acegisecurity.userdetails.UserDetails getUserDetails(java.security.cert.X509Certificate userCertificate)
          Obtains the granted authorities for the specified user.
 

Method Detail

getUserDetails

public org.acegisecurity.userdetails.UserDetails getUserDetails(java.security.cert.X509Certificate userCertificate)
                                                         throws org.acegisecurity.AuthenticationException
Obtains the granted authorities for the specified user.

May throw any AuthenticationException or return null if the authorities are unavailable.