1Authen::Passphrase::RejUescetrAlClo(n3tprmi)buted Perl DAouctuhmeenn:t:aPtaisosnphrase::RejectAll(3pm)
2
3
4

NAME

6       Authen::Passphrase::RejectAll - reject all passphrases
7

SYNOPSIS

9               use Authen::Passphrase::RejectAll;
10
11               $ppr = Authen::Passphrase::RejectAll->new;
12
13               $ppr = Authen::Passphrase::RejectAll
14                       ->from_crypt("*");
15
16               $ppr = Authen::Passphrase::RejectAll
17                       ->from_rfc2307("{CRYPT}*");
18
19               if($ppr->match($passphrase)) { ...
20
21               $passwd = $ppr->as_crypt;
22               $userPassword = $ppr->as_rfc2307;
23

DESCRIPTION

25       An object of this class is a passphrase recogniser that accepts any
26       passphrase whatsoever.  This is a subclass of Authen::Passphrase, and
27       this document assumes that the reader is familiar with the
28       documentation for that class.
29
30       This type of passphrase recogniser is obviously of no use at all in
31       controlling access to any resource.  Its use is to permit a resource to
32       be completely inaccessible in a system that expects some type of
33       passphrase access control.
34

CONSTRUCTORS

36       Authen::Passphrase::RejectAll->new
37           Returns a reject-all passphrase recogniser object.  The same object
38           is returned from each call.
39
40       Authen::Passphrase::RejectAll->from_crypt(PASSWD)
41           Returns a reject-all passphrase recogniser object.  The same object
42           is returned from each call.  The argument, a crypt string, must be
43           between one and twelve (inclusive) characters long and must not
44           start with "$".
45
46       Authen::Passphrase::RejectAll->from_rfc2307(USERPASSWORD)
47           Generates a new reject-all passphrase recogniser object from an RFC
48           2307 string.  The string must consist of "{CRYPT}" (case
49           insensitive) followed by an acceptable crypt string.
50

METHODS

52       $ppr->match(PASSPHRASE)
53       $ppr->as_crypt
54       $ppr->as_rfc2307
55           These methods are part of the standard Authen::Passphrase
56           interface.  The "match" method always returns false.
57

SEE ALSO

59       Authen::Passphrase
60

AUTHOR

62       Andrew Main (Zefram) <zefram@fysh.org>
63
65       Copyright (C) 2006, 2007, 2009, 2010, 2012 Andrew Main (Zefram)
66       <zefram@fysh.org>
67

LICENSE

69       This module is free software; you can redistribute it and/or modify it
70       under the same terms as Perl itself.
71
72
73
74perl v5.38.0                      2023-07-20Authen::Passphrase::RejectAll(3pm)
Impressum