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

com.unbound.provider.kmip.attribute.UsageLimits 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.attribute;

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

public class UsageLimits extends Attribute
{
  public long total = 0;
  public Long count = null;
  public int unit = 0;

  public UsageLimits()
  {
    super(KMIP.Tag.UsageLimits);
  }

  public void convert(KMIPConverter converter) throws KMIPConvertException
  {
    int begin = converter.convertBegin(KMIP.tagAttributeValue(KMIP.TagType.Structure));
    total = converter.convert(KMIP.Tag.UsageLimitsTotal, total);
    count = converter.convertOptional(KMIP.Tag.UsageLimitsCount, count);
    unit = converter.convert(KMIP.Tag.UsageLimitsUnit, unit);
    converter.convertEnd(begin);
  }

  public void log()
  {
    Log.print("UsageLimits").log("total", total).log("unit", unit).log("count", count).end();
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy