com.unbound.provider.kmip.attribute.RNGParams 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.provider.kmip.attribute;
import com.unbound.common.Log;
import com.unbound.provider.kmip.KMIP;
import com.unbound.provider.kmip.KMIPConvertException;
import com.unbound.provider.kmip.KMIPConverter;
public class RNGParams extends Attribute
{
public Integer rngAlg = null;
public Integer cryptoAlg = null;
public Integer cryptoLen = null;
public Integer hashAlg = null;
public Integer drbgAlg = null;
public Integer curve = null;
public Integer fips186Var = null;
public Boolean predictResist = null;
public RNGParams()
{
super(KMIP.Tag.RNGParameters);
}
public void convert(KMIPConverter converter) throws KMIPConvertException
{
convertValue(converter, KMIP.tagAttributeValue(KMIP.TagType.Structure));
}
public void convertValue(KMIPConverter converter) throws KMIPConvertException
{
convertValue(converter, KMIP.Tag.CryptographicParameters);
}
public void convertValue(KMIPConverter converter, int tag) throws KMIPConvertException
{
int begin = converter.convertBegin(tag);
rngAlg = converter.convert(KMIP.Tag.RNGAlgorithm, rngAlg);
cryptoAlg = converter.convertOptional(KMIP.Tag.CryptographicAlgorithm, cryptoAlg);
cryptoLen = converter.convertOptional(KMIP.Tag.CryptographicLength, cryptoLen);
hashAlg = converter.convertOptional(KMIP.Tag.HashingAlgorithm, hashAlg);
drbgAlg = converter.convertOptional(KMIP.Tag.DRBGAlgorithm, drbgAlg);
curve = converter.convertOptional(KMIP.Tag.RecommendedCurve, curve);
fips186Var = converter.convertOptional(KMIP.Tag.FIPS186Variation, fips186Var);
predictResist = converter.convertOptional(KMIP.Tag.PredictionResistance, predictResist);
converter.convertEnd(begin);
}
public void log()
{
Log.print("RNGParams").
log("rngAlg", rngAlg).
log("cryptoAlg", cryptoAlg).
log("cryptoLen", cryptoLen).
log("hashAlg", hashAlg).
log("drbgAlg", drbgAlg).
log("curve", curve).
log("fips186Var", fips186Var).
log("predictResist", predictResist).
end();
}
}