Class ChainAuth
java.lang.Object
io.vertx.reactivex.ext.auth.authentication.AuthenticationProvider
io.vertx.reactivex.ext.auth.ChainAuth
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
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.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.booleaninthashCode()static ChainAuthnewInstance(ChainAuth arg) toString()Methods inherited from class AuthenticationProvider
authenticate, newInstance, rxAuthenticate
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
ChainAuth
-
ChainAuth
-
-
Method Details
-
toString
- Overrides:
toStringin classAuthenticationProvider
-
equals
- Overrides:
equalsin classAuthenticationProvider
-
hashCode
public int hashCode()- Overrides:
hashCodein classAuthenticationProvider
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate- Overrides:
getDelegatein classAuthenticationProvider
-
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
-
newInstance
-