public class OKVBatchOperation
extends oracle.okv.operation.OKVOperationImpl<oracle.okv.response.impl.OKVBatchResponseImpl>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_NAME |
static java.util.logging.Logger |
logger |
Constructor and Description |
---|
OKVBatchOperation() |
Modifier and Type | Method and Description |
---|---|
void |
clearBatchItems()
Removes all items from the batch.
|
java.util.List<OKVTTLV> |
composeRequest()
Composes a KMIP operation request into a hierarchy of TTLV objects
|
java.util.List<OKVTTLV> |
composeRequest(oracle.okv.service.OKVEnv env)
Composes a KMIP operation request into a hierarchy of TTLV objects
|
java.util.Map<java.lang.Integer,oracle.okv.operation.OKVChildOperation> |
getChildOperationMap() |
java.lang.Integer |
okvActivate(java.lang.String uid)
Implements the KMIP Activate operation.
|
java.lang.Integer |
okvAddAttribute(java.lang.String uid,
OKVTTLV attr)
Implements the KMIP add attribute operation.
|
java.lang.Integer |
okvCreateKey(OKVTagEnum algorithm,
int keyLength,
int usageMask,
OKVTTLV attributeList,
java.lang.String walletName)
Implements the KMIP Create operation for the KMIP symmetric key object.
|
java.lang.Integer |
okvDecrypt(java.lang.String uid,
byte[] data,
OKVCryptoContext cryptoContext)
API to perform the decryption operation on the provided data using
KMIP object.
|
java.lang.Integer |
okvDeleteAttribute(java.lang.String uid,
java.lang.String attrName,
int attrIndex)
Implements the KMIP delete attribute operation.
|
java.lang.Integer |
okvDestroy(java.lang.String uid)
Implements the KMIP Destroy operation.
|
java.lang.Integer |
okvEncrypt(java.lang.String uid,
byte[] data,
OKVCryptoContext cryptoContext)
API to perform the encryption operation on the provided data using
KMIP object.
|
java.lang.Integer |
okvGetAttributeList(java.lang.String uid)
Implements KMIP Get Attribute List operation.
|
java.lang.Integer |
okvGetAttributes(java.lang.String uid,
java.util.List<java.lang.String> attrList)
Implements KMIP Get Attribute operation.
|
java.lang.Integer |
okvGetCertificate(java.lang.String uid)
Implements the KMIP Get operation for the KMIP certificate object.
|
java.lang.Integer |
okvGetCertificateRequest(java.lang.String uid)
Implements the KMIP Get operation for the certificate request object.
|
java.lang.Integer |
okvGetKey(java.lang.String uid)
Implements the KMIP Get operation for the KMIP symmetric key object.
|
java.lang.Integer |
okvGetOpaqueData(java.lang.String uid)
Implements the KMIP Get operation for the KMIP opaque data object.
|
java.lang.Integer |
okvGetPrivateKey(java.lang.String uid)
Implements the KMIP Get operation for the KMIP private key object.
|
java.lang.Integer |
okvGetPublicKey(java.lang.String uid)
Implements the KMIP Get operation for the KMIP public key object.
|
java.lang.Integer |
okvGetSecretData(java.lang.String uid)
Implements the KMIP Get operation for the KMIP secret data object.
|
java.lang.Integer |
okvGetTemplate(java.lang.String uid)
Implements the KMIP Get operation for the KMIP template object.
|
java.lang.Integer |
okvLocate(java.lang.Integer maxItems,
java.lang.Integer storageStatusMask,
OKVTagEnum objectGroupMember,
OKVTTLV attributeList)
Implements the KMIP locate operation.
|
java.lang.Integer |
okvModifyAttribute(java.lang.String uid,
OKVTTLV attr)
Implements the KMIP modify attribute operation.
|
java.lang.Integer |
okvQueryCapability(java.util.List<OKVTagEnum> queryFuncs)
Implements the KMIP Query operation.
|
java.lang.Integer |
okvRegCertificate(OKVTagEnum certificateType,
OKVTag certificateSubType,
byte[] certificateValue,
int usageMask,
OKVTTLV attributeList,
java.lang.String privateKeyUID,
java.lang.String walletName)
Implements the KMIP Register operation for the KMIP certificate object.
|
java.lang.Integer |
okvRegCertificateRequest(OKVTagEnum certificateRequestType,
byte[] certificateRequestValue,
OKVTTLV attributeList,
java.lang.String privateKeyUID,
java.lang.String walletName)
Implements the KMIP Register operation for the certificate request object.
|
java.lang.Integer |
okvRegKey(byte[] keyValue,
OKVTagEnum algorithm,
int keyLength,
int usageMask,
OKVTTLV attributeList,
java.lang.String walletName)
Implements the KMIP Register operation for the KMIP symmetric key object.
|
java.lang.Integer |
okvRegOpaqueData(OKVTagEnum opaqueType,
byte[] opaqueValue,
OKVTTLV attributeList,
java.lang.String walletName)
Implements the KMIP Register operation for the KMIP opaque data object.
|
java.lang.Integer |
okvRegPrivateKey(byte[] privateKeyValue,
OKVTagEnum algorithm,
int privateKeyLength,
int usageMask,
OKVTTLV attributeList,
java.lang.String walletName)
Implements the KMIP Register operation for the KMIP private key object.
|
java.lang.Integer |
okvRegPublicKey(byte[] publicKeyValue,
OKVTagEnum algorithm,
int publicKeyLength,
int usageMask,
OKVTTLV attributeList,
java.lang.String privateKeyUID,
java.lang.String walletName)
Implements the KMIP Register operation for the KMIP public key object.
|
java.lang.Integer |
okvRegSecretData(OKVTagEnum secretDataType,
byte[] secretDataValue,
int usageMask,
OKVTTLV attributeList,
java.lang.String walletName)
Implements the KMIP Register operation for the KMIP secret data object.
|
java.lang.Integer |
okvRegTemplate(OKVTTLV attributeList,
java.lang.String walletName)
Implements the KMIP Register operation for the KMIP template object (not
to be confused with KMIP template-attribute object).
|
java.lang.Integer |
okvRekey(java.lang.String uid,
java.lang.Integer offset,
OKVTTLV attributeList)
Implements the KMIP REKEY operation.
|
java.lang.Integer |
okvRevoke(java.lang.String uid,
OKVTagEnum reasonCode,
java.lang.String reasonMessage,
java.util.Date compromiseOccurenceDate)
Implements the KMIP Revoke operation.
|
public static final java.lang.String CLASS_NAME
public static final java.util.logging.Logger logger
public java.util.List<OKVTTLV> composeRequest() throws OKVException
oracle.okv.operation.OKVOperation
OKVException
public java.util.List<OKVTTLV> composeRequest(oracle.okv.service.OKVEnv env) throws OKVException
oracle.okv.operation.OKVOperation
OKVException
public void clearBatchItems()
public java.util.Map<java.lang.Integer,oracle.okv.operation.OKVChildOperation> getChildOperationMap()
public java.lang.Integer okvActivate(java.lang.String uid)
uid
- Unique identifier (can be null for batching)public java.lang.Integer okvAddAttribute(java.lang.String uid, OKVTTLV attr)
uid
- Unique Identifier (can be null for batching)attr
- Attribute to be addedpublic java.lang.Integer okvCreateKey(OKVTagEnum algorithm, int keyLength, int usageMask, OKVTTLV attributeList, java.lang.String walletName)
algorithm
- symmetric key algorithmkeyLength
- key length of the symmetric keyusageMask
- cryptographic mask usage of the symmetric keyattributeList
- template names or attributes that will form the
Template-AttributewalletName
- wallet membership of the symmetric keypublic java.lang.Integer okvDeleteAttribute(java.lang.String uid, java.lang.String attrName, int attrIndex)
uid
- unique identifier (can be null for batching)attrName
- name of the attribute to be deletedattrindex
- index of the attribute to be deletedpublic java.lang.Integer okvDestroy(java.lang.String uid)
uid
- unique identifier (can be null for batching)public java.lang.Integer okvGetAttributes(java.lang.String uid, java.util.List<java.lang.String> attrList)
uid
- unique identifier (can be null for batching)attrList
- Names of the attributes to be retrievedpublic java.lang.Integer okvGetAttributeList(java.lang.String uid)
uid
- unique identifier (can be null for batching)public java.lang.Integer okvGetCertificate(java.lang.String uid)
uid
- unique identifier (can be null for batching)public java.lang.Integer okvGetCertificateRequest(java.lang.String uid)
uid
- unique identifier (can be null for batching)public java.lang.Integer okvGetPrivateKey(java.lang.String uid)
uid
- unique identifier (can be null for batching)public java.lang.Integer okvGetPublicKey(java.lang.String uid)
uid
- unique identifier (can be null for batching)public java.lang.Integer okvGetKey(java.lang.String uid)
uid
- unique identifier (can be null for batching)public java.lang.Integer okvGetOpaqueData(java.lang.String uid)
uid
- unique identifier (can be null for batching)public java.lang.Integer okvGetSecretData(java.lang.String uid)
uid
- unique identifier (can be null for batching)public java.lang.Integer okvGetTemplate(java.lang.String uid)
uid
- unique identifierpublic java.lang.Integer okvLocate(java.lang.Integer maxItems, java.lang.Integer storageStatusMask, OKVTagEnum objectGroupMember, OKVTTLV attributeList)
maxItems
- maximum number of unique identifiers expectedstorageStatusMask
- look for archived or online objectsobjectGroupMember
- object group member typeattributeList
- attributes that define the locate searchpublic java.lang.Integer okvModifyAttribute(java.lang.String uid, OKVTTLV attr)
uid
- unique identifierattr
- Attribute to be modifiedpublic java.lang.Integer okvQueryCapability(java.util.List<OKVTagEnum> queryFuncs)
queryFuncs
- KMIP query functions requestedpublic java.lang.Integer okvRegKey(byte[] keyValue, OKVTagEnum algorithm, int keyLength, int usageMask, OKVTTLV attributeList, java.lang.String walletName) throws OKVException
keyValue
- symmetric Keyalgorithm
- symmetric key algorithmkeyLength
- key length of the symmetric keyusageMask
- cryptographic mask usage of the symmetric keyattributeList
- template names or attributes that will form the
Template-AttributewalletName
- wallet membership of the symmetric keyOKVException
public java.lang.Integer okvRegPrivateKey(byte[] privateKeyValue, OKVTagEnum algorithm, int privateKeyLength, int usageMask, OKVTTLV attributeList, java.lang.String walletName) throws OKVException
privateKeyValue
- private key being registeredalgorithm
- private key algorithmprivateKeyLength
- key length of the private keyusageMask
- cryptographic mask usage of the private keyattributeList
- template names or attributes that will form the
Template-AttributewalletName
- wallet membership of the private keyOKVException
public java.lang.Integer okvRegPublicKey(byte[] publicKeyValue, OKVTagEnum algorithm, int publicKeyLength, int usageMask, OKVTTLV attributeList, java.lang.String privateKeyUID, java.lang.String walletName) throws OKVException
publicKeyValue
- public Key being registeredalgorithm
- public key algorithmpublicKeyLength
- key length of the public keyusageMask
- cryptographic mask usage of the public keyattributeList
- template names or attributes that will form the
Template-AttributeprivateKeyUID
- UID of the private key associated with
the public keywalletName
- wallet membership of the public keyOKVException
public java.lang.Integer okvRegCertificate(OKVTagEnum certificateType, OKVTag certificateSubType, byte[] certificateValue, int usageMask, OKVTTLV attributeList, java.lang.String privateKeyUID, java.lang.String walletName) throws OKVException
certificateType
- type of certificate being registeredcertificateSubType
- sub type of the certificate being registered
OKVTag.OKV_CERT_SUBTYPE_USER_CERT represents User Certificate
OKVTag.OKV_CERT_SUBTYPE_TRUSTPOINT represents TrustpointcertificateValue
- certificate being registeredusageMask
- cryptographic mask usage of the certificateattributeList
- template names or attributes that will form the
Template-AttributeprivateKeyUID
- UID of the private key associated with certificatewalletName
- wallet membership of certificateOKVException
public java.lang.Integer okvRegCertificateRequest(OKVTagEnum certificateRequestType, byte[] certificateRequestValue, OKVTTLV attributeList, java.lang.String privateKeyUID, java.lang.String walletName) throws OKVException
certificateRequestType
- type of certificate request being
registered.
Allowed values: OKVTagEnum.OPAQUE_DATA_TYPE_EXTENSIONScertificateRequestValue
- certificate request object
being registeredattributeList
- template names or attributes that will form the
Template-AttributeprivateKeyUID
- UID of the private key associated with
certificate requestwalletName
- wallet membership of certificate requestOKVException
public java.lang.Integer okvRegSecretData(OKVTagEnum secretDataType, byte[] secretDataValue, int usageMask, OKVTTLV attributeList, java.lang.String walletName) throws OKVException
secretDataType
- type of secret data being registeredsecretDataValue
- secret data being registeredusageMask
- cryptographic mask usage of the secret dataattributeList
- template names or attributes that will form the
Template-AttributewalletName
- wallet membership of secret dataOKVException
public java.lang.Integer okvRegOpaqueData(OKVTagEnum opaqueType, byte[] opaqueValue, OKVTTLV attributeList, java.lang.String walletName) throws OKVException
opaqueType
- type of opaque object being registeredopaqueValue
- opaque object being registeredattributeList
- template names or attributes that will form the
Template-AttributewalletName
- wallet membership of opaque dataOKVException
public java.lang.Integer okvRegTemplate(OKVTTLV attributeList, java.lang.String walletName)
attributeList
- attributes of the templatewalletName
- wallet membership of the templatepublic java.lang.Integer okvRekey(java.lang.String uid, java.lang.Integer offset, OKVTTLV attributeList)
uid
- unique identifier (can be null for batching)offset
- time interval indicating the difference between the
Initialization Date and the Activation Date of the replacement
key to be createdattributeList
- template names or attributes that will form the
Template-Attributepublic java.lang.Integer okvRevoke(java.lang.String uid, OKVTagEnum reasonCode, java.lang.String reasonMessage, java.util.Date compromiseOccurenceDate)
uid
- unique identifier (can be null for batching)reasonCode
- revocation reason for revoking the KMIP objectreasonMessage
- revocation message for revoking the KMIP objectcompromiseOccurenceDate
- Date when the KMIP object compromise
occurredpublic java.lang.Integer okvEncrypt(java.lang.String uid, byte[] data, OKVCryptoContext cryptoContext) throws OKVException
uid
- unique identifierdata
- data to be encryptedcryptoContext
- crypto context containing required parameters for
encryption like cryptographic parameters, IVOKVException
public java.lang.Integer okvDecrypt(java.lang.String uid, byte[] data, OKVCryptoContext cryptoContext) throws OKVException
uid
- unique identifierdata
- data to be decryptedcryptoContext
- crypto context containing required parameters for
decryption like cryptographic parameters, IVOKVException