TlsCertificate
Object Hierarchy:
GLib.TlsCertificate
GLib.TlsCertificate
GLib.TlsCertificate
GLib.Object
GLib.Object
GLib.Object->GLib.TlsCertificate
Description:
[ CCode ( type_id = "g_tls_certificate_get_type ()" ) ] [ Version ( since = "2.28" ) ]public class TlsCertificate : Object
A certificate used for TLS authentication and encryption.
This can represent either a certificate only (eg, the certificate received by a client from a server), or the combination of a
certificate and a private key (which is needed when acting as a
TlsServerConnection ).
Content:
Properties:
public ByteArray certificate { owned get ; construct ; }
The DER (binary) encoded representation of the certificate.
public string certificate_pem { owned get ; construct ; }
The PEM (ASCII) encoded representation of the certificate.
public GenericArray <void *> dns_names { owned get ; }
The DNS names from the certificate's Subject Alternative Names (SANs),
null if unavailable.
public GenericArray <void *> ip_addresses { owned get ; }
The IP addresses from the certificate's Subject Alternative Names (
SANs), null if unavailable.
public TlsCertificate issuer { get ; construct ; }
A TlsCertificate representing the entity
that issued this certificate.
public string issuer_name { owned get ; }
The issuer from the certificate, null
if unavailable.
public DateTime not_valid_after { owned get ; }
The time at which this cert is no longer valid,
null if unavailable.
public DateTime not_valid_before { owned get ; }
The time at which this cert is considered to be valid,
null if unavailable.
public string password { construct ; }
An optional password used when constructed with
GTlsCertificate:pkcs12-data.
public string pkcs11_uri { owned get ; construct ; }
A URI referencing the
PKCS #11 objects
containing an X.509 certificate and optionally a private key.
public ByteArray pkcs12_data { construct ; }
The PKCS #12 formatted data used to construct the object.
public ByteArray private_key { owned get ; construct ; }
The DER (binary) encoded representation of the certificate's private
key, in either PKCS #1 format or unencrypted
PKCS #8 format. PKCS #8 format is supported since 2.32;
earlier releases only support PKCS #1.
public string private_key_pem { owned get ; construct ; }
The PEM (ASCII) encoded representation of the certificate's private
key in either PKCS #1 format ("`BEGIN RSA PRIVATE KEY`")
or unencrypted PKCS #8 format ("`BEGIN PRIVATE KEY`").
public string private_key_pkcs11_uri { owned get ; construct ; }
A URI referencing a
PKCS #11 object
containing a private key.
public string subject_name { owned get ; }
The subject from the cert, null if
unavailable.
Static methods:
Creation methods:
Methods:
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