1 using System;
2 
3 namespace Couchbase.Core.IO.Operations.Authentication
4 {
5     /// <summary>
6     /// Gets the supported SASL Mechanisms supported by the Couchbase Server.
7     /// </summary>
8     internal sealed class SaslList : OperationBase<string>
9     {
WriteExtras(OperationBuilder builder)10         protected override void WriteExtras(OperationBuilder builder)
11         {
12         }
13 
ReadExtras(ReadOnlySpan<byte> buffer)14         protected override void ReadExtras(ReadOnlySpan<byte> buffer)
15         {
16             Flags = new Flags
17             {
18                 Compression = Compression.None,
19                 DataFormat = Flags.DataFormat,
20                 TypeCode = TypeCode.String
21             };
22 
23             TryReadServerDuration(buffer);
24         }
25 
26         public override OpCode OpCode => OpCode.SaslList;
27 
BeginSend()28         protected override void BeginSend()
29         {
30             Flags = new Flags
31             {
32                 Compression = Compression.None,
33                 DataFormat = Flags.DataFormat,
34                 TypeCode = TypeCode.String
35             };
36         }
37     }
38 }
39 
40 #region [ License information          ]
41 
42 /* ************************************************************
43  *
44  *    @author Couchbase <info@couchbase.com>
45  *    @copyright 2014 Couchbase, Inc.
46  *
47  *    Licensed under the Apache License, Version 2.0 (the "License");
48  *    you may not use this file except in compliance with the License.
49  *    You may obtain a copy of the License at
50  *
51  *        http://www.apache.org/licenses/LICENSE-2.0
52  *
53  *    Unless required by applicable law or agreed to in writing, software
54  *    distributed under the License is distributed on an "AS IS" BASIS,
55  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
56  *    See the License for the specific language governing permissions and
57  *    limitations under the License.
58  *
59  * ************************************************************/
60 
61 #endregion [ License information          ]
62