#include <CertificateData.h>

Inheritance diagram for ACLCertificateData:
Collaboration diagram for ACLCertificateData:

Public Member Functions

 ACLCertificateData (Ssl::GETX509ATTRIBUTE *, const char *attributes, bool optionalAttr=false)
 
 ACLCertificateData (ACLCertificateData const &)
 
ACLCertificateDataoperator= (ACLCertificateData const &)
 
virtual ~ACLCertificateData ()
 
bool match (X509 *)
 
virtual SBufList dump () const
 
void parse ()
 
bool empty () const
 
virtual ACLData< X509 * > * clone () const
 
virtual const Acl::ParameterFlagssupportedFlags () const
 
virtual void prepareForUse ()
 

Public Attributes

const char * validAttributesStr
 
std::list< std::string > validAttributes
 Parsed list of valid attribute names. More...
 
bool attributeIsOptional
 True if the attribute is optional (-xxx options) More...
 
char * attribute
 
ACLStringData values
 

Private Member Functions

 MEMPROXY_CLASS (ACLCertificateData)
 

Private Attributes

Ssl::GETX509ATTRIBUTEsslAttributeCall
 The callback used to retrieve the data from X509 cert. More...
 

Detailed Description

Definition at line 20 of file CertificateData.h.

Constructor & Destructor Documentation

ACLCertificateData::ACLCertificateData ( Ssl::GETX509ATTRIBUTE sslStrategy,
const char *  attributes,
bool  optionalAttr = false 
)

Definition at line 19 of file CertificateData.cc.

References validAttributes.

Referenced by clone().

ACLCertificateData::ACLCertificateData ( ACLCertificateData const &  old)
ACLCertificateData::~ACLCertificateData ( )
virtual

Definition at line 49 of file CertificateData.cc.

References attribute, and safe_free.

Member Function Documentation

ACLData< X509 * > * ACLCertificateData::clone ( ) const
virtual

Implements ACLData< X509 * >.

Definition at line 163 of file CertificateData.cc.

References ACLCertificateData().

SBufList ACLCertificateData::dump ( ) const
virtual

Implements ACLData< X509 * >.

Definition at line 76 of file CertificateData.cc.

References attribute, ACLStringData::dump(), validAttributesStr, and values.

bool ACLCertificateData::empty ( ) const
virtual

Implements ACLData< X509 * >.

Definition at line 157 of file CertificateData.cc.

References ACLStringData::empty(), and values.

bool ACLCertificateData::match ( X509 *  cert)
virtual

Implements ACLData< X509 * >.

Definition at line 62 of file CertificateData.cc.

References attribute, debugs, ACLStringData::match(), NULL, sslAttributeCall, and values.

ACLCertificateData::MEMPROXY_CLASS ( ACLCertificateData  )
private
ACLCertificateData& ACLCertificateData::operator= ( ACLCertificateData const &  )
virtual void ACLData< X509 * >::prepareForUse ( )
inlinevirtualinherited

Definition at line 31 of file Data.h.

virtual const Acl::ParameterFlags& ACLData< X509 * >::supportedFlags ( ) const
inlinevirtualinherited
Returns
the flags supported by these ACL parameters (e.g., "-i")

Definition at line 25 of file Data.h.

References Acl::NoFlags().

Member Data Documentation

char* ACLCertificateData::attribute

Definition at line 44 of file CertificateData.h.

Referenced by ACLCertificateData(), dump(), match(), parse(), and ~ACLCertificateData().

bool ACLCertificateData::attributeIsOptional

Definition at line 43 of file CertificateData.h.

Referenced by ACLCertificateData(), and parse().

Ssl::GETX509ATTRIBUTE* ACLCertificateData::sslAttributeCall
private

Definition at line 49 of file CertificateData.h.

Referenced by match().

std::list<std::string> ACLCertificateData::validAttributes

Definition at line 41 of file CertificateData.h.

Referenced by ACLCertificateData(), and parse().

const char* ACLCertificateData::validAttributesStr

A '|'-delimited list of valid ACL attributes. A "*" item means that any attribute is acceptable. Assumed to be a const-string and is never duped/freed. Nil unless ACL form is: acl Name type attribute value1 ...

Definition at line 39 of file CertificateData.h.

Referenced by ACLCertificateData(), dump(), and parse().

ACLStringData ACLCertificateData::values

Definition at line 45 of file CertificateData.h.

Referenced by dump(), empty(), match(), and parse().


The documentation for this class was generated from the following files:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors