public final class OKVTTLV
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_NAME |
static java.util.logging.Logger |
logger |
Constructor and Description |
---|
OKVTTLV() |
OKVTTLV(OKVTag tag) |
OKVTTLV(OKVTag tag,
java.lang.Object value) |
OKVTTLV(OKVTag tag,
java.lang.Object value,
int length) |
OKVTTLV(OKVTag tag,
OKVType typ,
int length,
java.lang.Object value,
OKVTTLV parent) |
OKVTTLV(OKVTag tag,
OKVType typ,
java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
void |
addBatchItemListToTTLVMessage(java.util.List<OKVTTLV> batchItemList)
Add the list of batch items to TTLV.
|
void |
addBatchITemToTTLVMessage(OKVTTLV batch_item)
Add the batch item to TTLV.
|
void |
addChild(OKVTTLV inOKVTTLV)
Add a child TTLV.
|
void |
addToBatchItem(OKVTTLV ttlv_elem)
Add the given TTLV element to batch item.
|
void |
addToTTLVStruct(OKVTTLV ttlv_elem)
Add the given TTLV element to the current TTLV as parent.
|
static OKVTTLV |
createBatchItemStructForOperation(OKVTagEnum operation,
byte[] batchItem)
Create KMIP TTLV with tags batch item, operation and
unique batch item id.
|
static OKVTTLV |
createBatchResultTTLV(OKVTag tag,
java.lang.Object obj)
Create a batch result TTLV with given tag and value.
|
static OKVTTLV |
createTTLV(OKVTag tag,
java.lang.Object obj)
Create a TTLV with the given tag and value.
|
static OKVTTLV |
createTTLV(OKVTag tag,
java.lang.Object obj,
int length)
Create a TTLV with given tag, value and length.
|
static OKVTTLV |
createTTLV(OKVTag tag,
OKVType typ,
java.lang.Object obj)
Create TTLV with given tag, type and value.
|
static OKVTTLV |
createTTLV(OKVTag tag,
OKVType typ,
java.lang.Object obj,
int length)
Create a TTLV of given tag, type, length and value.
|
static OKVTTLV |
createTTLVinStruct(OKVTag tag,
java.lang.Object obj,
int length,
OKVTTLV parent)
Create a child TTLV with given tag, length and value under the
given parent.
|
static OKVTTLV |
createTTLVinStruct(OKVTag tag,
java.lang.Object obj,
OKVTTLV parent)
Create a TTLV with given tag and value under the given parent TTLV.
|
static OKVTTLV |
createTTLVinStruct(OKVTag tag,
OKVType typ,
java.lang.Object obj,
int length,
OKVTTLV parent)
Create a child TTLV with the given tag, type, value and length.
|
static OKVTTLV |
createTTLVinStruct(OKVTag tag,
OKVType typ,
java.lang.Object obj,
OKVTTLV parent)
Create a child TTLV with given tag, type and value under the
given parent TTLV.
|
static OKVTTLV |
createTTLVMessage()
Create the TTLV Request Message with request message, request header,
protocol version, protocol version major, protocol version minor,
maximum response size and batch count.
|
static OKVTTLV |
createTTLVStruct(OKVTag tag)
Create a TTLV with given tag.
|
static OKVTTLV |
createTTLVStructinStruct(OKVTag tag,
OKVTTLV parent)
Create a TTLV given the tag under the given parent TTLV.
|
java.util.List<OKVTTLV> |
getChildren()
Get the list of child TTLV of the current TTLV.
|
OKVTag |
getKmipTag()
Get the KMIP tag of the TTLV.
|
OKVTTLV |
getParent()
Get the parent TTLV.
|
OKVTTLV |
getTTLVinTTLV(OKVTag tag)
Get the TTLV of given KMIP tag in the current TTLV.
|
static boolean |
isCustomAttribute(java.lang.String attributeName)
Given an OKVTTLV attribute name, identify if its a custom attribute.
|
OKVTTLV |
okvAddAttributeObject(OKVTag attr,
int attrIndex)
API to add a child attribute object to current TTLV object.
|
OKVTTLV |
okvAttrAddActivationDate(java.util.Date date)
API to add an activation date attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddArchiveDate(java.util.Date date)
API to add an archive date attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddCertLen(int certLength)
API to add a certificate length attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddCertType(OKVTagEnum certType)
API to add a certificate type attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddCompromiseDate(java.util.Date date)
API to add a compromise date attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddCompromiseOccurrenceDate(java.util.Date date)
API to add a compromise occurrence date attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddContactInfo(java.lang.String contact)
API to add a contact information attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddCryptoAlgo(OKVTagEnum cryptoAlg)
API to add a cryptographic algorithm attribute
to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddCryptoDomainParams(java.lang.Integer qLength,
OKVTagEnum recommendedCurve)
API to add cryptographic domain parameters attribute to an
OKVTTLV object.
|
OKVTTLV |
okvAttrAddCryptoLen(int length)
API to add a cryptographic length attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddCryptoParams(OKVTagEnum blockCipherMode,
OKVTagEnum paddingMethod,
OKVTagEnum hashingAlgo,
OKVTagEnum keyRoleType)
API to add a cryptographic parameter attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddCryptoUsageMask(int cryptoUsageMask)
API to add a cryptographic usage mask attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddDeactivationDate(java.util.Date date)
API to add a de-activation date attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddDestroyDate(java.util.Date date)
API to add a destroy date attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddDigest(OKVTagEnum hashAlg,
OKVTagEnum keyFormatType,
byte[] digest)
API to add digest attribute parameters to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddDigitalSignAlgo(OKVTagEnum digitalSignAlg)
API to add a digital signature algorithm attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddExtractable(boolean extractable)
API to add an extractable attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddFresh(boolean fresh)
API to add a fresh attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddInitialDate(java.util.Date date)
API to add an initial date attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddLastChangeDate(java.util.Date date)
API to add a last change date attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddLeaseTime(int leaseTime)
API to add a lease time attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddLink(OKVTagEnum type,
java.lang.String objId)
API to add a link attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddName(java.lang.String name,
OKVTagEnum nameType)
API to add a name attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddNeverExtractable(boolean neverExtractable)
API to add a never extractable attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddObjectGroup(java.lang.String objectGroup)
API to add an object group attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddObjectType(OKVTagEnum objType)
API to add an object type attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddProcessStartDate(java.util.Date date)
API to add a process start date attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddProtectStopDate(java.util.Date date)
API to add a protect stop date attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddRevocationReason(OKVTagEnum code,
java.lang.String msg)
API to add revocation reason attribute parameters to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddState(OKVTagEnum state)
API to add a state attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddUniqueId(java.lang.String uid)
API to add a unique identifier attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddUsageLimits(long total,
long count,
OKVTagEnum unit)
API to add usage limit attribute parameters to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddX509CertId(byte[] issuer,
byte[] serialNo)
API to add an issuer and serial number which forms the
X.509 Certificate Identifier attribute to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddX509CertIss(byte[] dn)
API to add an X.509 Certificate Issuer distinguished name attribute
to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddX509CertIssAltName(byte[] altName)
API to add an X.509 Certificate Issuer Alternate name
to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddX509CertSubj(byte[] dn)
API to add an X.509 Certificate Subject distinguished name attribute
to an OKVTTLV object.
|
OKVTTLV |
okvAttrAddX509CertSubjAltName(byte[] altName)
API to add an X.509 Certificate Subject Alternate name attribute
to an OKVTTLV object.
|
java.util.Date |
okvAttrGetActivationDate()
API to get the activation date attribute value from an OKVTTLV object.
|
java.util.Date |
okvAttrGetArchiveDate()
API to get the archive date attribute value from an OKVTTLV object.
|
java.lang.Integer |
okvAttrGetCertLen()
API to get the certificate length attribute value from an OKVTTLV object.
|
OKVTagEnum |
okvAttrGetCertType()
API to get the certificate type attribute value from an OKVTTLV object.
|
java.util.Date |
okvAttrGetCompromiseDate()
API to get the compromise date attribute value from an OKVTTLV object.
|
java.util.Date |
okvAttrGetCompromiseOccurrenceDate()
API to get the compromise occurrence date attribute
value from an OKVTTLV object.
|
java.lang.String |
okvAttrGetContactInfo()
API to get the contact information attribute value
from an OKVTTLV object.
|
OKVTagEnum |
okvAttrGetCryptoAlgo()
API to get cryptographic algorithm attribute value
from an OKVTTLV object.
|
OKVCryptoDomainParams |
okvAttrGetCryptoDomainParams()
API to get the cryptographic domain parameters values
from an OKVTTLV object.
|
java.lang.Integer |
okvAttrGetCryptoLen()
API to get the cryptographic length attribute value
from an OKVTTLV object.
|
OKVCryptoParams |
okvAttrGetCryptoParams(int elemIndex)
API to get the cryptographic parameter values from an OKVTTLV object.
|
java.lang.Integer |
okvAttrGetCryptoUsageMask()
API to get the cryptographic usage mask attribute value
from an OKVTTLV object.
|
java.util.Date |
okvAttrGetDeactivationDate()
API to get the de-activation date attribute value
from an OKVTTLV object.
|
java.util.Date |
okvAttrGetDestroyDate()
API to get the destroy date attribute value from an OKVTTLV object.
|
OKVDigest |
okvAttrGetDigest(int elemIndex)
API to get the digest attribute values from an OKVTTLV object.
|
OKVTagEnum |
okvAttrGetDigitalSignAlgo(int elemIndex)
API to get the digital signature algorithm attribute
value from an OKVTTLV object.
|
java.lang.Boolean |
okvAttrGetExtractable()
API to get the extractable attribute value from an OKVTTLV object.
|
java.lang.Boolean |
okvAttrGetFresh()
API to get the fresh attribute value from an OKVTTLV object.
|
java.util.Date |
okvAttrGetInitialDate()
API to get the initial date attribute value from an OKVTTLV object.
|
java.util.Date |
okvAttrGetLastChangeDate()
API to get the last change date attribute value from an OKVTTLV object.
|
java.lang.Integer |
okvAttrGetLeaseTime()
API to get the lease time attribute value from an OKVTTLV object.
|
OKVLink |
okvAttrGetLink(int elemIndex)
API to get the link parameters from an OKVTTLV object.
|
OKVName |
okvAttrGetName(int elemIndex)
API to get the name and name type values from an OKVTTLV object.
|
java.lang.Boolean |
okvAttrGetNeverExtractable()
API to get the never extractable attribute value from an OKVTTLV object.
|
java.lang.String |
okvAttrGetObjectGroup()
API to get the object group attribute value from an OKVTTLV object.
|
OKVTagEnum |
okvAttrGetObjectType()
API to get the object type attribute value from an OKVTTLV object.
|
java.util.Date |
okvAttrGetProcessStartDate()
API to get the process start date attribute value
from an OKVTTLV object.
|
java.util.Date |
okvAttrGetProtectStopDate()
API to get the protect stop date attribute value
from an OKVTTLV object.
|
OKVRevocationReason |
okvAttrGetRevocationReason()
API to get the revocation reason attribute values
from an OKVTTLV object.
|
OKVTagEnum |
okvAttrGetState()
API to get state attribute value from an OKVTTLV object.
|
java.lang.String |
okvAttrGetUniqueID(int elemIndex)
API to get the unique identifier value from an OKVTTLV object.
|
OKVUsageLimits |
okvAttrGetUsageLimits()
API to get the usage limits attribute values from an OKVTTLV object.
|
OKVX509CertId |
okvAttrGetX509CertId()
API to get the X.509 Certificate Identifier attribute value
from an OKVTTLV object.
|
byte[] |
okvAttrGetX509CertIss()
API to get the X.509 Certificate Issuer distinguished name
from an OKVTTLV object.
|
byte[] |
okvAttrGetX509CertIssAltName(int elemIndex)
API to get the X.509 Certificate Issuer Alternate name
from an OKVTTLV object.
|
byte[] |
okvAttrGetX509CertSubj()
API to get the X.509 Certificate Subject distinguished name
from an OKVTTLV object.
|
byte[] |
okvAttrGetX509CertSubjAltName(int elemIndex)
API to get the X.509 Certificate Subject Alternate name
from an OKVTTLV object.
|
OKVTTLV |
okvCustomAttrAddBigInteger(java.lang.String name,
int attrIndex,
java.math.BigInteger value)
API to add a big integer data type with an attribute index to the
custom attribute of the OKVTTLV object.
|
OKVTTLV |
okvCustomAttrAddBoolean(java.lang.String name,
int attrIndex,
java.lang.Boolean value)
API to add a boolean data type with an attribute index to
the custom attribute of the OKVTTLV object.
|
OKVTTLV |
okvCustomAttrAddByteString(java.lang.String name,
int attrIndex,
byte[] value)
API to add a byte string data type with an attribute index
to the custom attribute of an OKVTTLV object.
|
OKVTTLV |
okvCustomAttrAddDateTime(java.lang.String name,
int attrIndex,
java.util.Date value)
API to add a date time data type with an attribute index
to the custom attribute of the OKVTTLV object.
|
OKVTTLV |
okvCustomAttrAddEnum(java.lang.String name,
int attrIndex,
int value)
API to add an enumeration data type with an attribute index to
the custom attribute of the OKVTTLV object.
|
OKVTTLV |
okvCustomAttrAddInteger(java.lang.String name,
int attrIndex,
java.lang.Integer value)
API to add an integer data type with an attribute index
to the custom attribute of the OKVTTLV object.
|
OKVTTLV |
okvCustomAttrAddInterval(java.lang.String name,
int attrIndex,
int value)
API to add an interval data type with an attribute index to
the custom attribute of the OKVTTLV object.
|
OKVTTLV |
okvCustomAttrAddLongInteger(java.lang.String name,
int attrIndex,
java.lang.Long value)
API to add a long integer data type with an attribute index
to the custom attribute of the OKVTTLV object.
|
OKVTTLV |
okvCustomAttrAddStructure(java.lang.String name,
int attrIndex,
OKVTTLV value)
API to add a structure data type with an attribute index
to the custom attribute of the OKVTTLV object.
|
OKVTTLV |
okvCustomAttrAddTextString(java.lang.String name,
int attrIndex,
java.lang.String value)
API to add a text string data type with an attribute index
to the custom attribute of the OKVTTLV object.
|
java.lang.Integer |
okvCustomAttrGetAttrIndex()
API to get the attribute index of a custom attribute
from an OKVTTLV object.
|
java.math.BigInteger |
okvCustomAttrGetBigInteger()
API to get Big Integer value from the
custom attribute of OKVTTLV object.
|
java.lang.Boolean |
okvCustomAttrGetBoolean()
API to get the Boolean value from the custom attribute
of an OKVTTLV object.
|
OKVAttribute |
okvCustomAttrGetByName(java.lang.String name,
int elemIndex)
API to get the first custom attribute which is of given name at
given element index or higher from the custom attribute
of an OKVTTLV object.
|
byte[] |
okvCustomAttrGetByteString()
API to get the byte array value from the
custom attribute of an OKVTTLV object.
|
OKVAttribute |
okvCustomAttrGetByType(OKVType type,
int elemIndex)
API to get the first custom attribute which is of given type at
given element index or higher from the custom attribute
of an OKVTTLV object.
|
java.util.Date |
okvCustomAttrGetDateTime()
API to get the date time value from the custom attribute
of an OKVTTLV object.
|
java.lang.Integer |
okvCustomAttrGetEnum()
API to get the enumeration value from the custom attribute
of an OKVTTLV object.
|
java.lang.Integer |
okvCustomAttrGetInteger()
API to get the integer value from the custom attribute
of an OKVTTLV object.
|
java.lang.Integer |
okvCustomAttrGetInterval()
API to get the interval value from the custom attribute
of an OKVTTLV object.
|
java.lang.Long |
okvCustomAttrGetLongInteger()
API to get the long integer value from the
custom attribute of an OKVTTLV object.
|
java.lang.String |
okvCustomAttrGetName()
API to get the attribute name of a custom attribute
from an OKVTTLV object.
|
OKVTTLV |
okvCustomAttrGetStructure()
API to get the TTLV structure from the custom
attribute of an OKVTTLV object.
|
java.lang.String |
okvCustomAttrGetTextString()
API to get the text string value from the custom attribute
of an OKVTTLV object.
|
static OKVTTLV |
okvEnvGetOpRequestObj()
API to create a valid OKVTTLV object.
|
OKVAttribute |
okvGetAttributeObject(int elemIndex)
API to get the attribute and its name from the parent attribute
found at element index 'elemIndex'.
|
OKVTTLV |
okvTTLVGetChild(int elemIndex)
API to get the child TTLV at the given index.
|
OKVTTLV |
okvTTLVGetChildByTag(OKVTag tag,
int elemIndex)
API to get the child TTLV of a given tag at index elemIndex or higher.
|
OKVTTLV |
okvTTLVGetFirstChildByTag(OKVTag childTag)
API to get the first child OKVTTLV object with the tag
passed as input.
|
int |
okvTTLVGetLen()
API to get the length of an OKVTTLV object.
|
OKVTag |
okvTTLVGetTag()
API to get the tag of an OKVTTLV object.
|
OKVType |
okvTTLVGetType()
API to get the KMIP type of an OKVTTLV object.
|
java.lang.Object |
okvTTLVGetValue()
API to get the value from an OKVTTLV object.
|
void |
parseBinaryToTTLV(byte[] bytes)
Convert TTLV in binary form to OKVTTLV structure.
|
java.lang.String |
printTTLV()
Print the complete TTLV object.
|
byte[] |
printTTLVtoBinary()
Print the TTLV in binary.
|
void |
setKmipTag(OKVTag kmipTag)
Set the KMIP tag of the TTLV.
|
void |
setKmipType(OKVType type)
Set the type of the TTLV.
|
void |
setLength(int length)
Set length of the TTLV.
|
void |
setParent(OKVTTLV parent)
Set the parent TTLV.
|
void |
setTag(OKVTag tag)
Set the tag of the TTLV.
|
void |
setValue(java.lang.Object value)
Set the value of the TTLV.
|
public static final java.lang.String CLASS_NAME
public static final java.util.logging.Logger logger
public OKVTTLV(OKVTag tag, java.lang.Object value)
public OKVTTLV()
public OKVTTLV(OKVTag tag)
public OKVTTLV(OKVTag tag, java.lang.Object value, int length)
public static final OKVTTLV createTTLVMessage()
public static final OKVTTLV createBatchItemStructForOperation(OKVTagEnum operation, byte[] batchItem)
operation
- Operation of the batch itembatchItem
- Unique batch item id for the batch itempublic static OKVTTLV createTTLVinStruct(OKVTag tag, OKVType typ, java.lang.Object obj, int length, OKVTTLV parent)
tag
- KMIP tagtyp
- KMIP typeobj
- KMIP objectlength
- Length of the TTLVparent
- parent of the newly created TTLVpublic static OKVTTLV createTTLVinStruct(OKVTag tag, java.lang.Object obj, int length, OKVTTLV parent)
tag
- KMIP tagobj
- KMIP object/valuelength
- length of the TTLVparent
- parent of the newly created TTLVpublic static OKVTTLV createTTLVinStruct(OKVTag tag, OKVType typ, java.lang.Object obj, OKVTTLV parent)
tag
- KMIP tagtyp
- KMIP typeobj
- KMIP object valueparent
- parent of the TTLV createdpublic static OKVTTLV createTTLVinStruct(OKVTag tag, java.lang.Object obj, OKVTTLV parent)
tag
- KMIP tagobj
- KMIP object valueparent
- parent of the TTLV createdpublic static OKVTTLV createTTLVStructinStruct(OKVTag tag, OKVTTLV parent)
tag
- KMIP tagparent
- parent of the newly created TTLVpublic static OKVTTLV createTTLV(OKVTag tag, OKVType typ, java.lang.Object obj, int length)
tag
- KMIP tagtyp
- KMIP typeobj
- KMIP object valuelength
- length of the object valuepublic static final OKVTTLV createTTLV(OKVTag tag, java.lang.Object obj, int length)
tag
- KMIP tagobj
- KMIP object valuelength
- TTLV lengthpublic static final OKVTTLV createTTLV(OKVTag tag, OKVType typ, java.lang.Object obj)
tag
- KMIP tagtyp
- KMIP typeobj
- KMIP object valuepublic static OKVTTLV createTTLV(OKVTag tag, java.lang.Object obj)
tag
- KMIP tagobj
- object valuepublic static final OKVTTLV createBatchResultTTLV(OKVTag tag, java.lang.Object obj)
tag
- KMIP tagobj
- object valuepublic static final OKVTTLV createTTLVStruct(OKVTag tag)
tag
- KMIP tagpublic static final OKVTTLV okvEnvGetOpRequestObj()
public java.util.List<OKVTTLV> getChildren()
public void addChild(OKVTTLV inOKVTTLV)
inOKVTTLV
- child TTLV objectpublic void parseBinaryToTTLV(byte[] bytes)
bytes
- TTLV in binary formpublic java.lang.String printTTLV()
public byte[] printTTLVtoBinary()
public OKVTTLV getTTLVinTTLV(OKVTag tag)
tag
- KMIP tagpublic void addToTTLVStruct(OKVTTLV ttlv_elem)
ttlv_elem
- TTLV element to be addedpublic void addToBatchItem(OKVTTLV ttlv_elem)
ttlv_elem
- TTLV element to be added to the batch itempublic void addBatchITemToTTLVMessage(OKVTTLV batch_item)
batch_item
- batch item to be added to the TTLVpublic void addBatchItemListToTTLVMessage(java.util.List<OKVTTLV> batchItemList)
batchItemList
- list of batch items to be added to TTLVpublic OKVTag getKmipTag()
public void setKmipTag(OKVTag kmipTag)
kmipTag
- the KMIP Tag to setpublic OKVTag okvTTLVGetTag()
public void setTag(OKVTag tag)
tag
- tag of the TTLVpublic OKVType okvTTLVGetType()
public void setKmipType(OKVType type)
type
- type of the TTLVpublic int okvTTLVGetLen()
public void setLength(int length)
length
- length of the TTLVpublic java.lang.Object okvTTLVGetValue()
public void setValue(java.lang.Object value)
value
- value of the TTLVpublic OKVTTLV getParent()
public void setParent(OKVTTLV parent)
parent
- parent TTLVpublic static boolean isCustomAttribute(java.lang.String attributeName)
attributeName
- name of the attributepublic OKVTTLV okvTTLVGetChild(int elemIndex)
elemIndex
- Element indexpublic OKVTTLV okvTTLVGetChildByTag(OKVTag tag, int elemIndex)
tag
- Tag of TTLV to be retrievedelemIndex
- Element index of child TTLV objectpublic OKVTTLV okvTTLVGetFirstChildByTag(OKVTag childTag)
childTag
- tag of the OKVTTLV object being retrievedpublic OKVTTLV okvAddAttributeObject(OKVTag attr, int attrIndex)
attr
- OKVTag of the attribute to be addedattrIndex
- Attribute Index of the attributepublic OKVTTLV okvAttrAddUniqueId(java.lang.String uid) throws OKVException
uid
- Unique identifier valueOKVException
public OKVTTLV okvAttrAddName(java.lang.String name, OKVTagEnum nameType) throws OKVException
name
- Name valuenameType
- Type of the name attributeOKVException
public OKVTTLV okvAttrAddObjectType(OKVTagEnum objType) throws OKVException
objType
- Object Type valueOKVException
public OKVTTLV okvAttrAddCryptoAlgo(OKVTagEnum cryptoAlg) throws OKVException
cryptoAlg
- Enumeration value indicating Cryptographic algorithmOKVException
public OKVTTLV okvAttrAddCryptoLen(int length) throws OKVException
length
- Cryptographic length valueOKVException
public OKVTTLV okvAttrAddCryptoParams(OKVTagEnum blockCipherMode, OKVTagEnum paddingMethod, OKVTagEnum hashingAlgo, OKVTagEnum keyRoleType) throws OKVException
blockCipherMode
- Enumeration value for Block Cipher ModepaddingMethod
- Enumeration value for Padding MethodhashingAlgo
- Enumeration value for Hashing algorithmkeyRoleType
- Enumeration value for key role typeOKVException
public OKVTTLV okvAttrAddCryptoDomainParams(java.lang.Integer qLength, OKVTagEnum recommendedCurve) throws OKVException
qLength
- Qlength valuerecommendedCurve
- Enumeration value for recommended CurveOKVException
public OKVTTLV okvAttrAddCertType(OKVTagEnum certType) throws OKVException
certType
- Enumeration value for Certificate typeOKVException
public OKVTTLV okvAttrAddCertLen(int certLength) throws OKVException
certLength
- certificate length valueOKVException
public OKVTTLV okvAttrAddX509CertId(byte[] issuer, byte[] serialNo) throws OKVException
issuer
- Certificate issuerserialNo
- Certificate serial numberOKVException
public OKVTTLV okvAttrAddX509CertSubj(byte[] dn) throws OKVException
dn
- Certificate Subject distinguished nameOKVException
public OKVTTLV okvAttrAddX509CertSubjAltName(byte[] altName) throws OKVException
altName
- X.509 Certificate Subject Alternate nameOKVException
public OKVTTLV okvAttrAddX509CertIss(byte[] dn) throws OKVException
dn
- Certificate Issuer distinguished nameOKVException
public OKVTTLV okvAttrAddX509CertIssAltName(byte[] altName) throws OKVException
altName
- Certificate Issuer Alternate nameOKVException
public OKVTTLV okvAttrAddDigitalSignAlgo(OKVTagEnum digitalSignAlg) throws OKVException
digitalSignAlg
- Enumeration value for Digital signature algorithmOKVException
public OKVTTLV okvAttrAddDigest(OKVTagEnum hashAlg, OKVTagEnum keyFormatType, byte[] digest) throws OKVException
hashAlg
- Enumeration value for Hash AlgorithmkeyFormatType
- Enumeration value for Key format typedigest
- Digest valueOKVException
public OKVTTLV okvAttrAddCryptoUsageMask(int cryptoUsageMask) throws OKVException
cryptoUsageMask
- Cryptographic usage mask valueOKVException
public OKVTTLV okvAttrAddLeaseTime(int leaseTime) throws OKVException
leaseTime
- Lease Time valueOKVException
public OKVTTLV okvAttrAddUsageLimits(long total, long count, OKVTagEnum unit) throws OKVException
total
- Usage limits total valuecount
- Usage limits count valueunit
- Usage Enumeration value for limits unitOKVException
public OKVTTLV okvAttrAddState(OKVTagEnum state) throws OKVException
state
- Enumeration value for StateOKVException
public OKVTTLV okvAttrAddInitialDate(java.util.Date date) throws OKVException
date
- Initial date valueOKVException
public OKVTTLV okvAttrAddActivationDate(java.util.Date date) throws OKVException
date
- Activation date valueOKVException
public OKVTTLV okvAttrAddProcessStartDate(java.util.Date date) throws OKVException
date
- Process start date valueOKVException
public OKVTTLV okvAttrAddProtectStopDate(java.util.Date date) throws OKVException
date
- Protect stop date valueOKVException
public OKVTTLV okvAttrAddDeactivationDate(java.util.Date date) throws OKVException
date
- De-activation date valueOKVException
public OKVTTLV okvAttrAddDestroyDate(java.util.Date date) throws OKVException
date
- Destroy date valueOKVException
public OKVTTLV okvAttrAddCompromiseOccurrenceDate(java.util.Date date) throws OKVException
date
- Compromise Occurrence Date valueOKVException
public OKVTTLV okvAttrAddCompromiseDate(java.util.Date date) throws OKVException
date
- Compromise date valueOKVException
public OKVTTLV okvAttrAddRevocationReason(OKVTagEnum code, java.lang.String msg) throws OKVException
code
- Enumeration value for Revocation reason codemsg
- Revocation messageOKVException
public OKVTTLV okvAttrAddArchiveDate(java.util.Date date) throws OKVException
date
- Archive date valueOKVException
public OKVTTLV okvAttrAddObjectGroup(java.lang.String objectGroup) throws OKVException
objectGroup
- Object group valueOKVException
public OKVTTLV okvAttrAddFresh(boolean fresh) throws OKVException
fresh
- true if object is fresh or false otherwiseOKVException
public OKVTTLV okvAttrAddLink(OKVTagEnum type, java.lang.String objId) throws OKVException
type
- Enumeration value for Type of the link attributeobjId
- Unique Identifier value of the link objectOKVException
public OKVTTLV okvAttrAddContactInfo(java.lang.String contact) throws OKVException
contact
- Contact information valueOKVException
public OKVTTLV okvAttrAddLastChangeDate(java.util.Date date) throws OKVException
date
- Last change date valueOKVException
public OKVTTLV okvAttrAddExtractable(boolean extractable) throws OKVException
extractable
- true if object is extractable or false otherwiseOKVException
public OKVTTLV okvAttrAddNeverExtractable(boolean neverExtractable) throws OKVException
neverExtractable
- true if object is never extractable or false otherwiseOKVException
public java.lang.String okvAttrGetUniqueID(int elemIndex) throws OKVException
elemIndex
- Index of child TTLV to start the lookupOKVException
public OKVName okvAttrGetName(int elemIndex) throws OKVException
elemIndex
- Index of child TTLV to start the lookupOKVException
public OKVTagEnum okvAttrGetObjectType() throws OKVException
OKVException
public OKVTagEnum okvAttrGetCryptoAlgo() throws OKVException
OKVException
public java.lang.Integer okvAttrGetCryptoLen() throws OKVException
OKVException
public OKVCryptoParams okvAttrGetCryptoParams(int elemIndex) throws OKVException
elemIndex
- Index of child TTLV to start the lookupOKVException
public OKVCryptoDomainParams okvAttrGetCryptoDomainParams() throws OKVException
OKVException
public OKVTagEnum okvAttrGetCertType() throws OKVException
OKVException
public java.lang.Integer okvAttrGetCertLen() throws OKVException
OKVException
public OKVX509CertId okvAttrGetX509CertId() throws OKVException
OKVException
public byte[] okvAttrGetX509CertSubj() throws OKVException
OKVException
public byte[] okvAttrGetX509CertSubjAltName(int elemIndex) throws OKVException
elemIndex
- Index of child TTLV to start the lookupOKVException
public byte[] okvAttrGetX509CertIss() throws OKVException
OKVException
public byte[] okvAttrGetX509CertIssAltName(int elemIndex) throws OKVException
elemIndex
- Index of child TTLV to start the lookupOKVException
public OKVTagEnum okvAttrGetDigitalSignAlgo(int elemIndex) throws OKVException
elemIndex
- Index of child TTLV to start the lookupOKVException
public OKVDigest okvAttrGetDigest(int elemIndex) throws OKVException
elemIndex
- Index of child TTLV to start the lookupOKVException
public java.lang.Integer okvAttrGetCryptoUsageMask() throws OKVException
OKVException
public java.lang.Integer okvAttrGetLeaseTime() throws OKVException
OKVException
public OKVUsageLimits okvAttrGetUsageLimits() throws OKVException
OKVException
public OKVTagEnum okvAttrGetState() throws OKVException
OKVException
public java.util.Date okvAttrGetInitialDate() throws OKVException
OKVException
public java.util.Date okvAttrGetActivationDate() throws OKVException
OKVException
public java.util.Date okvAttrGetProcessStartDate() throws OKVException
OKVException
public java.util.Date okvAttrGetProtectStopDate() throws OKVException
OKVException
public java.util.Date okvAttrGetDeactivationDate() throws OKVException
OKVException
public java.util.Date okvAttrGetDestroyDate() throws OKVException
OKVException
public java.util.Date okvAttrGetCompromiseOccurrenceDate() throws OKVException
OKVException
public java.util.Date okvAttrGetCompromiseDate() throws OKVException
OKVException
public OKVRevocationReason okvAttrGetRevocationReason() throws OKVException
OKVException
public java.util.Date okvAttrGetArchiveDate() throws OKVException
OKVException
public java.lang.String okvAttrGetObjectGroup() throws OKVException
OKVException
public java.lang.Boolean okvAttrGetFresh() throws OKVException
OKVException
public OKVLink okvAttrGetLink(int elemIndex) throws OKVException
elemIndex
- Index of child TTLV to start the lookupOKVException
public java.lang.String okvAttrGetContactInfo() throws OKVException
OKVException
public java.util.Date okvAttrGetLastChangeDate() throws OKVException
OKVException
public java.lang.Boolean okvAttrGetExtractable() throws OKVException
OKVException
public java.lang.Boolean okvAttrGetNeverExtractable() throws OKVException
OKVException
public OKVAttribute okvGetAttributeObject(int elemIndex) throws OKVException
elemIndex
- Index of child TTLV to start the lookupOKVException
public OKVTTLV okvCustomAttrAddBigInteger(java.lang.String name, int attrIndex, java.math.BigInteger value) throws OKVException
name
- Name of the custom attributeattrIndex
- Attribute indexvalue
- Big Integer valueOKVException
public OKVTTLV okvCustomAttrAddInteger(java.lang.String name, int attrIndex, java.lang.Integer value) throws OKVException
name
- Name of the custom attributeattrIndex
- Attribute indexvalue
- Integer valueOKVException
public OKVTTLV okvCustomAttrAddLongInteger(java.lang.String name, int attrIndex, java.lang.Long value) throws OKVException
name
- Name of the custom attributeattrIndex
- Attribute indexvalue
- Long valueOKVException
public OKVTTLV okvCustomAttrAddEnum(java.lang.String name, int attrIndex, int value) throws OKVException
name
- Name of the custom attributeattrIndex
- Attribute indexvalue
- Enumeration integer valueOKVException
public OKVTTLV okvCustomAttrAddBoolean(java.lang.String name, int attrIndex, java.lang.Boolean value) throws OKVException
name
- Name of the custom attributeattrIndex
- Attribute indexvalue
- Boolean valueOKVException
public OKVTTLV okvCustomAttrAddTextString(java.lang.String name, int attrIndex, java.lang.String value) throws OKVException
name
- Name of the custom attributeattrIndex
- Attribute indexvalue
- Text string valueOKVException
public OKVTTLV okvCustomAttrAddByteString(java.lang.String name, int attrIndex, byte[] value) throws OKVException
name
- Name of the custom attributeattrIndex
- Attribute indexvalue
- Byte String valueOKVException
public OKVTTLV okvCustomAttrAddDateTime(java.lang.String name, int attrIndex, java.util.Date value) throws OKVException
name
- Name of the custom attributeattrIndex
- Attribute indexvalue
- Date time valueOKVException
public OKVTTLV okvCustomAttrAddInterval(java.lang.String name, int attrIndex, int value) throws OKVException
name
- Name of the custom attributeattrIndex
- Attribute indexvalue
- Interval valueOKVException
public OKVTTLV okvCustomAttrAddStructure(java.lang.String name, int attrIndex, OKVTTLV value) throws OKVException
name
- Name of the custom attributeattrIndex
- Attribute indexvalue
- OKVTTLV structure valueOKVException
public java.lang.Integer okvCustomAttrGetAttrIndex() throws OKVException
OKVException
public java.lang.String okvCustomAttrGetName() throws OKVException
OKVException
public java.math.BigInteger okvCustomAttrGetBigInteger() throws OKVException
OKVException
public java.lang.Integer okvCustomAttrGetInteger() throws OKVException
OKVException
public java.lang.Long okvCustomAttrGetLongInteger() throws OKVException
OKVException
public java.lang.Integer okvCustomAttrGetEnum() throws OKVException
OKVException
public java.lang.Boolean okvCustomAttrGetBoolean() throws OKVException
OKVException
public java.lang.String okvCustomAttrGetTextString() throws OKVException
OKVException
public byte[] okvCustomAttrGetByteString() throws OKVException
OKVException
public java.util.Date okvCustomAttrGetDateTime() throws OKVException
OKVException
public java.lang.Integer okvCustomAttrGetInterval() throws OKVException
OKVException
public OKVTTLV okvCustomAttrGetStructure() throws OKVException
OKVException
public OKVAttribute okvCustomAttrGetByName(java.lang.String name, int elemIndex) throws OKVException
name
- Name of the custom attributeelemIndex
- Element indexOKVException
public OKVAttribute okvCustomAttrGetByType(OKVType type, int elemIndex) throws OKVException
type
- Type of the custom attributeelemIndex
- Element indexOKVException