1HTTP::Headers::ActionPaUcske:r:ACuoHtnThtTorPri:ib:zuHateteaiddoenPr:es:r:Bl:aAsDciotcci(uo3mn)ePnatcakt:i:oAnuthorization::Basic(3)
2
3
4

NAME

6       HTTP::Headers::ActionPack::Authorization::Basic - The Basic
7       Authorization Header
8

VERSION

10       version 0.09
11

SYNOPSIS

13         use HTTP::Headers::ActionPack::Authorization::Basic;
14
15         # create from string
16         my $auth = HTTP::Headers::ActionPack::Authorization::Basic->new_from_string(
17             'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='
18         );
19
20         # create from parameters
21         my $auth = HTTP::Headers::ActionPack::Authorization::Basic->new(
22             'Basic' => {
23                 username => 'Aladdin',
24                 password => 'open sesame'
25             }
26         );
27
28         my $auth = HTTP::Headers::ActionPack::Authorization::Basic->new(
29             'Basic' => [ 'Aladdin', 'open sesame' ]
30         );
31
32         my $auth = HTTP::Headers::ActionPack::Authorization::Basic->new(
33             'Basic' => 'QWxhZGRpbjpvcGVuIHNlc2FtZQ=='
34         );
35

DESCRIPTION

37       This class represents the Authorization header with the specific focus
38       on the 'Basic' type.
39

METHODS

41       "new ( $type, $credentials )"
42           The $credentials argument can either be a Base64 encoded string (as
43           would be passed in via the header), a HASH ref with username and
44           password keys, or a two element ARRAY ref where the first element
45           is the username and the second the password.
46
47       "new_from_string ( $header_string )"
48       "auth_type"
49       "username"
50       "password"
51       "as_string"
52

AUTHOR

54       Stevan Little <stevan.little@iinteractive.com>
55

CONTRIBUTORS

57       •   Andrew Nelson <anelson@cpan.org>
58
59       •   Dave Rolsky <autarch@urth.org>
60
61       •   Florian Ragwitz <rafl@debian.org>
62
63       •   Jesse Luehrs <doy@tozt.net>
64
65       •   Karen Etheridge <ether@cpan.org>
66
68       This software is copyright (c) 2012 by Infinity Interactive, Inc..
69
70       This is free software; you can redistribute it and/or modify it under
71       the same terms as the Perl 5 programming language system itself.
72
73
74
75perl v5.36.0                HTTP::2H0e2a2d-e0r7s-:2:2ActionPack::Authorization::Basic(3)
Impressum