Discuss this help topic in SecureBlackbox Forum

TElPKCS11SessionInfo.GetObjectBySubjectOrID

TElPKCS11SessionInfo     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


Retrieves the object by its subject or ID.

Declaration

[C#]
    TElPKCS11Object GetObjectBySubjectOrID(TSBPKCS11ObjectType ObjectType, byte[] Subject, byte[] ID);
    TElPKCS11Object GetObjectBySubjectOrID(TSBPKCS11ObjectType ObjectType, byte[] Subject, byte[] ID, bool SubjectMustMatch, bool IDMustMatch);

[VB.NET]
    Function GetObjectBySubjectOrID(ByVal ObjectType As TSBPKCS11ObjectType, ByVal Subject As Byte(), ByVal ID As Byte()) As TElPKCS11Object
    Function GetObjectBySubjectOrID(ByVal ObjectType As TSBPKCS11ObjectType, ByVal Subject As Byte(), ByVal ID As Byte(), ByVal SubjectMustMatch As Boolean, ByVal IDMustMatch As Boolean) As TElPKCS11Object

[Pascal]
    function GetObjectBySubjectOrID(ObjectType : TSBPKCS11ObjectType; const Subject, ID : ByteArray) : TElPKCS11ManagerObject;

[C++]
    TElPKCS11ObjectHandle GetObjectBySubjectOrID(TSBPKCS11ObjectType ObjectType, const std::vector<uint8_t> &Subject, const std::vector<uint8_t> &ID);
    TElPKCS11ObjectHandle GetObjectBySubjectOrID(TSBPKCS11ObjectType ObjectType, const std::vector<uint8_t> &Subject, const std::vector<uint8_t> &ID, bool SubjectMustMatch, bool IDMustMatch);

[PHP]
    TElPKCS11Object GetObjectBySubjectOrID(integer $ObjectType, array of byte|string|NULL $Subject, array of byte|string|NULL $ID)
    TElPKCS11Object GetObjectBySubjectOrID(integer $ObjectType, array of byte|string|NULL $Subject, array of byte|string|NULL $ID, bool $SubjectMustMatch, bool $IDMustMatch)

[Java]
    TElPKCS11Object getObjectBySubjectOrID(TSBPKCS11ObjectType ObjectType, byte[] Subject, byte[] ID, boolean SubjectMustMatch, boolean IDMustMatch);
    TElPKCS11Object getObjectBySubjectOrID(TSBPKCS11ObjectType ObjectType, byte[] Subject, byte[] ID);

Parameters

  • ObjectType - type of the object
  • Subject - object's subject
  • ID - object's ID
  • SubjectMustMatch - ...
  • IDMustMatch - ...

Possible object types:

Return value

    Returns an instance of TElPKCS11ManagerObject class, containing the desired object.

Description

    Use this method to find and retrieve the object by ID or subject.

See also:     Objects     GetObject     GetObjectByHandle    

Discuss this help topic in SecureBlackbox Forum