Skip to content

Ssl options

SSLOptions #

Source code in amqp_client_python/domain/models/ssl_options.py
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class SSLOptions:
    def __init__(
        self, certfile_path: str, keyfile_path: str, ca_certs_path: str
    ) -> None:
        """
        Create an SslOptions object that hold the certs paths.

        Args:
            certfile_path: cert file path string
            keyfile_path: private key file path string
            ca_certs_path: ca file path string

        Returns:
            Um dicionário com as notas da escala e os graus.

        Raises:

        Examples:
            >>> SSLOptions("./.certs/cert.pem", "./.certs/privkey.pem", "./.certs/ca.pem")
        """
        self.certfile_path = certfile_path
        self.keyfile_path = keyfile_path
        self.ca_certs_path = ca_certs_path

__init__(certfile_path, keyfile_path, ca_certs_path) #

Create an SslOptions object that hold the certs paths.

Parameters:

Name Type Description Default
certfile_path str

cert file path string

required
keyfile_path str

private key file path string

required
ca_certs_path str

ca file path string

required

Returns:

Type Description
None

Um dicionário com as notas da escala e os graus.

Examples:

>>> SSLOptions("./.certs/cert.pem", "./.certs/privkey.pem", "./.certs/ca.pem")
Source code in amqp_client_python/domain/models/ssl_options.py
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
def __init__(
    self, certfile_path: str, keyfile_path: str, ca_certs_path: str
) -> None:
    """
    Create an SslOptions object that hold the certs paths.

    Args:
        certfile_path: cert file path string
        keyfile_path: private key file path string
        ca_certs_path: ca file path string

    Returns:
        Um dicionário com as notas da escala e os graus.

    Raises:

    Examples:
        >>> SSLOptions("./.certs/cert.pem", "./.certs/privkey.pem", "./.certs/ca.pem")
    """
    self.certfile_path = certfile_path
    self.keyfile_path = keyfile_path
    self.ca_certs_path = ca_certs_path