Package org.apache.catalina.realm
This package contains Realm implementations for the
various supported realm technologies for authenticating users and
identifying their associated roles. The Realm that is
associated with a web application's Context (or a hierarchically
superior Container) is used to resolve authentication and role presence
questions when a web application uses container managed security as described
in the Servlet API Specification.
The implementations share a common base class that supports basic
functionality for all of the standard Realm implementations.
-
Interface Summary Interface Description X509UsernameRetriever Provides an interface for retrieving a username from an X509Certificate. -
Class Summary Class Description AuthenticatedUserRealm This Realm is intended for use with Authenticator implementations (SSLAuthenticator,SpnegoAuthenticator) that authenticate the user as well as obtain the user credentials.CombinedRealm Realm implementation that contains one or more realms.DataSourceRealm Implementation of Realm that works with any JDBC JNDI DataSource.DigestCredentialHandlerBase Base implementation for the Tomcat providedCredentialHandlers.GenericPrincipal Generic implementation of java.security.Principal that is available for use byRealmimplementations.JAASCallbackHandler Deprecated. This class will be removed in Tomcat 12.JAASMemoryLoginModule Deprecated. This class will be removed in Tomcat 12.JAASRealm Deprecated. This class will be removed in Tomcat 12.JDBCRealm Deprecated. Will be removed in Tomcat 10 onwards.JNDIRealm Implementation of Realm that works with a directory server accessed via the Java Naming and Directory Interface (JNDI) APIs.JNDIRealm.JNDIConnection Class holding the connection to the directory plus the associated non thread safe message formats.JNDIRealm.User A protected class representing a UserLockOutRealm This class extends the CombinedRealm (hence it can wrap other Realms) to provide a user lock out mechanism if there are too many failed authentication attempts in a given period of time.LockOutRealm.LockRecord Internal record to track lock state for a user.MemoryRealm Simple implementation of Realm that reads an XML file to configure the valid users, passwords, and roles.MemoryRuleSet RuleSet for recognizing the users defined in the XML file processed byMemoryRealm.MessageDigestCredentialHandler This credential handler supports the following forms of stored passwords: encodedCredential - a hex encoded digest of the password digested using the configured digest {MD5}encodedCredential - a Base64 encoded digest of the password.NestedCredentialHandler Nested credential handler that delegates to multiple handlers.NullRealm Minimal Realm implementation that always returns null when an attempt is made to validate a username and password.RealmBase Abstract base class for Realm implementations.RealmBase.AllRolesMode Defines the mode for handling the*.rolesspecial role.SecretKeyCredentialHandler A credential handler that uses aSecretKeyFactory(PBE) to hash credentials.UserDatabaseRealm Implementation ofRealmthat is based on an implementation ofUserDatabasemade available through the JNDI resources configured for this instance of Catalina.UserDatabaseRealm.UserDatabasePrincipal Principal implementation backed by a liveUserDatabase.X509SubjectDnRetriever An X509UsernameRetriever that returns a certificate's entire SubjectDN as the username.