Gck.Attribute.new_string

function new_string(attr_type: Number(gulong), value: String): Gck.Attribute {
    // Gjs wrapper for gck_attribute_new_string()
}
  

Initialize a PKCS\#11 attribute to a string. This will result in an attribute containing the text, but not the null terminator. The text in the attribute will be of the same encoding as you pass to this function.

attr_type

the PKCS\#11 attribute type to set on the attribute

value

the null-terminated string value of the attribute

Returns

the new attribute; when done with the attribute u Gck.Attribute.prototype.free to free it