Class TlsCertificate
public class TlsCertificate
- Inheritance
-
TlsCertificate
- Inherited Members
Methods
GetGType()
Calls native function g_tls_certificate_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
GetIssuer(IntPtr)
Calls native method g_tls_certificate_get_issuer. Version: 2.28
[Version("2.28")]
public static extern IntPtr GetIssuer(IntPtr cert)
Parameters
cert
IntPtrTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
GetIssuerName(IntPtr)
Calls native method g_tls_certificate_get_issuer_name. Version: 2.70
[Version("2.70")]
public static extern NullableUtf8StringOwnedHandle GetIssuerName(IntPtr cert)
Parameters
cert
IntPtrTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringOwnedHandle
Transfer ownership: Full Nullable: True
GetNotValidAfter(IntPtr)
Calls native method g_tls_certificate_get_not_valid_after. Version: 2.70
[Version("2.70")]
public static extern DateTimeOwnedHandle GetNotValidAfter(IntPtr cert)
Parameters
cert
IntPtrTransfer ownership: None Nullable: False
Returns
- DateTimeOwnedHandle
Transfer ownership: Full Nullable: True
GetNotValidBefore(IntPtr)
Calls native method g_tls_certificate_get_not_valid_before. Version: 2.70
[Version("2.70")]
public static extern DateTimeOwnedHandle GetNotValidBefore(IntPtr cert)
Parameters
cert
IntPtrTransfer ownership: None Nullable: False
Returns
- DateTimeOwnedHandle
Transfer ownership: Full Nullable: True
GetSubjectName(IntPtr)
Calls native method g_tls_certificate_get_subject_name. Version: 2.70
[Version("2.70")]
public static extern NullableUtf8StringOwnedHandle GetSubjectName(IntPtr cert)
Parameters
cert
IntPtrTransfer ownership: None Nullable: False
Returns
- NullableUtf8StringOwnedHandle
Transfer ownership: Full Nullable: True
IsSame(IntPtr, IntPtr)
Calls native method g_tls_certificate_is_same. Version: 2.34
[Version("2.34")]
public static extern bool IsSame(IntPtr certOne, IntPtr certTwo)
Parameters
certOne
IntPtrTransfer ownership: None Nullable: False
certTwo
IntPtrTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
ListNewFromFile(NonNullablePlatformStringHandle, out ErrorOwnedHandle)
Calls native function g_tls_certificate_list_new_from_file. Version: 2.28
[Version("2.28")]
public static extern ListOwnedHandle ListNewFromFile(NonNullablePlatformStringHandle file, out ErrorOwnedHandle error)
Parameters
file
NonNullablePlatformStringHandleTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- ListOwnedHandle
Transfer ownership: Full Nullable: False
NewFromFile(NonNullablePlatformStringHandle, out ErrorOwnedHandle)
Calls native constructor g_tls_certificate_new_from_file. Version: 2.28
[Version("2.28")]
public static extern IntPtr NewFromFile(NonNullablePlatformStringHandle file, out ErrorOwnedHandle error)
Parameters
file
NonNullablePlatformStringHandleTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- IntPtr
Transfer ownership: Full Nullable: False
NewFromFileWithPassword(NonNullablePlatformStringHandle, NonNullableUtf8StringHandle, out ErrorOwnedHandle)
Calls native constructor g_tls_certificate_new_from_file_with_password. Version: 2.72
[Version("2.72")]
public static extern IntPtr NewFromFileWithPassword(NonNullablePlatformStringHandle file, NonNullableUtf8StringHandle password, out ErrorOwnedHandle error)
Parameters
file
NonNullablePlatformStringHandleTransfer ownership: None Nullable: False
password
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- IntPtr
Transfer ownership: Full Nullable: False
NewFromFiles(NonNullablePlatformStringHandle, NonNullablePlatformStringHandle, out ErrorOwnedHandle)
Calls native constructor g_tls_certificate_new_from_files. Version: 2.28
[Version("2.28")]
public static extern IntPtr NewFromFiles(NonNullablePlatformStringHandle certFile, NonNullablePlatformStringHandle keyFile, out ErrorOwnedHandle error)
Parameters
certFile
NonNullablePlatformStringHandleTransfer ownership: None Nullable: False
keyFile
NonNullablePlatformStringHandleTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- IntPtr
Transfer ownership: Full Nullable: False
NewFromPem(NonNullableUtf8StringHandle, long, out ErrorOwnedHandle)
Calls native constructor g_tls_certificate_new_from_pem. Version: 2.28
[Version("2.28")]
public static extern IntPtr NewFromPem(NonNullableUtf8StringHandle data, long length, out ErrorOwnedHandle error)
Parameters
data
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
length
longTransfer ownership: None Nullable: False
error
ErrorOwnedHandle
Returns
- IntPtr
Transfer ownership: Full Nullable: False
NewFromPkcs11Uris(NonNullableUtf8StringHandle, NullableUtf8StringHandle, out ErrorOwnedHandle)
Calls native constructor g_tls_certificate_new_from_pkcs11_uris. Version: 2.68
[Version("2.68")]
public static extern IntPtr NewFromPkcs11Uris(NonNullableUtf8StringHandle pkcs11Uri, NullableUtf8StringHandle privateKeyPkcs11Uri, out ErrorOwnedHandle error)
Parameters
pkcs11Uri
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
privateKeyPkcs11Uri
NullableUtf8StringHandleTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- IntPtr
Transfer ownership: Full Nullable: False
NewFromPkcs12(ref byte, nuint, NullableUtf8StringHandle, out ErrorOwnedHandle)
Calls native constructor g_tls_certificate_new_from_pkcs12. Version: 2.72
[Version("2.72")]
public static extern IntPtr NewFromPkcs12(ref byte data, nuint length, NullableUtf8StringHandle password, out ErrorOwnedHandle error)
Parameters
data
byteTransfer ownership: None Nullable: False
length
nuintTransfer ownership: None Nullable: False
password
NullableUtf8StringHandleTransfer ownership: None Nullable: True
error
ErrorOwnedHandle
Returns
- IntPtr
Transfer ownership: Full Nullable: False
Verify(IntPtr, IntPtr, IntPtr)
Calls native method g_tls_certificate_verify. Version: 2.28
[Version("2.28")]
public static extern TlsCertificateFlags Verify(IntPtr cert, IntPtr identity, IntPtr trustedCa)
Parameters
cert
IntPtrTransfer ownership: None Nullable: False
identity
IntPtrTransfer ownership: None Nullable: True
trustedCa
IntPtrTransfer ownership: None Nullable: True
Returns
- TlsCertificateFlags
Transfer ownership: None Nullable: False