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

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

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

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

  public MACVerifyResponse()
  {
    super(KMIP.Operation.MACVerify);
  }

  public void convert(KMIPConverter converter) throws KMIPConvertException
  {
    uid = converter.convert(KMIP.Tag.UniqueIdentifier, uid);
    validityIndicator = converter.convert(KMIP.Tag.ValidityIndicator, validityIndicator);
    corr = converter.convertOptional(KMIP.Tag.CorrelationValue, corr);
  }

  public void log()
  {
    Log.print("MACVerifyResponse").log("uid", uid).log("validityIndicator", validityIndicator).end();
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy