Examples of KeyGenerator


Examples of org.exolab.castor.persist.spi.KeyGenerator

        buildStatement();
    }
   
    private KeyGenerator getKeyGenerator(final SQLEngine engine,
            final PersistenceFactory factory) throws MappingException {
        KeyGenerator keyGen = null;
        if (engine.getDescriptor().getExtends() == null) {
            KeyGeneratorDescriptor keyGenDesc =
                new ClassDescriptorJDONature(engine.getDescriptor()).getKeyGeneratorDescriptor();
            if (keyGenDesc != null) {
                FieldDescriptor fldDesc = engine.getDescriptor().getIdentity();
                int[] tempType = new FieldDescriptorJDONature(fldDesc).getSQLType();
                keyGen = keyGenDesc.getKeyGeneratorRegistry().getKeyGenerator(
                        factory, keyGenDesc, (tempType == null) ? 0 : tempType[0]);

                // Does the key generator support the sql type specified in the mapping?
                keyGen.supportsSqlType(tempType[0]);
            }
        }
        return keyGen;
    }
View Full Code Here

Examples of org.geoserver.flow.controller.KeyGenerator

           
            String service = keys.length >= 3 ? keys[2] : null;
            String request = keys.length >= 4 ? keys[3] : null;
            String format = keys.length >= 5 ? keys[4] : null;
            OWSRequestMatcher requestMatcher = new OWSRequestMatcher(service, request, format);
            KeyGenerator keyGenerator = buildKeyGenerator(keys, value);
            return new RateFlowController(requestMatcher, rate, interval, delay, keyGenerator);
        }
View Full Code Here

Examples of org.radargun.stages.cache.generators.KeyGenerator

      stats = null;
      return statsToReturn;
   }

   public KeyGenerator getKeyGenerator() {
      KeyGenerator keyGenerator = (KeyGenerator) slaveState.get(KeyGenerator.KEY_GENERATOR);
      if (keyGenerator == null) {
         keyGenerator = new StringKeyGenerator();
         slaveState.put(KeyGenerator.KEY_GENERATOR, keyGenerator);
      }
      return keyGenerator;
View Full Code Here

Examples of org.springframework.cache.interceptor.KeyGenerator

   * Generate a key for the specified invocation.
   * @param context the context of the invocation
   * @return the key to use
   */
  protected Object generateKey(CacheOperationInvocationContext<O> context) {
    KeyGenerator keyGenerator = context.getOperation().getKeyGenerator();
    Object key = keyGenerator.generate(context.getTarget(), context.getMethod(), context.getArgs());
    if (logger.isTraceEnabled()) {
      logger.trace("Computed cache key " + key + " for operation " + context.getOperation());
    }
    return key;
  }
View Full Code Here

Examples of tools.elgamal.KeyGenerator

  }

  public Message respond() {
    // Generate Key Pair and respond the public key, the private key is
    // stored in the context
    KeyGenerator keyGen = new KeyGenerator(bitLength);
    ChatterContext.put(getCk().getA(), PRIVATE_KEY, keyGen.getPrivateKey());
    return new PublicKeyResponse(getTo(), getFrom(), keyGen.getPublicKey());
  }
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.