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

◆ AuthorityInformation() [1/3]

ca_mgm::AuthorityInformation::AuthorityInformation ( )

Construct an empty AuthorityInformation object

◆ AuthorityInformation() [2/3]

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

◆ AuthorityInformation() [3/3]

ca_mgm::AuthorityInformation::AuthorityInformation ( const AuthorityInformation ai)

Copy an AuthorityInformation object

◆ ~AuthorityInformation()

ca_mgm::AuthorityInformation::~AuthorityInformation ( )

Destructor

Member Function Documentation

◆ dump()

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

Return the content of this object for debugging

◆ getAccessOID()

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

Return the access OID

◆ getLocation()

LiteralValue ca_mgm::AuthorityInformation::getLocation ( ) const

Return the location object

◆ operator=()

AuthorityInformation& ca_mgm::AuthorityInformation::operator= ( const AuthorityInformation ai)

◆ setAuthorityInformation()

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

◆ valid()

bool ca_mgm::AuthorityInformation::valid ( ) const

Check if this object is valid

Returns
true if this object is valid, otherwise false

◆ verify()

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

◆ operator<

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

◆ operator==

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

Member Data Documentation

◆ m_impl

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

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