com.unbound.kmip.attribute.CapabilityInformation 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.kmip.attribute;
import com.unbound.common.Log;
import com.unbound.kmip.KMIP;
import com.unbound.kmip.KMIPConvertException;
import com.unbound.kmip.KMIPConverter;
public class CapabilityInformation
{
Boolean streamingCapability = false;
Boolean asynchronousCapability = false;
Boolean attestationCapability = false;
Boolean batchUndoCapability = false;
Boolean batchContinueCapability = false;
Integer unwrapMode = KMIP.UnwrapMode.Unspecified;
Integer destroyAction = KMIP.DestroyAction.Unspecified;
Integer shreddingAlgorithm = KMIP.ShreddingAlgorithm.Unspecified;
Integer RNGMode = KMIP.RNGMode.Unspecified;
public void convert(KMIPConverter converter) throws KMIPConvertException
{
int begin = converter.convertBegin(KMIP.Tag.CapabilityInformation);
streamingCapability = converter.convertOptional(KMIP.Tag.StreamingCapability, streamingCapability);
asynchronousCapability = converter.convertOptional(KMIP.Tag.AsynchronousCapability, asynchronousCapability);
attestationCapability = converter.convertOptional(KMIP.Tag.AttestationCapability, attestationCapability);
batchUndoCapability = converter.convertOptional(KMIP.Tag.BatchUndoCapability, batchUndoCapability);
batchContinueCapability = converter.convertOptional(KMIP.Tag.BatchContinueCapability, batchContinueCapability);
unwrapMode = converter.convertOptional(KMIP.Tag.UnwrapMode, unwrapMode);
destroyAction = converter.convertOptional(KMIP.Tag.DestroyAction, destroyAction);
shreddingAlgorithm = converter.convertOptional(KMIP.Tag.ShreddingAlgorithm, shreddingAlgorithm);
RNGMode = converter.convertOptional(KMIP.Tag.RNGMode, RNGMode);
converter.convertEnd(begin);
}
public void log()
{
Log.print("CapabilityInformation")
.log("streamingCapability", streamingCapability)
.log("asynchronousCapability", asynchronousCapability)
.log("attestationCapability", attestationCapability)
.log("batchUndoCapability", batchUndoCapability)
.log("batchContinueCapability", batchContinueCapability)
.log("unwrapMode", unwrapMode)
.log("destroyAction", destroyAction)
.log("shreddingAlgorithm", shreddingAlgorithm)
.log("RNGMode", RNGMode)
.end();
}
}