GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
OpenXPKI::Server::API2::Plugin::Crypto::password_quality::Validate(3) User Contributed Perl Documentation OpenXPKI::Server::API2::Plugin::Crypto::password_quality::Validate(3)

OpenXPKI::Server::API2::Plugin::Crypto::password_quality::Validate

Worker class that performs the password checks defined in several Moose roles:
  • OpenXPKI::Server::API2::Plugin::Crypto::password_quality::CheckStandardRole
  • OpenXPKI::Server::API2::Plugin::Crypto::password_quality::CheckEntropyRole
  • OpenXPKI::Server::API2::Plugin::Crypto::password_quality::CheckLegacyRole

For more information about the checks see OpenXPKI::Server::API2::Plugin::Crypto::password_quality.

Something that provides these methods: "trace", "debug", "info", "warn", "error", "fatal".

Default: no logging

Checks to be performed.

Default: see the roles that implement checks

The password to be tested.

Returns 1 if the given password passes all enabled checks, 0 otherwise.

Parameters:

$password Str - password to be tested

Returns the error messages of the checks with the lowest complexity or "undef" if password is valid.

I.e. for a password failing "letters", "digits" and "entropy" checks the result are the "letters" nad "digits" error messages.

Returns a list of error messages from all checks.

Return a list of error codes from all checks. The error codes match the options (e.g. "mixed", "sequence").

The following methods are meant to be used by roles implementing password checks.

Hook for roles to register their available checks and set default checks.

Example usage:

    after hook_register_checks => sub {
        my $self = shift;
        $self->register_check(
            'partsequence'  => 'check_partsequence',
            'partdict'      => 'check_partdict',
        );
        $self->add_default_check(qw( partsequence partdict ));
    };

Register check names and their corresponding method names.

Example usage: see "hook_register_checks".

Enable the given list of checks by default (unless overridden by constructor parameter "checks").

Example usage: see "hook_register_checks".

Hook for roles to enable checks based on specific conditions.

Example usage:

    after hook_enable_checks => sub {
        my $self = shift;
        $self->enable('partdict') and $self->disable('dict') if $self->has_min_dict_len;
    };

Enable the given list of checks.

Disable the given list of checks.

Adds the given error to the list of errors.

Parameters:

$error ArrayRef - Error specified as "[ error_code => message ]".
"error_code" should be equal to the name of the check.
2022-05-14 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.