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