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_CERT_DATABASE_H_
      6 #define NET_BASE_CERT_DATABASE_H_
      7 
      8 #include "net/base/x509_certificate.h"
      9 
     10 namespace net {
     11 
     12 // This class provides functions to manipulate the local
     13 // certificate store.
     14 
     15 // TODO(gauravsh): This class could be augmented with methods
     16 // for all operations that manipulate the underlying system
     17 // certificate store.
     18 
     19 class CertDatabase {
     20  public:
     21   CertDatabase();
     22 
     23   // Extract and Store User (Client) Certificate from a data blob.
     24   // Return true if successful.
     25   bool AddUserCert(const char* data, int len);
     26 
     27  private:
     28   void Init();
     29   DISALLOW_COPY_AND_ASSIGN(CertDatabase);
     30 };
     31 
     32 }  // namespace net
     33 
     34 #endif  // NET_BASE_CERT_DATABASE_H_
     35