Kea 2.7.5
|
TLS stream base class. More...
#include <common_tls.h>
Public Member Functions | |
TlsStreamBase (const IOServicePtr &service, TlsContextPtr context) | |
Constructor. | |
virtual | ~TlsStreamBase () |
Destructor. | |
virtual std::string | getIssuer ()=0 |
Return the commonName part of the issuerName of the peer certificate. | |
TlsRole | getRole () const |
Returns the role. | |
virtual std::string | getSubject ()=0 |
Return the commonName part of the subjectName of the peer certificate. | |
virtual void | handshake (Callback &callback)=0 |
TLS Handshake. | |
virtual void | shutdown (Callback &callback)=0 |
TLS shutdown. | |
Public Member Functions inherited from isc::asiolink::StreamService | |
StreamService (const IOServicePtr &io_service, TlsContextPtr &tls_context) | |
Constructor. | |
Public Attributes | |
TlsRole | role_ |
The role i.e. client or server. | |
TLS stream base class.
Callback | The type of callbacks. |
TlsStreamImpl | The type of underlying TLS streams. |
Definition at line 140 of file common_tls.h.
isc::asiolink::TlsStreamBase< Callback, TlsStreamImpl >::TlsStreamBase | ( | const IOServicePtr & | service, |
TlsContextPtr | context ) |
Constructor.
service | I/O Service object used to manage the stream. |
context | Pointer to the TLS context. |
|
inlinevirtual |
Destructor.
Definition at line 151 of file common_tls.h.
|
pure virtual |
Return the commonName part of the issuerName of the peer certificate.
First commonName when there are more than one, in UTF-8. The issuerName is the subjectName of the signing certificate (the issue in PKIX terms). The idea is to encode a group as members of an intermediate certification authority.
|
inline |
Returns the role.
Definition at line 154 of file common_tls.h.
References isc::asiolink::TlsStreamBase< Callback, TlsStreamImpl >::role_.
|
pure virtual |
Return the commonName part of the subjectName of the peer certificate.
First commonName when there are more than one, in UTF-8. RFC 3280 provides as a commonName example "Susan Housley", to idea to give access to this come from the Role Based Access Control experiment.
|
pure virtual |
TLS Handshake.
callback | Callback object. |
|
pure virtual |
TLS shutdown.
callback | Callback object. |
TlsRole isc::asiolink::TlsStreamBase< Callback, TlsStreamImpl >::role_ |
The role i.e. client or server.
Definition at line 191 of file common_tls.h.
Referenced by isc::asiolink::TlsStreamBase< Callback, TlsStreamImpl >::getRole().