libcamgm
Public Member Functions | Private Attributes | Friends | List of all members
ca_mgm::AuthorityInformation Class Reference

#include <AuthorityInfoAccessExtension.hpp>

Public Member Functions

 AuthorityInformation ()
 
 AuthorityInformation (const std::string &accessOID, const LiteralValue &location)
 
 AuthorityInformation (const AuthorityInformation &ai)
 
 ~AuthorityInformation ()
 
AuthorityInformationoperator= (const AuthorityInformation &ai)
 
void setAuthorityInformation (const std::string &accessOID, const LiteralValue &location)
 
std::string getAccessOID () const
 
LiteralValue getLocation () const
 
bool valid () const
 
std::vector< std::string > verify () const
 
std::vector< std::string > dump () const
 

Private Attributes

ca_mgm::RWCOW_pointer
< AuthorityInformationImpl > 
m_impl
 

Friends

bool operator== (const AuthorityInformation &l, const AuthorityInformation &r)
 
bool operator< (const AuthorityInformation &l, const AuthorityInformation &r)
 

Constructor & Destructor Documentation

ca_mgm::AuthorityInformation::AuthorityInformation ( )

Construct an empty AuthorityInformation object

ca_mgm::AuthorityInformation::AuthorityInformation ( const std::string &  accessOID,
const LiteralValue location 
)

Construct an object with access OID and location

LiteralValue lv("URI", "http://www.example.com/ca/");
AuthorityInformation ai("caIssuers", lv);
Parameters
accessOIDOCSP, caIssuers or any valid OID
locationlocation of the information
ca_mgm::AuthorityInformation::AuthorityInformation ( const AuthorityInformation ai)

Copy an AuthorityInformation object

ca_mgm::AuthorityInformation::~AuthorityInformation ( )

Destructor

Member Function Documentation

std::vector<std::string> ca_mgm::AuthorityInformation::dump ( ) const

Return the content of this object for debugging

std::string ca_mgm::AuthorityInformation::getAccessOID ( ) const

Return the access OID

LiteralValue ca_mgm::AuthorityInformation::getLocation ( ) const

Return the location object

AuthorityInformation& ca_mgm::AuthorityInformation::operator= ( const AuthorityInformation ai)
void ca_mgm::AuthorityInformation::setAuthorityInformation ( const std::string &  accessOID,
const LiteralValue location 
)

Set new Authority Informations

Parameters
accessOIDOCSP, caIssuers or any valid OID
locationlocation of the information
bool ca_mgm::AuthorityInformation::valid ( ) const

Check if this object is valid

Returns
true if this object is valid, otherwise false
std::vector<std::string> ca_mgm::AuthorityInformation::verify ( ) const

Verify this object and return an Array with all error messages.

Returns
Array with error messages. If this Array is empty this object is valid

Friends And Related Function Documentation

bool operator< ( const AuthorityInformation l,
const AuthorityInformation r 
)
friend
bool operator== ( const AuthorityInformation l,
const AuthorityInformation r 
)
friend

Member Data Documentation

ca_mgm::RWCOW_pointer<AuthorityInformationImpl> ca_mgm::AuthorityInformation::m_impl
private

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