2019-08-22 12:49:30 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2022-02-14 13:18:53 +00:00
<class name= "X509Certificate" inherits= "Resource" version= "4.0" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2019-08-22 12:49:30 +00:00
<brief_description >
2022-09-07 06:25:47 +00:00
An X509 certificate (e.g. for TLS).
2019-08-22 12:49:30 +00:00
</brief_description>
<description >
2019-09-23 16:16:41 +00:00
The X509Certificate class represents an X509 certificate. Certificates can be loaded and saved like any other [Resource].
2022-09-07 06:25:47 +00:00
They can be used as the server certificate in [method StreamPeerTLS.accept_stream] (along with the proper [CryptoKey]), and to specify the only certificate that should be accepted when connecting to an TLS server via [method StreamPeerTLS.connect_to_stream].
2019-08-22 12:49:30 +00:00
</description>
<tutorials >
</tutorials>
<methods >
<method name= "load" >
2021-07-30 13:28:05 +00:00
<return type= "int" enum= "Error" />
2022-08-06 18:11:48 +00:00
<param index= "0" name= "path" type= "String" />
2019-08-22 12:49:30 +00:00
<description >
2022-08-08 23:41:07 +00:00
Loads a certificate from [param path] ("*.crt" file).
2019-08-22 12:49:30 +00:00
</description>
</method>
<method name= "save" >
2021-07-30 13:28:05 +00:00
<return type= "int" enum= "Error" />
2022-08-06 18:11:48 +00:00
<param index= "0" name= "path" type= "String" />
2019-08-22 12:49:30 +00:00
<description >
2022-08-08 23:41:07 +00:00
Saves a certificate to the given [param path] (should be a "*.crt" file).
2019-08-22 12:49:30 +00:00
</description>
</method>
</methods>
</class>