OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // AuthenticationMethod represents an authentication algorithm and its | 5 // AuthenticationMethod represents an authentication algorithm and its |
6 // configuration. It knows how to parse and format authentication | 6 // configuration. It knows how to parse and format authentication |
7 // method names. | 7 // method names. |
8 // Currently the following methods are supported: | 8 // Currently the following methods are supported: |
9 // v1_token - deprecated V1 authentication mechanism, | |
10 // spake2_plain - SPAKE2 without hashing applied to the password. | 9 // spake2_plain - SPAKE2 without hashing applied to the password. |
11 // spake2_hmac - SPAKE2 with HMAC hashing of the password. | 10 // spake2_hmac - SPAKE2 with HMAC hashing of the password. |
12 | 11 |
13 #ifndef REMOTING_PROTOCOL_AUTHENTICATION_METHOD_H_ | 12 #ifndef REMOTING_PROTOCOL_AUTHENTICATION_METHOD_H_ |
14 #define REMOTING_PROTOCOL_AUTHENTICATION_METHOD_H_ | 13 #define REMOTING_PROTOCOL_AUTHENTICATION_METHOD_H_ |
15 | 14 |
16 #include <string> | 15 #include <string> |
17 | 16 |
18 namespace remoting { | 17 namespace remoting { |
19 namespace protocol { | 18 namespace protocol { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 74 |
76 // Parse string representation of a shared secret hash. The |as_string| | 75 // Parse string representation of a shared secret hash. The |as_string| |
77 // must be in form "<hash_function>:<hash_value_base64>". | 76 // must be in form "<hash_function>:<hash_value_base64>". |
78 bool Parse(const std::string& as_string); | 77 bool Parse(const std::string& as_string); |
79 }; | 78 }; |
80 | 79 |
81 } // namespace protocol | 80 } // namespace protocol |
82 } // namespace remoting | 81 } // namespace remoting |
83 | 82 |
84 #endif // REMOTING_PROTOCOL_AUTHENTICATION_METHOD_H_ | 83 #endif // REMOTING_PROTOCOL_AUTHENTICATION_METHOD_H_ |
OLD | NEW |