CertificateRequest
Object Hierarchy:
Gcr.CertificateRequest
Gcr.CertificateRequest
Gcr.CertificateRequest
GLib.Object
GLib.Object
GLib.Object->Gcr.CertificateRequest
Description:
[ CCode ( type_id = "gcr_certificate_request_get_type ()" ) ]public class CertificateRequest : Object
An object that allows creation of certificate requests.
A certificate request is sent to a certificate authority to request an X.509 certificate.
Use [[email protected] ] to create a blank certificate request for a given private key. Set the common name on the
certificate request with [[email protected] _cn], and then sign the request with [[email protected] _async].
Content:
Properties:
Static methods:
public static bool capable (Object private_key, Cancellable ? cancellable = null ) throws Error
Check whether [class@CertificateRequest] is capable of creating a
request for the given private_key
.
public static async bool capable_async (Object private_key, Cancellable ? cancellable) throws Error
Asynchronously check whether [class@CertificateRequest] is capable of
creating a request for the given private_key
.
public static CertificateRequest prepare (CertificateRequestFormat format, Object private_key)
Create a new certificate request, in the given format for the private
key.
Creation methods:
Methods:
public bool complete (Cancellable ? cancellable = null ) throws Error
Complete and sign a certificate request, so that it can be encoded and
sent to a certificate authority.
public async bool complete_async (Cancellable ? cancellable) throws Error
Asynchronously complete and sign a certificate request, so that it can
be encoded and sent to a certificate authority.
public uint8 [] encode (bool textual)
Encode the certificate request.
public CertificateRequestFormat get_format ()
Get the format of this certificate request.
public unowned Object get_private_key ()
Get the private key this certificate request is for.
public void set_cn (string cn)
Set the common name encoded in the certificate request.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref