/** * Parses the credentials from the request into a JsonObject. The implementation should * be able to extract the required info for the auth provider in the format the provider * expects. * @param context the routing context * @return * @deprecated use {@link #rxParseCredentials} instead */ @Deprecated() public Observable<JsonObject> parseCredentialsObservable(io.vertx.rxjava.ext.web.RoutingContext context) { io.vertx.rx.java.ObservableFuture<JsonObject> handler = io.vertx.rx.java.RxHelper.observableFuture(); parseCredentials(context, handler.toHandler()); return handler; }
/** * Parses the credentials from the request into a JsonObject. The implementation should * be able to extract the required info for the auth provider in the format the provider * expects. * @param context the routing context * @return */ public Single<JsonObject> rxParseCredentials(io.vertx.rxjava.ext.web.RoutingContext context) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { parseCredentials(context, fut); })); }
/** * Parses the credentials from the request into a JsonObject. The implementation should * be able to extract the required info for the auth provider in the format the provider * expects. * @param context the routing context * @return */ public Single<JsonObject> rxParseCredentials(io.vertx.rxjava.ext.web.RoutingContext context) { return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> { parseCredentials(context, fut); })); }