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.opensshlpk.SshPublicKey Class Reference
Inheritance diagram for web2ldap.app.plugins.opensshlpk.SshPublicKey:
[legend]
Collaboration diagram for web2ldap.app.plugins.opensshlpk.SshPublicKey:
[legend]

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

 str
 
 pattern = re.compile(input_pattern)
 
tuple hash_algorithms = ('md5', 'sha1', 'sha256', 'sha512')
 
string fileExt = 'pub'
 
dictionary min_key_size
 
- Static Public Attributes inherited from web2ldap.app.schema.syntaxes.DirectoryString
 str
 
string html_tmpl = '{av}'
 
- Static Public Attributes inherited from web2ldap.app.schema.syntaxes.LDAPSyntax
 str
 
 int
 
 bool
 

Private Member Functions

def _extract_pk_params (self, attr_value)
 
bool _validate (self, bytes attr_value)
 
def _display_lines (self, vidx, links, pk_type, pk_comment, pk_bin, pk_fingerprints)
 

Static Private Member Functions

def _strip_padding (b64_val)
 
def _get_key_size (pk_type, pk_bin)
 

Detailed Description

Definition at line 26 of file opensshlpk.py.

Member Function Documentation

◆ _display_lines()

◆ _extract_pk_params()

◆ _get_key_size()

def web2ldap.app.plugins.opensshlpk.SshPublicKey._get_key_size (   pk_type,
  pk_bin 
)
staticprivate

◆ _strip_padding()

def web2ldap.app.plugins.opensshlpk.SshPublicKey._strip_padding (   b64_val)
staticprivate

◆ _validate()

bool web2ldap.app.plugins.opensshlpk.SshPublicKey._validate (   self,
bytes  attr_value 
)
private

◆ display()

◆ sanitize()

bytes web2ldap.app.plugins.opensshlpk.SshPublicKey.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 44 of file opensshlpk.py.

Member Data Documentation

◆ fileExt

string web2ldap.app.plugins.opensshlpk.SshPublicKey.fileExt = 'pub'
static

Definition at line 37 of file opensshlpk.py.

◆ hash_algorithms

tuple web2ldap.app.plugins.opensshlpk.SshPublicKey.hash_algorithms = ('md5', 'sha1', 'sha256', 'sha512')
static

◆ min_key_size

dictionary web2ldap.app.plugins.opensshlpk.SshPublicKey.min_key_size
static
Initial value:
= {
'ssh-rsa': 2048,
'ssh-dss': 2048,
}

Definition at line 39 of file opensshlpk.py.

Referenced by web2ldap.app.plugins.opensshlpk.SshPublicKey._validate().

◆ pattern

web2ldap.app.plugins.opensshlpk.SshPublicKey.pattern = re.compile(input_pattern)
static

Definition at line 34 of file opensshlpk.py.

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

◆ str

web2ldap.app.plugins.opensshlpk.SshPublicKey.str
static

Definition at line 27 of file opensshlpk.py.


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