Codota Logo
JWTAuthHandler
Code IndexAdd Codota to your IDE (free)

How to use
JWTAuthHandler
in
io.vertx.ext.web.handler

Best Java code snippets using io.vertx.ext.web.handler.JWTAuthHandler (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: vert-x3/vertx-examples

router.route("/api/*").handler(JWTAuthHandler.create(jwt, "/api/newToken"));
origin: vert-x3/vertx-examples

router.route("/api/protected").handler(JWTAuthHandler.create(jwt));
router.route("/api/protected/defcon1").handler(JWTAuthHandler.create(jwt).addAuthority("defcon1"));
router.route("/api/protected/defcon2").handler(JWTAuthHandler.create(jwt).addAuthority("defcon2"));
router.route("/api/protected/defcon3").handler(JWTAuthHandler.create(jwt).addAuthority("defcon3"));
origin: io.vertx/vertx-lang-groovy

 public static void parseCredentials(io.vertx.ext.web.handler.JWTAuthHandler j_receiver, io.vertx.ext.web.RoutingContext context, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.util.Map<String, Object>>> handler) {
  j_receiver.parseCredentials(context,
   handler != null ? new io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>>() {
   public void handle(io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject> ar) {
    handler.handle(ar.map(event -> io.vertx.core.impl.ConversionHelper.fromJsonObject(event)));
   }
  } : null);
 }
}
origin: io.vertx/vertx-rx-java

/**
 * Add a required authority for this auth handler
 * @param authority the authority
 * @return a reference to this, so the API can be used fluently
 */
public io.vertx.rxjava.ext.web.handler.AuthHandler addAuthority(String authority) { 
 delegate.addAuthority(authority);
 return this;
}
origin: io.vertx/vertx-rx-java

/**
 * Authorizes the given user against all added authorities.
 * @param user a user.
 * @param handler the handler for the result.
 */
public void authorize(io.vertx.rxjava.ext.auth.User user, Handler<AsyncResult<Void>> handler) { 
 delegate.authorize(user.getDelegate(), handler);
}
origin: io.vertx/vertx-rx-java

/**
 * Set the audience list
 * @param audience the audience list
 * @return a reference to this for fluency
 */
public io.vertx.rxjava.ext.web.handler.JWTAuthHandler setAudience(List<String> audience) { 
 delegate.setAudience(audience);
 return this;
}
origin: io.vertx/vertx-rx-java

/**
 * Set whether expiration is ignored
 * @param ignoreExpiration whether expiration is ignored
 * @return a reference to this for fluency
 */
public io.vertx.rxjava.ext.web.handler.JWTAuthHandler setIgnoreExpiration(boolean ignoreExpiration) { 
 delegate.setIgnoreExpiration(ignoreExpiration);
 return this;
}
origin: vert-x3/vertx-rx

/**
 * Something has happened, so handle it.
 * @param event the event to handle
 */
public void handle(io.vertx.rxjava.ext.web.RoutingContext event) { 
 delegate.handle(event.getDelegate());
}
origin: io.vertx/vertx-rx-java

/**
 * Add a set of required authorities for this auth handler
 * @param authorities the set of authorities
 * @return a reference to this, so the API can be used fluently
 */
public io.vertx.rxjava.ext.web.handler.AuthHandler addAuthorities(Set<String> authorities) { 
 delegate.addAuthorities(authorities);
 return this;
}
origin: io.vertx/vertx-rx-java

/**
 * Set the issuer
 * @param issuer the issuer
 * @return a reference to this for fluency
 */
public io.vertx.rxjava.ext.web.handler.JWTAuthHandler setIssuer(String issuer) { 
 delegate.setIssuer(issuer);
 return this;
}
origin: vert-x3/vertx-rx

/**
 * 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
 * @param handler the handler to be called once the information is available.
 */
public void parseCredentials(io.vertx.rxjava.ext.web.RoutingContext context, Handler<AsyncResult<JsonObject>> handler) { 
 delegate.parseCredentials(context.getDelegate(), handler);
}
origin: vert-x3/vertx-rx

/**
 * Add a required authority for this auth handler
 * @param authority the authority
 * @return a reference to this, so the API can be used fluently
 */
public io.vertx.rxjava.ext.web.handler.AuthHandler addAuthority(String authority) { 
 delegate.addAuthority(authority);
 return this;
}
origin: vert-x3/vertx-rx

/**
 * Authorizes the given user against all added authorities.
 * @param user a user.
 * @param handler the handler for the result.
 */
public void authorize(io.vertx.rxjava.ext.auth.User user, Handler<AsyncResult<Void>> handler) { 
 delegate.authorize(user.getDelegate(), handler);
}
origin: vert-x3/vertx-rx

/**
 * Set the audience list
 * @param audience the audience list
 * @return a reference to this for fluency
 */
public io.vertx.rxjava.ext.web.handler.JWTAuthHandler setAudience(List<String> audience) { 
 delegate.setAudience(audience);
 return this;
}
origin: vert-x3/vertx-rx

/**
 * Set whether expiration is ignored
 * @param ignoreExpiration whether expiration is ignored
 * @return a reference to this for fluency
 */
public io.vertx.rxjava.ext.web.handler.JWTAuthHandler setIgnoreExpiration(boolean ignoreExpiration) { 
 delegate.setIgnoreExpiration(ignoreExpiration);
 return this;
}
origin: io.vertx/vertx-rx-java

/**
 * Something has happened, so handle it.
 * @param event the event to handle
 */
public void handle(io.vertx.rxjava.ext.web.RoutingContext event) { 
 delegate.handle(event.getDelegate());
}
origin: vert-x3/vertx-rx

/**
 * Add a set of required authorities for this auth handler
 * @param authorities the set of authorities
 * @return a reference to this, so the API can be used fluently
 */
public io.vertx.rxjava.ext.web.handler.AuthHandler addAuthorities(Set<String> authorities) { 
 delegate.addAuthorities(authorities);
 return this;
}
origin: vert-x3/vertx-rx

/**
 * Set the issuer
 * @param issuer the issuer
 * @return a reference to this for fluency
 */
public io.vertx.rxjava.ext.web.handler.JWTAuthHandler setIssuer(String issuer) { 
 delegate.setIssuer(issuer);
 return this;
}
origin: vert-x3/vertx-examples

});
router.route("/api/protected*").handler(JWTAuthHandler.create(jwt));
origin: io.vertx/vertx-rx-java

/**
 * 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
 * @param handler the handler to be called once the information is available.
 */
public void parseCredentials(io.vertx.rxjava.ext.web.RoutingContext context, Handler<AsyncResult<JsonObject>> handler) { 
 delegate.parseCredentials(context.getDelegate(), handler);
}
io.vertx.ext.web.handlerJWTAuthHandler

Javadoc

An auth handler that provides JWT Authentication support.

Most used methods

  • create
    Create a JWT auth handler
  • addAuthority
  • parseCredentials
  • addAuthorities
  • authorize
  • handle
  • setAudience
    Set the audience list
  • setIgnoreExpiration
    Set whether expiration is ignored
  • setIssuer
    Set the issuer

Popular in Java

  • Start an intent from android
  • onRequestPermissionsResult (Fragment)
  • addToBackStack (FragmentTransaction)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now