Interface ChainAuth
- All Superinterfaces:
AuthenticationProvider
Chain several authentication providers as if they were one. This is useful for cases where one want to authenticate across
several providers, for example, database and fallback to passwd file.
-
Method Summary
Modifier and TypeMethodDescriptionadd(AuthenticationProvider other) Appends a auth provider to the chain.static ChainAuthall()Create a Chainable Auth Provider auth provider that will resolve if all auth providers are successful.static ChainAuthany()Create a Chainable Auth Provider auth provider that will resolve on the first success.Methods inherited from interface AuthenticationProvider
authenticate
-
Method Details
-
all
Create a Chainable Auth Provider auth provider that will resolve if all auth providers are successful.- Returns:
- the auth provider
-
any
Create a Chainable Auth Provider auth provider that will resolve on the first success.- Returns:
- the auth provider
-
add
Appends a auth provider to the chain.- Parameters:
other- auth provider- Returns:
- self
-