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
Realm
s).
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 AAuthenticationStrategy
implementation assists theModularRealmAuthenticator
during the log-in process in a pluggable realm (PAM) environment. -
Class Summary Class Description AbstractAuthenticationStrategy Abstract base implementation for Shiro's concreteAuthenticationStrategy
implementations.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 AuthenticationStrategy
implementation that only accepts the account data from the first successfully consulted Realm and ignores all subsequent realms.ModularRealmAuthenticator AModularRealmAuthenticator
delegates account lookups to a pluggable (modular) collection ofRealm
s. -
Exception Summary Exception Description ShortCircuitIterationException Exception thrown during the authentication process usingFirstSuccessfulStrategy
, withstopAfterFirstSuccess
set.UnsupportedTokenException Exception thrown during the authentication process when anAuthenticationToken
implementation is encountered that is not supported by one or more configuredRealm
s.