Request a lease on a managed object.
A lease is an interval of time where the client's view of the object is valid and after which that view (or meta-data) must be renewed. If a lease has expired, then the client is not allowed to use the cryptographic managed object until that lease is successfully renewed.
- Parameters
-
uniqueId | [ in ] optional uniqueId.pString can be NULL, add the attribute names of the managed object pointed to by this unique Id. If NULL the sserver determines the object to query. |
pExtension | [ in ] optional can be NULL, vendor defined extension to the operation |
pLease | [ out ] P6KMIP_LEASE containing specifics about the object's new assigned lease |
pResult | [ out ] Server returned status indicators |
- Returns
Failure | P6R::eNotInitialized | A successful call to initialize() is required. |
P6R::eNotConn | A successful call to open() is required before this function is called. |
P6R::eInvalidArg | One of the pointers is NULL. |
P6R::eFormatError | Parsing error occurred while parsing a KMIP server response. |
P6R::eTooBig | Message returned by server is too big to fit in configured buffers. |
P6R::eTooSmall | The configured buffer size in P6KMIP_PREF.maxBufferSize is too small to hold the request message. |