All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.unbound.provider.kmip.request.LocateRequest Maven / Gradle / Ivy

Go to download

This is a collection of JAVA libraries that implement Unbound cryptographic classes for JAVA provider, PKCS11 wrapper, cryptoki, and advapi

There is a newer version: 42761
Show newest version
package com.unbound.provider.kmip.request;

import com.unbound.common.Log;
import com.unbound.provider.kmip.KMIP;
import com.unbound.provider.kmip.KMIPConvertException;
import com.unbound.provider.kmip.KMIPConverter;
import com.unbound.provider.kmip.attribute.Attributes;

/**
 * Created by valery.osheter on 25-Nov-15.
 */
public class LocateRequest extends RequestItem
{

  public Integer maxItems = null;
  public Integer offsetItems = null;
  public Attributes attrs = new Attributes();

  public Integer storageStatusMask = null;
  public Integer objectGroupMember = null;

  public LocateRequest()
  {
    super(KMIP.Operation.Locate);
  }

  public void convert(KMIPConverter converter) throws KMIPConvertException
  {
    maxItems = converter.convertOptional(KMIP.Tag.MaximumItems, maxItems);
    offsetItems = converter.convertOptional(KMIP.Tag.OffsetItems, offsetItems);
    storageStatusMask = converter.convertOptional(KMIP.Tag.StorageStatusMask, storageStatusMask);
    objectGroupMember = converter.convertOptional(KMIP.Tag.ObjectGroupMember, objectGroupMember);
    attrs.convert(converter);
  }

  public void log()
  {
    Log log = Log.func("LocateRequest").
      log("maxItems", maxItems).
      log("offsetItems", offsetItems).
      log("storageStatusMask", storageStatusMask).
      log("objectGroupMember", objectGroupMember).
    end();
    attrs.log();
    log.leave();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy