Package v7db.auth

Examples of v7db.auth.AuthenticationToken


    return getProperty("auth.realm");
  }

  boolean authorise(V7File file, Request request, Method method, Auth auth) {

    AuthenticationToken tag = auth == null ? null
        : (AuthenticationToken) auth.getTag();
    switch (method) {
    case GET:
    case PROPFIND:
      return authorisation.authoriseRead(file, tag);
View Full Code Here


      return AuthenticationToken.ANONYMOUS;

    if (authentication == null)
      return null;

    AuthenticationToken auth = authentication.authenticate(user, password);

    if (auth != null)
      MDC.put("user", auth.getUsername());

    return auth;

  }
View Full Code Here

TOP

Related Classes of v7db.auth.AuthenticationToken

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.