Home | History | Annotate | Download | only in base
      1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef NET_BASE_KEYGEN_HANDLER_H_
      6 #define NET_BASE_KEYGEN_HANDLER_H_
      7 
      8 #include <string>
      9 
     10 namespace net {
     11 
     12 // This class handles keypair generation for generating client
     13 // certificates via the Netscape <keygen> tag.
     14 
     15 class KeygenHandler {
     16  public:
     17   KeygenHandler(int key_size_index, const std::string& challenge);
     18   std::string GenKeyAndSignChallenge();
     19 
     20  private:
     21   int key_size_index_;
     22   std::string challenge_;
     23 };
     24 
     25 }  // namespace net
     26 
     27 #endif  // NET_BASE_KEYGEN_HANDLER_H_
     28