| 1 | package cPanel::APIClient::Authn::Username; | ||
| 2 | |||
| 3 | # Copyright 2020 cPanel, L. L. C. | ||
| 4 | # All rights reserved. | ||
| 5 | # http://cpanel.net | ||
| 6 | # | ||
| 7 | # This is free software; you can redistribute it and/or modify it under the | ||
| 8 | # same terms as Perl itself. See L<perlartistic>. | ||
| 9 | |||
| 10 | use strict; | ||
| 11 | use warnings; | ||
| 12 | |||
| 13 | sub new { | ||
| 14 | my ( $class, $username ) = @_; | ||
| 15 | |||
| 16 | return bless \$username, $class; | ||
| 17 | } | ||
| 18 | |||
| 19 | sub username { | ||
| 20 | return ${ $_[0] }; | ||
| 21 | } | ||
| 22 | |||
| 23 | 1; |