Package org.apache.shiro.authc.pam
Support for PAM, or Pluggable Authentication Modules, which is
the capability to authenticate a user against multiple configurable (pluggable) modules (Shiro
calls these
Realms).
The primary class of interest here is the ModularRealmAuthenticator
which is an Authenticator implementation that coordinates authentication attempts across
one or more Realm instances.
How the ModularRealmAuthenticator actually coordinates this behavior is configurable based on your
application's needs using an injectible
AuthenticationStrategy.-
Interface Summary Interface Description AuthenticationStrategy AAuthenticationStrategyimplementation assists theModularRealmAuthenticatorduring the log-in process in a pluggable realm (PAM) environment. -
Class Summary Class Description AbstractAuthenticationStrategy Abstract base implementation for Shiro's concreteAuthenticationStrategyimplementations.AllSuccessfulStrategy AuthenticationStrategy implementation that requires all configured realms to successfully process the submitted AuthenticationToken during the log-in attempt.AtLeastOneSuccessfulStrategy AuthenticationStrategy implementation that requires at least one configured realm to successfully process the submitted AuthenticationToken during the log-in attempt.FirstSuccessfulStrategy AuthenticationStrategyimplementation that only accepts the account data from the first successfully consulted Realm and ignores all subsequent realms.ModularRealmAuthenticator AModularRealmAuthenticatordelegates account lookups to a pluggable (modular) collection ofRealms. -
Exception Summary Exception Description ShortCircuitIterationException Exception thrown during the authentication process usingFirstSuccessfulStrategy, withstopAfterFirstSuccessset.UnsupportedTokenException Exception thrown during the authentication process when anAuthenticationTokenimplementation is encountered that is not supported by one or more configuredRealms.