NAME
MToken - Tokens processing system (Security)
VERSION
Version 1.04
SYNOPSIS
use MToken;
DESCRIPTION
Tokens processing system (Security)
client
my $client = $mt->client;
Returns the Mojo client (user agent) instance
execmd
my %exest = $self->execmd("command", "arg1", "arg2", "argn");
Performs execute system commands and returns hash:
- command
-
The command line
- status
-
The status of operation. 1 - no errors; 0 - error
- exitval
-
The exitval value
- error
-
The error message
- output
-
The data from program
get_fingerprint
Returns the fingerprint from local config or ask it
get_gpgbin
Returns the GNUPG path from local config
get_manifest
Returns manifest of current token
get_name
Returns name of current token
get_opensslbin
Returns the OpenSSL path from local config
get_server_url
Returns SERVER_URL from local config
lconfig
my $lconfig = $mt->lconfig;
Returns local config instance
raise
return $mt->raise("Red message");
Sends message to STDERR and returns 0
store
my $store = $mt->store;
Returns the Store instance (Database)
HISTORY
See Changes
file
DEPENDENCIES
openssl
, gnupg
TO DO
See TODO
file
BUGS
* none noted
SEE ALSO
AUTHOR
Serż Minus (Sergey Lepenkov) http://www.serzik.com <abalama@cpan.org>
COPYRIGHT
Copyright (C) 1998-2021 D&D Corporation. All Rights Reserved
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See LICENSE
file and https://dev.perl.org/licenses/