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

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

import java.util.ArrayList;
import java.util.List;

/**
 * Created by valery.osheter on 26-Nov-15.
 */
public class GetAttributeListResponse extends ResponseItem
{
  public String uid = null;
  public List names = new ArrayList<>();

  public GetAttributeListResponse()
  {
    super(KMIP.Operation.GetAttributeList);
  }

  public void convert(KMIPConverter converter) throws KMIPConvertException
  {
    uid = converter.convert(KMIP.Tag.UniqueIdentifier, uid);
    converter.convertStrList(KMIP.Tag.AttributeName, names);
  }

  public void log()
  {
    Log log = Log.func("GetAttributeListResponse").log("uid", uid).end();
    for (String name : names) Log.print("Attribute").log("name", name);
    log.leave();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy