Mastering Resin

Authentication API

If you don't want to use XmlAuthenticator or JdbcAuthenticator, you can build your own authenticator. The fundamental goal of an Authenticator class is to accept a username and password and return a UserPrincipal object if the username/password matches stored combinations.

All new authenticators should extend the AbstractAuthenticator class. The specific methods that need to be implemented can be found at www.caucho.com/resin/javadoc/index.html under the com.caucho.http.security. AbstractAuthenticator entry.

Категории