com.unbound.provider.kmip.attribute.MessageExt 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.provider.kmip.KMIP;
import com.unbound.provider.kmip.KMIPConvertException;
import com.unbound.provider.kmip.KMIPConverter;
import java.util.ArrayList;
/**
* Created by valery.osheter on 19-Nov-15.
*/
public class MessageExt
{
public String vendorId = "";
public Boolean critical = false;
public ArrayList auth = new ArrayList();
public Integer mgf = null;
public Integer pssSaltSize = null;
public byte[] iv = null;
public Integer dataLength = null;
public Boolean encDecForWrapUnwrap = null;
public void convert(KMIPConverter converter) throws KMIPConvertException
{
int begin = converter.convertBegin(KMIP.Tag.MessageExtension);
vendorId = converter.convert(KMIP.Tag.VendorIdentification, vendorId);
critical = converter.convert(KMIP.Tag.CriticalityIndicator, critical);
{
int vendorBegin = converter.convertBegin(KMIP.Tag.VendorExtension);
if (auth != null) converter.convertBufList(KMIP.Tag.DyAuth, auth);
mgf = converter.convertOptional(KMIP.Tag.DyMgfAlg, mgf);
pssSaltSize = converter.convertOptional(KMIP.Tag.DyPssSaltSize, pssSaltSize);
iv = converter.convertOptional(KMIP.Tag.IVCounterNonce, iv);
dataLength = converter.convertOptional(KMIP.Tag.DataLength, dataLength);
encDecForWrapUnwrap = converter.convertOptional(KMIP.Tag.DyEncDecForWrapUnWrap, encDecForWrapUnwrap);
converter.convertEnd(vendorBegin);
}
converter.convertEnd(begin);
}
}