Gck.Attribute.new
function new(attr_type: Number(gulong), value: Number(guint8), length: Number(gsize)): Gck.Attribute {
// Gjs wrapper for gck_attribute_new()
}
Create a new PKCS\#11 attribute. The value will be copied into the new attribute.
- attr_type
the PKCS\#11 attribute type to set on the attribute
- value
the raw value of the attribute
- length
the length of the attribute
- Returns
the new attribute; when done with the attribute use Gck.Attribute.prototype.free to free it