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

com.unbound.provider.kmip.response.MACResponse 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.response;

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

/**
 * Created by valery.osheter on 15-Dec-16.
 */
public class MACResponse extends ResponseItem
{
  public String uid = null;
  public byte[] data = null;
  public byte[] corr = null;

  public MACResponse()
  {
    super(KMIP.Operation.MAC);
  }

  @Override
  public void convert(KMIPConverter converter) throws KMIPConvertException
  {
    uid = converter.convert(KMIP.Tag.UniqueIdentifier, uid);
    data = converter.convertOptional(KMIP.Tag.MACData, data);
    corr = converter.convertOptional(KMIP.Tag.CorrelationValue, corr);
  }

  public void log()
  {
    Log.print("MACResponse").log("uid", uid).logLen("dataLen", data).end();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy