Examples of AllPrintableCharPasswordGenerator


Examples of org.ejbca.util.passgen.AllPrintableCharPasswordGenerator

    EjbcaWSHelper ejbhelper = new EjbcaWSHelper(wsContext, authorizationSession, caAdminSession, certificateProfileSession, certificateStoreSession, endEntityProfileSession, hardTokenSession, userAdminSession);
    Admin admin = ejbhelper.getAdmin();

    // If password is empty we can generate a big random one to use instead
    if (StringUtils.isEmpty(password)) {
      AllPrintableCharPasswordGenerator gen = new AllPrintableCharPasswordGenerator();
      password = gen.getNewPassword(15, 20);
      log.debug("Using a long random password");
    }
    // get and old status that we can remember so we can reset status if this fails in the last step
    int olduserStatus = UserDataConstants.STATUS_GENERATED;
        final IPatternLogger logger = TransactionLogger.getPatternLogger();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.