Examples of PasswordGenerator


Examples of net.octal.tools.base.PasswordGenerator

       
        /* The customerId is empty, which means we must create the Customer */
        if (customerId.isEmpty())
        {
            final Person customer = (Person) request.getSession().getAttribute("customer");
            PasswordGenerator generator = Generator.newPasswordGenerator(8, true, true, true, true);
            try {
                final String password = generator.generate();
                HashFunction hf = Hashing.sha1();
                HashCode hc = hf.newHasher()
                    .putString(password)
                    .hash();
                customer.setPassword(hc.toString());
View Full Code Here

Examples of org.apache.syncope.core.connid.PasswordGenerator

        LOG.debug("Preparing resource attributes for {} on resource {} with attributes {}",
                subject, resource, subject.getAttrs());

        final ConfigurableApplicationContext context = ApplicationContextProvider.getApplicationContext();
        final VirAttrCache virAttrCache = context.getBean(VirAttrCache.class);
        final PasswordGenerator passwordGenerator = context.getBean(PasswordGenerator.class);

        Set<Attribute> attributes = new HashSet<Attribute>();
        String accountId = null;

        for (AbstractMappingItem mapping : attrUtil.getMappingItems(resource, MappingPurpose.PROPAGATION)) {
View Full Code Here

Examples of org.nasutekds.server.api.PasswordGenerator

    boolean           adminActionRequired = false;
    ArrayList<Message> messages            = new ArrayList<Message>();


    // Get the existing generator if it's already enabled.
    PasswordGenerator existingGenerator =
         passwordGenerators.get(configuration.dn());


    // If the new configuration has the generator disabled, then disable it if
    // it is enabled, or do nothing if it's already disabled.
    if (! configuration.isEnabled())
    {
      if (existingGenerator != null)
      {
        DirectoryServer.deregisterPasswordGenerator(configuration.dn());

        PasswordGenerator passwordGenerator =
             passwordGenerators.remove(configuration.dn());
        if (passwordGenerator != null)
        {
          passwordGenerator.finalizePasswordGenerator();
        }
      }

      return new ConfigChangeResult(resultCode, adminActionRequired, messages);
    }
View Full Code Here

Examples of org.nasutekds.server.api.PasswordGenerator

    boolean    adminActionRequired = false;


    // See if the entry is registered as a password generator.  If so,
    // deregister it and stop the generator.
    PasswordGenerator generator = passwordGenerators.remove(configuration.dn());
    if (generator != null)
    {
      DirectoryServer.deregisterPasswordGenerator(configuration.dn());

      generator.finalizePasswordGenerator();
    }


    return new ConfigChangeResult(resultCode, adminActionRequired);
  }
View Full Code Here

Examples of org.opencustomer.framework.util.password.PasswordGenerator

                user.setOwnerUser(adminUser.getId());
                user.setOwnerGroup(adminUser.getId());
                user.setAccessUser(Access.WRITE_SYSTEM);
                user.setAccessGroup(Access.READ);
                user.setAccessGlobal(Access.READ);
                user.setPassword(SignatureUtility.getInstance().createSignature(new PasswordGenerator().generate()));
               
                new UserDAO().insert(user,adminUser);
                CalendarVO calendar = new CalendarVO();
                calendar.setUser(user);
                calendar.setAccessUser(EntityAccess.Access.WRITE_SYSTEM);
View Full Code Here

Examples of org.thechiselgroup.choosel.workbench.server.util.PasswordGenerator

            // TODO inject branding
            service = new WorkspaceSharingServiceImplementation(PMF.get(),
                    new WorkspaceSecurityManager(UserServiceFactory
                            .getUserService()),
                    UserServiceFactory.getUserService(),
                    MailServiceFactory.getMailService(), new PasswordGenerator(
                            SecureRandom.getInstance("SHA1PRNG")),
                    constructURL("acceptInvitation"), new DefaultBranding());
        }

        return service;
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.