Package com.adito.properties.impl.systemconfig

Examples of com.adito.properties.impl.systemconfig.SystemConfigKey


   
    /* (non-Javadoc)
     * @see com.adito.vfs.webdav.AbstractNetworkPlaceStore#getGuestUsername(com.adito.vfs.webdav.DAVTransaction)
     */
    public String getGuestUsername() {
        return Property.getProperty(new SystemConfigKey("cifs.guestUser"));
    }
View Full Code Here


   
    /* (non-Javadoc)
     * @see com.adito.vfs.webdav.AbstractNetworkPlaceStore#getGuestPassword(com.adito.vfs.webdav.DAVTransaction)
     */
    public char[] getGuestPassword() {
        return Property.getProperty(new SystemConfigKey("cifs.guestPassword")).toCharArray();
    }
View Full Code Here

            throw new Exception("No authentication module provided a user.");
        }

        // now add the policies associated with this scheme to the http session
        // if the property says so.
        if (Property.getPropertyBoolean(new SystemConfigKey("security.enforce.policy.resource.access"))) {
            List signOnPolicies = PolicyDatabaseFactory.getInstance().getPoliciesAttachedToResource(scheme,
                            scheme.getUser().getRealm());
            scheme.getServletSession().setAttribute("auth.scheme.policies", signOnPolicies);
        }
View Full Code Here

        if ((ContextHolder.getContext().isSetupMode() && ((navigationContext & SessionInfo.SETUP_CONSOLE_CONTEXT) != 0))
                        || (navigationContext & checkNavigationContext) != 0 || navigationContext == 0 ) {
           
            // not available if there are no granted resources.
            try {
                if (Property.getPropertyBoolean(new SystemConfigKey("security.enforce.policy.resource.access"))) {
                    if (resourcesOfTypeRequired != null) {
                        if (ResourceUtil.getGrantedResource(info, resourcesOfTypeRequired).size() == 0) {
                            return false;
                        }
                    }
View Full Code Here

    } catch (Exception ex) {
      log.warn("Failed to determine HTTP session id", ex);
    }
    addSession(logonTicket, info, request, response);
    try {
      if (Property.getPropertyBoolean(new SystemConfigKey("security.session.lockSessionOnBrowserClose"))) {
        if (log.isInfoEnabled())
          log.info("New session - will force the user to authenticate again");
        request.getSession().setAttribute(Constants.SESSION_LOCKED, user);
      }
      else {
View Full Code Here

    /**
     * Set the normal logon ticket without a domain - this works in almost
     * all circumstances
     */
    Cookie cookie = new Cookie(Constants.LOGON_TICKET, logonTicket);
    cookie.setMaxAge(Property.getPropertyInt(new SystemConfigKey("security.session.maxCookieAge")));
    cookie.setPath("/");
    cookie.setSecure(true);
    response.addCookie(cookie);
    /**
     * Set a logon ticket for the domain - this is require to make active
     * dns work.
     */
    Cookie cookie2 = new Cookie(Constants.DOMAIN_LOGON_TICKET, logonTicket);
    cookie2.setMaxAge(Property.getPropertyInt(new SystemConfigKey("security.session.maxCookieAge")));
    cookie2.setPath("/");
    // We now set the domain on the cookie so the new Active DNS feature for
    // Reverse Proxy works correctly
    String host = request.getField("Host");
    if (host != null) {
View Full Code Here

    /**
     * Set the normal logon ticket without a domain - this works in almost
     * all circumstances
     */
    Cookie cookie = new Cookie(Constants.LOGON_TICKET, logonTicket);
    cookie.setMaxAge(Property.getPropertyInt(new SystemConfigKey("security.session.maxCookieAge")));
    cookie.setPath("/");
    cookie.setSecure(true);
    response.addCookie(cookie);
    /**
     * Set a logon ticket for the domain - this is require to make active
     * dns work.
     */
    Cookie cookie2 = new Cookie(Constants.DOMAIN_LOGON_TICKET, logonTicket);
    cookie2.setMaxAge(Property.getPropertyInt(new SystemConfigKey("security.session.maxCookieAge")));
    cookie2.setPath("/");
    // We now set the domain on the cookie so the new Active DNS feature for
    // Reverse Proxy works correctly
    String host = request.getHeader("Host");
    if (host != null) {
View Full Code Here

    initialiseSession(request.getSession(), user);
    // Build the menus
    CoreUtil.resetMainNavigation(request.getSession());

    char[] pw = getPasswordFromCredentials(scheme);
    String mode = Property.getProperty(new SystemConfigKey("security.privateKeyMode"));
    if (!mode.equals("disabled")) {

      try {
        PublicKeyStore.getInstance().verifyPrivateKey(user.getPrincipalName(), pw);
      } catch (PromptForPasswordException e) {
View Full Code Here

  protected void updateMostUsersEverOnline() {

    try {
      int concurrentSessions = getActiveSessionCount() + 1;
      if (Property.getPropertyInt(new SystemConfigKey("security.maxUserCount")) < (concurrentSessions)) {
        Property.setProperty(new SystemConfigKey("security.maxUserCount"), concurrentSessions, null);
      }
    } catch (Exception ex) {
      log.error("Could not update most users online property", ex);
    }
  }
View Full Code Here

    public ActionForward checkForForward(Action action, ActionMapping mapping, HttpServletRequest request,
                        HttpServletResponse response) throws PageInterceptException {
      if (!(action instanceof PromptForPrivateKeyPassphraseDispatchAction)) {
        try {
          if ("automatic".equals(Property.getProperty(new SystemConfigKey("security.privateKeyMode")))) {
            return new ActionForward("/promptForPrivateKeyPassphraseAuto.do", true);
          } else {
            return new ActionForward("/promptForPrivateKeyPassphrase.do", true);
          }
        } catch (Exception e) {
View Full Code Here

TOP

Related Classes of com.adito.properties.impl.systemconfig.SystemConfigKey

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.