Examples of KeyValue


Examples of org.hibernate.mapping.KeyValue

          mappings.addSecondPass( new JDBCCollectionSecondPass(mappings, collection) );

          collection.setElement(oneToMany);
        }
    // bind keyvalue
    KeyValue referencedKeyValue;
    String propRef = collection.getReferencedPropertyName();
    if (propRef==null) {
      referencedKeyValue = collection.getOwner().getIdentifier();
    }
    else {
View Full Code Here

Examples of org.jnode.apps.vmware.disk.IOUtils.KeyValue

    protected Header readHeader(BufferedReader reader)
        throws IOException, UnsupportedFormatException {
        Header header = new Header();

        LOG.debug("trying to read VERSION");
        KeyValue keyValue = IOUtils.readValue(reader, null, VERSION, false);
        if (!"1".equals(keyValue.getValue())) {
            throw new UnsupportedFormatException("expected version 1 (found:" +
                    keyValue.getValue() + ")");
        }
        header.setVersion(keyValue.getValue());

        keyValue = IOUtils.readValue(reader, keyValue, CID, false);
        header.setContentID(Long.valueOf(keyValue.getValue(), 16));

        keyValue = IOUtils.readValue(reader, keyValue, PARENT_CID, false);
        header.setParentContentID(Long.parseLong(keyValue.getValue(), 16));

        keyValue = IOUtils.readValue(reader, keyValue, CREATE_TYPE, true);
        header.setCreateType(CreateType.valueOf(keyValue.getValue()));

        return header;
    }
View Full Code Here

Examples of org.nfctools.mf.classic.KeyValue

    MemoryLayout memoryLayout = readerWriter.getMemoryLayout();

    for (int sectorId = 0; sectorId < memoryLayout.getSectors(); sectorId++) {
      for (byte[] key : knownKeys) {
        try {
          MfClassicAccess access = new MfClassicAccess(new KeyValue(Key.A, key), sectorId, 0,
              memoryLayout.getBlocksPerSector(sectorId));
          MfBlock[] mfBlock = readerWriter.readBlock(access);
          for (int blockId = 0; blockId < mfBlock.length; blockId++) {
            System.out.println("S" + sectorId + "|B" + blockId + " Key: " + NfcUtils.convertBinToASCII(key)
                + " " + mfBlock[blockId]);
View Full Code Here

Examples of org.opensaml.xml.signature.KeyValue

     * @param pk the native Java {@link PublicKey} to add
     * @throws IllegalArgumentException thrown if an unsupported public key
     *          type is passed
     */
    public static void addPublicKey(KeyInfo keyInfo, PublicKey pk) throws IllegalArgumentException {
        KeyValue keyValue = (KeyValue) Configuration.getBuilderFactory()
            .getBuilder(KeyValue.DEFAULT_ELEMENT_NAME)
            .buildObject(KeyValue.DEFAULT_ELEMENT_NAME);
       
        if (pk instanceof RSAPublicKey) {
            keyValue.setRSAKeyValue(buildRSAKeyValue((RSAPublicKey) pk));
        } else if (pk instanceof DSAPublicKey) {
            keyValue.setDSAKeyValue(buildDSAKeyValue((DSAPublicKey) pk));
        } else {
           throw new IllegalArgumentException("Only RSAPublicKey and DSAPublicKey are supported");
        }
       
        keyInfo.getKeyValues().add(keyValue);
View Full Code Here

Examples of parquet.format.KeyValue

        throw new RuntimeException("Unknown original type " + type);
     }
   }

  private void addKeyValue(FileMetaData fileMetaData, String key, String value) {
    KeyValue keyValue = new KeyValue(key);
    keyValue.value = value;
    fileMetaData.addToKey_value_metadata(keyValue);
  }
View Full Code Here

Examples of uk.co.thomasc.steamkit.types.keyvalue.KeyValue

    System.arraycopy(callback.getLoginKey().getBytes(), 0, loginKey, 0, callback.getLoginKey().length());

    // aes encrypt the loginkey with our session key
    final byte[] cryptedLoginKey = CryptoHelper.SymmetricEncrypt(loginKey, sessionKey);

    KeyValue authResult;

    try {
      authResult = userAuth.authenticateUser(String.valueOf(steamClient.getSteamId().convertToLong()), WebHelpers.UrlEncode(cryptedSessionKey), WebHelpers.UrlEncode(cryptedLoginKey), "POST");
    } catch (final Exception e) {
      return false;
    }

    token = authResult.get("token").asString();

    return true;
  }
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.