このコンテンツは選択した言語では利用できません。
Chapter 6. Security
6.1. Connecting with a user and password
AMQ .NET can authenticate connections with a user and password.
To specify the credentials used for authentication, set the user
and password
fields in the connection URL.
Example: Connecting with a user and password
Address addr = new Address("amqp://<user>:<password>@example.com"); Connection conn = new Connection(addr);
6.2. Configuring SASL authentication
Client connections to remote peers may exchange SASL user name and password credentials. The presence of the user field in the connection URI controls this exchange. If user is specified then SASL credentials are exchanged; if user is absent then the SASL credentials are not exchanged.
By default the client supports EXTERNAL, PLAIN, and ANONYMOUS SASL mechanisms.
6.3. Configuring an SSL/TLS transport
Secure communication with servers is achieved using SSL/TLS. A client may be configured for SSL/TLS Handshake only or for SSL/TLS Handshake and client certificate authentication. See the Managing Certificates section for more information.
TLS Server Name Indication (SNI) is handled automatically by the client library. However, SNI is signaled only for addresses that use the amqps transport scheme where the host is a fully qualified domain name or a host name. SNI is not signaled when the host is a numeric IP address.