Examples of generateKey()


Examples of org.apache.roller.ui.rendering.util.WeblogFeedCache.generateKey()

                // flush rendered output and close
                rendererOutput.flush();
                rendererOutput.close();
               
                // now just put it in the cache
                String key = feedCache.generateKey(feedRequest);
                feedCache.put(key, rendererOutput);
               
            } catch(Exception e) {
                // bummer, error during rendering
                log.error("Error rendering for weblog "+weblogHandle, e);
View Full Code Here

Examples of org.apache.roller.ui.rendering.util.cache.WeblogFeedCache.generateKey()

                // flush rendered output and close
                rendererOutput.flush();
                rendererOutput.close();
               
                // now just put it in the cache
                String key = feedCache.generateKey(feedRequest);
                feedCache.put(key, rendererOutput);
               
            } catch(Exception e) {
                // bummer, error during rendering
                log.error("Error rendering for weblog "+weblogHandle, e);
View Full Code Here

Examples of org.apache.roller.weblogger.ui.rendering.util.cache.WeblogFeedCache.generateKey()

                // flush rendered output and close
                rendererOutput.flush();
                rendererOutput.close();
               
                // now just put it in the cache
                String key = feedCache.generateKey(feedRequest);
                feedCache.put(key, rendererOutput);
               
            } catch(Exception e) {
                // bummer, error during rendering
                log.error("Error rendering for weblog "+weblogHandle, e);
View Full Code Here

Examples of org.bouncycastle.crypto.generators.DESedeKeyGenerator.generateKey()

                kg.init(kgp);

                /*
                 * Third, and finally, generate the key
                 */
                key = kg.generateKey();

                /*
                 * We can now output the key to the file, but first
                 * hex encode the key so that we can have a look
                 * at it with a text editor if we so desire
View Full Code Here

Examples of org.hdiv.cipher.IKeyFactory.generateKey()

  protected void initStrategies(ApplicationContext context, HttpSession httpSession) {

    if (this.config.getStrategy().equals(Strategy.CIPHER)) {
      IKeyFactory keyFactory = context.getBean(IKeyFactory.class);
      // creating encryption key
      Key key = keyFactory.generateKey();
      httpSession.setAttribute(Constants.KEY_NAME, key);

    }
  }
View Full Code Here

Examples of org.jclouds.joyent.cloudapi.v6_5.compute.options.JoyentCloudTemplateOptions.generateKey()

      templateOptions.userMetadata(ComputeServiceConstants.NODE_GROUP_KEY, group);

      String datacenter = mutableTemplate.getLocation().getId();
     
      if (!templateOptions.shouldGenerateKey().isPresent())
         templateOptions.generateKey(defaultToAutogenerateKeys);

      if (templateOptions.shouldGenerateKey().get()) {
         KeyAndPrivateKey keyPair = keyCache.getUnchecked(DatacenterAndName.fromDatacenterAndName(datacenter, namingConvention.create()
               .sharedNameForGroup(group)));
         // in order to delete the key later
View Full Code Here

Examples of org.onebusaway.users.services.validation.KeyValidationProvider.generateKey()

  public String generateKey(String providerId, String value, String... arguments) {
    KeyValidationProvider provider = _providers.get(providerId);
    if (provider == null)
      throw new IllegalStateException("no api key validation provider with id="
          + providerId);
    return providerId + "_" + provider.generateKey(value, arguments);
  }

  @Override
  public boolean isValidKey(String key, String... arguments) {
    if (_keys.contains(key))
View Full Code Here

Examples of org.paquitosoft.lml.model.annotation.PersistentEntity.generateKey()

     * @return <b>true</b> when entity's primary key is generated by the database
     */
    public static boolean isEntityPKGeneratedByDatabase(Class entityClass) {
        boolean result = true;
        PersistentEntity pr = (PersistentEntity) entityClass.getAnnotation(PersistentEntity.class);
        if (pr != null && pr.generateKey()) {
            result = false;
        }
        return result;
    }
View Full Code Here

Examples of org.radargun.stages.cache.generators.KeyGenerator.generateKey()

      BasicOperations.Cache cache = basicOperations.getCache(cacheName);
      Range myRange = Range.divideRange(numEntries, slaveState.getGroupSize(), slaveState.getIndexInGroup());
      for (int i = myRange.getStart(); i < myRange.getEnd(); ++i) {
         try {
            if (!delete) {
               cache.put(keyGenerator.generateKey(i), "value" + i + valuePostFix + "@" + cacheName);
            } else {
               cache.remove(keyGenerator.generateKey(i));
            }
         } catch (Exception e) {
            log.error("Error inserting key " + i + " into " + cacheName);
View Full Code Here

Examples of org.springframework.security.crypto.keygen.StringKeyGenerator.generateKey()

  /**
   * Get initial password - a randomly generated string.
   */
  String getInitPassword() {
    StringKeyGenerator generator = KeyGenerators.string();
    return generator.generateKey().substring(0, 8);
  }

}
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.