Lines Matching defs:X509Certificate

36 // X509Certificate represents an X.509 certificate used by SSL.
37 class X509Certificate : public base::RefCountedThreadSafe<X509Certificate> {
54 // Predicate functor used in maps when X509Certificate is used as the key.
56 : public std::binary_function<X509Certificate*, X509Certificate*, bool> {
58 bool operator() (X509Certificate* lhs, X509Certificate* rhs) const;
111 Judgment Check(X509Certificate* cert) const;
114 void Allow(X509Certificate* cert);
117 void Deny(X509Certificate* cert);
147 // Create an X509Certificate from a handle to the certificate object
149 // X509Certificate will properly dispose of |cert_handle| for you.
156 // The returned pointer must be stored in a scoped_refptr<X509Certificate>.
157 static X509Certificate* CreateFromHandle(OSCertHandle cert_handle,
160 // Create an X509Certificate from the BER-encoded representation.
163 // The returned pointer must be stored in a scoped_refptr<X509Certificate>.
164 static X509Certificate* CreateFromBytes(const char* data, int length);
166 // Create an X509Certificate from the representation stored in the given
171 // The returned pointer must be stored in a scoped_refptr<X509Certificate>.
172 static X509Certificate* CreateFromPickle(const Pickle& pickle,
175 // Creates a X509Certificate from the ground up. Used by tests that simulate
177 X509Certificate(const std::string& subject, const std::string& issuer,
247 friend class base::RefCountedThreadSafe<X509Certificate>;
250 // A cache of X509Certificate objects.
254 void Insert(X509Certificate* cert);
255 void Remove(X509Certificate* cert);
256 X509Certificate* Find(const Fingerprint& fingerprint);
259 typedef std::map<Fingerprint, X509Certificate*, FingerprintLessThan>
262 // Obtain an instance of X509Certificate::Cache via GetInstance().
276 // Construct an X509Certificate from a handle to the certificate object
278 X509Certificate(OSCertHandle cert_handle, Source source);
280 ~X509Certificate();
326 DISALLOW_COPY_AND_ASSIGN(X509Certificate);