web2ldap  1.7.7
About: web2ldap is a full-featured web-based LDAPv3 client.
  Fossies Dox: web2ldap-1.7.7.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

web2ldap.app.plugins.x509.Certificate Class Reference
Inheritance diagram for web2ldap.app.plugins.x509.Certificate:
[legend]
Collaboration diagram for web2ldap.app.plugins.x509.Certificate:
[legend]

Public Member Functions

bytes sanitize (self, bytes attr_value)
 
str display (self, vidx, links)
 
- Public Member Functions inherited from web2ldap.app.schema.syntaxes.Binary
web_forms.Field input_field (self)
 
str display (self, vidx, links)
 
- Public Member Functions inherited from web2ldap.app.schema.syntaxes.LDAPSyntax
def __init__ (self, app, Optional[str] dn, SubSchema schema, Optional[str] attrType, Optional[bytes] attr_value, entry=None)
 
def dn (self)
 
def av_u (self)
 
bytes sanitize (self, bytes attr_value)
 
List[bytes] transmute (self, List[bytes] attr_values)
 
def validate (self, bytes attr_value)
 
str value_button (self, command, row, mode, link_text=None)
 
str form_value (self)
 
def input_fields (self)
 
web_forms.Field input_field (self)
 
str display (self, vidx, links)
 

Static Public Attributes

 str
 
string mime_type = 'application/pkix-cert'
 
string file_ext = 'cer'
 
string cert_display_template
 
string cert_extn_display_template
 
- Static Public Attributes inherited from web2ldap.app.schema.syntaxes.Binary
 str
 
 bool
 
- Static Public Attributes inherited from web2ldap.app.schema.syntaxes.LDAPSyntax
 str
 
 int
 
 bool
 

Private Member Functions

def _display_extensions (self, x509)
 

Detailed Description

Definition at line 63 of file x509.py.

Member Function Documentation

◆ _display_extensions()

◆ display()

◆ sanitize()

bytes web2ldap.app.plugins.x509.Certificate.sanitize (   self,
bytes  attr_value 
)
Transforms the HTML form input field values into LDAP string
representations and returns raw binary string.

This is the inverse of LDAPSyntax.form_value().

When using this method one MUST NOT assume that the whole entry is
present.

Reimplemented from web2ldap.app.schema.syntaxes.LDAPSyntax.

Definition at line 85 of file x509.py.

Member Data Documentation

◆ cert_display_template

string web2ldap.app.plugins.x509.Certificate.cert_display_template
static
Initial value:
= """
<dl>
<dt>Issuer:</dt>
<dd>{cert_issuer_dn}</dd>
<dt>Subject</dt>
<dd>{cert_subject_dn}</dd>
<dt>Serial No.</dt>
<dd>{cert_serial_number_dec} ({cert_serial_number_hex})</dd>
<dt>Validity period</dt>
<dd>from {cert_not_before} until {cert_not_after}</dd>
</dl>
"""

Definition at line 68 of file x509.py.

Referenced by web2ldap.app.plugins.x509.Certificate.display().

◆ cert_extn_display_template

string web2ldap.app.plugins.x509.Certificate.cert_extn_display_template
static
Initial value:
= """
<dt>{ext_crit} {ext_name} {ext_id} </dt>
<dd>{extn_value}</dd>
"""

Definition at line 80 of file x509.py.

Referenced by web2ldap.app.plugins.x509.Certificate._display_extensions().

◆ file_ext

string web2ldap.app.plugins.x509.Certificate.file_ext = 'cer'
static

Definition at line 67 of file x509.py.

◆ mime_type

string web2ldap.app.plugins.x509.Certificate.mime_type = 'application/pkix-cert'
static

◆ str

web2ldap.app.plugins.x509.Certificate.str
static

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