public class DigestAuthHandler extends Object implements AuthenticationHandler, Handler<RoutingContext>
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<DigestAuthHandler> |
__TYPE_ARG |
static long |
DEFAULT_NONCE_EXPIRE_TIMEOUT
The default nonce expire timeout to use in milliseconds.
|
Constructor and Description |
---|
DigestAuthHandler(DigestAuthHandler delegate) |
DigestAuthHandler(Object delegate) |
Modifier and Type | Method and Description |
---|---|
String |
authenticateHeader(RoutingContext context)
Returns
|
static DigestAuthHandler |
create(Vertx vertx,
HtdigestAuth authProvider)
Create a digest auth handler
|
static DigestAuthHandler |
create(Vertx vertx,
HtdigestAuth authProvider,
long nonceExpireTimeout)
Create a digest auth handler, specifying the expire timeout for nonces.
|
boolean |
equals(Object o) |
DigestAuthHandler |
getDelegate() |
void |
handle(RoutingContext event)
Something has happened, so handle it.
|
int |
hashCode() |
static DigestAuthHandler |
newInstance(DigestAuthHandler arg) |
void |
parseCredentials(RoutingContext context)
Parses the credentials from the request into a JsonObject.
|
void |
parseCredentials(RoutingContext context,
Handler<AsyncResult<Credentials>> handler)
Parses the credentials from the request into a JsonObject.
|
void |
postAuthentication(RoutingContext ctx)
This method is called to perform any post authentication tasks, such as redirects.
|
Single<Credentials> |
rxParseCredentials(RoutingContext context)
Parses the credentials from the request into a JsonObject.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
newInstance
public static final io.vertx.lang.rx.TypeArg<DigestAuthHandler> __TYPE_ARG
public static final long DEFAULT_NONCE_EXPIRE_TIMEOUT
public DigestAuthHandler(DigestAuthHandler delegate)
public DigestAuthHandler(Object delegate)
public DigestAuthHandler getDelegate()
getDelegate
in interface AuthenticationHandler
public void handle(RoutingContext event)
handle
in interface Handler<RoutingContext>
handle
in interface AuthenticationHandler
event
- the event to handlepublic String authenticateHeader(RoutingContext context)
authenticateHeader
in interface AuthenticationHandler
context
- public void postAuthentication(RoutingContext ctx)
postAuthentication
in interface AuthenticationHandler
ctx
- the routing contextpublic static DigestAuthHandler create(Vertx vertx, HtdigestAuth authProvider)
vertx
- the vertx instanceauthProvider
- the auth provider to usepublic static DigestAuthHandler create(Vertx vertx, HtdigestAuth authProvider, long nonceExpireTimeout)
vertx
- the vertx instanceauthProvider
- the auth service to usenonceExpireTimeout
- the nonce expire timeout in milliseconds.public void parseCredentials(RoutingContext context, Handler<AsyncResult<Credentials>> handler)
context
- the routing contexthandler
- the handler to be called once the information is available.public void parseCredentials(RoutingContext context)
context
- the routing contextpublic Single<Credentials> rxParseCredentials(RoutingContext context)
context
- the routing contextpublic static DigestAuthHandler newInstance(DigestAuthHandler arg)
Copyright © 2021 Eclipse. All rights reserved.