summaryrefslogtreecommitdiff
path: root/doc/classes/X509Certificate.xml
blob: 37b202a513e849b5fbf9f94cfd8f59379e438aa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" encoding="UTF-8" ?>
<class name="X509Certificate" inherits="Resource" version="4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
	<brief_description>
		An X509 certificate (e.g. for TLS).
	</brief_description>
	<description>
		The X509Certificate class represents an X509 certificate. Certificates can be loaded and saved like any other [Resource].
		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].
	</description>
	<tutorials>
	</tutorials>
	<methods>
		<method name="load">
			<return type="int" enum="Error" />
			<param index="0" name="path" type="String" />
			<description>
				Loads a certificate from [param path] ("*.crt" file).
			</description>
		</method>
		<method name="save">
			<return type="int" enum="Error" />
			<param index="0" name="path" type="String" />
			<description>
				Saves a certificate to the given [param path] (should be a "*.crt" file).
			</description>
		</method>
	</methods>
</class>