com.unbound.kmip.object.PGPKey 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.object;
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 19-Nov-15.
*/
public class PGPKey extends ManagedObject
{
Integer version = null;
public KeyBlock keyBlock = new KeyBlock();
public PGPKey()
{
super(KMIP.Tag.PGPKey);
}
public void convert(KMIPConverter converter) throws KMIPConvertException
{
int begin = converter.convertBegin(tag);
keyBlock.convert(converter);
version = converter.convert(KMIP.Tag.PGPKeyVersion, version);
converter.convertEnd(begin);
}
public int getKMIPObjectType()
{
return KMIP.ObjectType.PGPKey;
}
public void log()
{
Log log = Log.func("PGPKey").log("version", version).end();
if (keyBlock!=null) keyBlock.log();
log.leave();
}
}