Package io.vertx.mutiny.ext.web.handler
Class DigestAuthHandler
java.lang.Object
io.vertx.mutiny.ext.web.handler.DigestAuthHandler
- All Implemented Interfaces:
MutinyDelegate,io.vertx.core.Handler<RoutingContext>,AuthenticationHandler,Consumer<RoutingContext>
public class DigestAuthHandler
extends Object
implements AuthenticationHandler, io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>, MutinyDelegate
An auth handler that provides HTTP Basic Authentication support.
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Paulo Lopes
- See Also:
-
DigestAuthHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vertx.mutiny.ext.web.handler.AuthenticationHandler
AuthenticationHandler.AuthenticationHandlerImpl -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TypeArg<DigestAuthHandler>static final longThe default nonce expire timeout to use in milliseconds. -
Constructor Summary
ConstructorsConstructorDescriptionDigestAuthHandler(io.vertx.ext.web.handler.DigestAuthHandler delegate) Create a new instance ofDigestAuthHandlerdelegating to the given (non-null) instance ofDigestAuthHandler.DigestAuthHandler(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(RoutingContext item) Handle an item.static DigestAuthHandlercreate(Vertx vertx, HtdigestAuth authProvider) Create a digest auth handlerstatic DigestAuthHandlercreate(Vertx vertx, HtdigestAuth authProvider, long nonceExpireTimeout) Create a digest auth handler, specifying the expire timeout for nonces.booleanio.vertx.ext.web.handler.DigestAuthHandlerGet the delegate instance.voidhandle(RoutingContext item) Handle an item.inthashCode()static DigestAuthHandlernewInstance(io.vertx.ext.web.handler.DigestAuthHandler delegate) Creates a new instance of theDigestAuthHandler.toString()
-
Field Details
-
DEFAULT_NONCE_EXPIRE_TIMEOUT
public static final long DEFAULT_NONCE_EXPIRE_TIMEOUTThe default nonce expire timeout to use in milliseconds.- See Also:
-
__TYPE_ARG
-
-
Constructor Details
-
DigestAuthHandler
public DigestAuthHandler(io.vertx.ext.web.handler.DigestAuthHandler delegate) Create a new instance ofDigestAuthHandlerdelegating to the given (non-null) instance ofDigestAuthHandler. -
DigestAuthHandler
-
-
Method Details
-
accept
Handle an item. This method is generated from theoriginalmethod."- Specified by:
acceptin interfaceAuthenticationHandler- Specified by:
acceptin interfaceConsumer<RoutingContext>
-
handle
Handle an item. This method is generated from theoriginalmethod."- Specified by:
handlein interfaceAuthenticationHandler- Specified by:
handlein interfaceio.vertx.core.Handler<RoutingContext>
-
getDelegate
public io.vertx.ext.web.handler.DigestAuthHandler getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceAuthenticationHandler- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
create
Create a digest auth handler- Parameters:
vertx- the vertx instanceauthProvider- the auth provider to use- Returns:
- the auth handler
-
create
public static DigestAuthHandler create(Vertx vertx, HtdigestAuth authProvider, long nonceExpireTimeout) Create a digest auth handler, specifying the expire timeout for nonces.- Parameters:
vertx- the vertx instanceauthProvider- the auth service to usenonceExpireTimeout- the nonce expire timeout in milliseconds.- Returns:
- the auth handler
-
newInstance
Creates a new instance of theDigestAuthHandler. -
hashCode
public int hashCode() -
equals
-
toString
-