com.unbound.provider.kmip.attribute.UsageLimits Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unbound-java-provider Show documentation
Show all versions of unbound-java-provider Show documentation
This is a collection of JAVA libraries that implement Unbound cryptographic classes for JAVA provider, PKCS11 wrapper, cryptoki, and advapi
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();
}
}