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.dns.SSHFPRecord Class Reference
Inheritance diagram for web2ldap.app.plugins.dns.SSHFPRecord:
Collaboration diagram for web2ldap.app.plugins.dns.SSHFPRecord:

Public Member Functions

bytes sanitize (self, bytes attr_value)
str display (self, vidx, links)
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

 pattern = re.compile('^[0-4]? [0-2]? [0-9a-fA-F]+$')
dictionary key_algo_dict
dictionary fp_algo_dict
dictionary fp_algo_len
- Static Public Attributes inherited from web2ldap.app.schema.syntaxes.IA5String
- Static Public Attributes inherited from web2ldap.app.schema.syntaxes.DirectoryString
string html_tmpl = '{av}'
- Static Public Attributes inherited from web2ldap.app.schema.syntaxes.LDAPSyntax

Private Member Functions

bool _validate (self, bytes attr_value)

Detailed Description

Definition at line 324 of file dns.py.

Member Function Documentation

◆ _validate()

bool web2ldap.app.plugins.dns.SSHFPRecord._validate (   self,
bytes  attr_value 
check the syntax of attr_value

Implementors can overload this method to apply arbitrary syntax checks.

Reimplemented from web2ldap.app.schema.syntaxes.IA5String.

Definition at line 357 of file dns.py.

References web2ldap.app.plugins.dns.SSHFPRecord.fp_algo_dict, web2ldap.app.plugins.dns.SSHFPRecord.fp_algo_len, and web2ldap.app.plugins.dns.SSHFPRecord.key_algo_dict.

Referenced by web2ldap.app.schema.syntaxes.Image.sanitize(), and web2ldap.app.schema.syntaxes.LDAPSyntax.validate().

◆ display()

◆ sanitize()

bytes web2ldap.app.plugins.dns.SSHFPRecord.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

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

Definition at line 345 of file dns.py.

Member Data Documentation

◆ fp_algo_dict

dictionary web2ldap.app.plugins.dns.SSHFPRecord.fp_algo_dict
Initial value:
= {
b'0': 'reserved',
b'1': 'SHA-1',
b'2': 'SHA-256',

Definition at line 335 of file dns.py.

Referenced by web2ldap.app.plugins.dns.SSHFPRecord._validate(), and web2ldap.app.plugins.dns.SSHFPRecord.display().

◆ fp_algo_len

dictionary web2ldap.app.plugins.dns.SSHFPRecord.fp_algo_len
Initial value:
= {
b'1': 2*hashlib.sha1().digest_size,
b'2': 2*hashlib.sha256().digest_size,

Definition at line 340 of file dns.py.

Referenced by web2ldap.app.plugins.dns.SSHFPRecord._validate().

◆ key_algo_dict

dictionary web2ldap.app.plugins.dns.SSHFPRecord.key_algo_dict
Initial value:
= {
b'0': 'reserved',
b'1': 'RSA',
b'2': 'DSA',
b'3': 'ECDSA',
b'4': 'ED25519',

Definition at line 328 of file dns.py.

Referenced by web2ldap.app.plugins.dns.SSHFPRecord._validate(), and web2ldap.app.plugins.dns.SSHFPRecord.display().

◆ pattern

web2ldap.app.plugins.dns.SSHFPRecord.pattern = re.compile('^[0-4]? [0-2]? [0-9a-fA-F]+$')

Definition at line 327 of file dns.py.

Referenced by web2ldap.app.schema.syntaxes.LDAPSyntax.validate().

◆ str


Definition at line 325 of file dns.py.

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