Gck.Object.prototype.get_data

function get_data(attr_type: Number(gulong), cancellable: Gio.Cancellable): [return_value: ByteArray, n_data: Number(gsize)] {
    // Gjs wrapper for gck_object_get_data()
}
  

Get the data for the specified attribute from the object. For convenience the returned data has a null terminator.

This call may block for an indefinite period.

attr_type

The attribute to get data for.

cancellable

A Gio.Cancellable or null

return_value

the resulting PKCS\#11 attribute data, or null if an error occurred

n_data

The length of the resulting data.