Botan  2.4.0
Crypto and TLS for C++11
Public Member Functions | List of all members
Botan::NameConstraints Class Referencefinal

Name Constraints. More...

#include <name_constraint.h>

Public Member Functions

const std::vector< GeneralSubtree > & excluded () const
 
 NameConstraints ()
 
 NameConstraints (std::vector< GeneralSubtree > &&permitted_subtrees, std::vector< GeneralSubtree > &&excluded_subtrees)
 
const std::vector< GeneralSubtree > & permitted () const
 

Detailed Description

Name Constraints.

Wraps the Name Constraints associated with a certificate.

Definition at line 147 of file name_constraint.h.

Constructor & Destructor Documentation

◆ NameConstraints() [1/2]

Botan::NameConstraints::NameConstraints ( )
inline

Creates an empty name NameConstraints.

Definition at line 153 of file name_constraint.h.

153 : m_permitted_subtrees(), m_excluded_subtrees() {}

◆ NameConstraints() [2/2]

Botan::NameConstraints::NameConstraints ( std::vector< GeneralSubtree > &&  permitted_subtrees,
std::vector< GeneralSubtree > &&  excluded_subtrees 
)
inline

Creates NameConstraints from a list of permitted and excluded subtrees.

Parameters
permitted_subtreesnames for which the certificate is permitted
excluded_subtreesnames for which the certificate is not permitted

Definition at line 160 of file name_constraint.h.

162  : m_permitted_subtrees(permitted_subtrees), m_excluded_subtrees(excluded_subtrees)
163  {}

Member Function Documentation

◆ excluded()

const std::vector<GeneralSubtree>& Botan::NameConstraints::excluded ( ) const
inline
Returns
excluded names

Definition at line 173 of file name_constraint.h.

Referenced by Botan::X509_Certificate::to_string().

173 { return m_excluded_subtrees; }

◆ permitted()

const std::vector<GeneralSubtree>& Botan::NameConstraints::permitted ( ) const
inline
Returns
permitted names

Definition at line 168 of file name_constraint.h.

Referenced by Botan::X509_Certificate::to_string().

168 { return m_permitted_subtrees; }

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