Class OoctiObject

java.lang.Object
  |
  +--OoctiObject
Direct Known Subclasses:
HwFeature, Storage

public class OoctiObject
extends java.lang.Object


Constructor Summary
OoctiObject()
           
 
Method Summary
 int getAttributeValue(Template template)
          Obtain the values of one or more attributes of an object.
 int getObjectSize()
          Get the size of an object in bytes.
 void setAttributeValue(Template attributes)
          Modifies the value of one or more attributes of an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OoctiObject

public OoctiObject()
Method Detail

getObjectSize

public int getObjectSize()
                  throws OoctiException
Get the size of an object in bytes.
Returns:
Size in bytes of the object
Throws:
CRYPTOKI_NOT_INITIALIZED -  
DEVICE_ERROR -  
DEVICE_MEMORY -  
DEVICE_REMOVED -  
FUNCTION_FAILED -  
GENERAL_ERROR -  
HOST_MEMORY -  
INFORMATION_SENSITIVE -  
OBJECT_HANDLE_INVALID -  
SESSION_CLOSED -  
SESSION_HANDLE_INVALID -  
ARGUMENTS_BAD -  

getAttributeValue

public int getAttributeValue(Template template)
                      throws OoctiException
Obtain the values of one or more attributes of an object.
Throws:
ATTRIBUTE_SENSITIVE -  
ATTRIBUTE_TYPE_INVALID -  
BUFFER_TOO_SMALL -  
CRYPTOKI_NOT_INITIALIZED -  
DEVICE_ERROR -  
DEVICE_MEMORY -  
DEVICE_REMOVED -  
FUNCTION_FAILED -  
GENERAL_ERROR -  
HOST_MEMORY -  
OBJECT_HANDLE_INVALID -  
SESSION_CLOSED -  
SESSION_HANDLE_INVALID -  
SESSION_CLOSED -  
SESSION_HANDLE_INVALID -  
ARGUMENTS_BAD -  

setAttributeValue

public void setAttributeValue(Template attributes)
                       throws OoctiException
Modifies the value of one or more attributes of an object.
Parameters:
template - Specifies which attribute values are to be modified.
Returns:
Returns the new attributes values.
Throws:
ATTRIBUTE_READ_ONLY -  
ATTRIBUTE_TYPE_INVALID -  
CRYPTOKI_NOT_INITIALIZED -  
DEVICE_ERROR -  
DEVICE_MEMORY -  
DEVICE_REMOVED -  
FUNCTION_FAILED -  
GENERAL_ERROR -  
HOST_MEMORY -  
OBJECT_HANDLE_INVALID -  
SESSION_CLOSED -  
SESSION_HANDLE_INVALID -  
SESSION_READ_ONLY -  
TEMPLATE_INCONSISTENT -  
TOKEN_WRITE_PROTECTED -  
ARGUMENTS_BAD -  
USER_NOT_LOGGED_IN -