Discuss this help topic in SecureBlackbox Forum

TElX509Certificate.GetPublicKeyBlob

TElX509Certificate     See also     


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


Saves the BLOB of the public key to the memory buffer.

Declaration

[C#]
    void GetPublicKeyBlob(out byte[] Buffer);
    bool GetPublicKeyBlob(ref byte[] Buffer, ref int Size);

[VB.NET]
    Sub GetPublicKeyBlob(Out Buffer As Byte())
    Function GetPublicKeyBlob(ByRef Buffer As Byte(), ByRef Size As Integer) As Boolean

[Pascal]
    function GetPublicKeyBlob(Buffer: pointer; var Size: integer) : boolean;

[C++]
    bool GetPublicKeyBlob(void * Buffer, int32_t &Size);
    void GetPublicKeyBlob(std::vector<uint8_t> &Buffer);

[PHP]
    bool GetPublicKeyBlob(TSBPointer|array of byte|string|NULL $Buffer, integer &$Size)
    void GetPublicKeyBlob(array of byte|string &$Buffer)

[Java]
    boolean getPublicKeyBlob(byte[][] Buffer, int[] Size);
    boolean getPublicKeyBlob(byte[] Buffer, TSBInteger Size);
    void getPublicKeyBlob(byte[][] Buffer);

Parameters

  • Buffer - the buffer to which the public key BLOB is saved.
  • Size - the size of the buffer to which the public key BLOB is saved. When the method returns, Size parameter contains the size of the data that were saved, or, if the buffer was too small, the size of the buffer enough to hold the data.

Return value

    True on success.
    False if the buffer size is too small. In this case this method sets Size parameter is set to the size which will be enough to hold the whole data.

Description

    This method saves the certificates public key to the provided memory location of the given size.

See also:     GetPublicKeySize    

Discuss this help topic in SecureBlackbox Forum