Web::Transport::PKI::Name
A directory name
DESCRIPTION
The Web::Transport::PKI::Name module represents a name in directories.
METHODS
There are following methods:
$name = Web::Transport::PKI::Name->create ($input)-
Create a new
Web::Transport::PKI::Nameobject.If the argument is an
undefvalue, an empty name is returned.If the argument is a
Web::Transport::PKI::Nameobject, the argument itself is returned unchanged.If the argument is a hash reference, a name with the content of the hash is returned. Any key is interprted as an object identifier (OID) in the dotted notation (e.g.
2.5.4.6), the short name of an object (e.g.CN), or the long name of an object (e.gcommonName). If an invalid or unknown key is specified, an exception is thrown. For portability, only limited set of names (such asCN,C, andO) should be used and any other object should be represented in the dotted notaion. If the value is anundefvalue, the key/value pair is ignored. Otherwise, the value is interpreted as the text value for the corresponding key. It is encoded as aPrintableString, if possible, or as aUTF8Stringotherwise. The key/value pairs in the hash are encoded as distinctRelativeDistinguishedNames in order determined by the implementation. $text = $name->debug_info-
Return a short string that summarises the name, which should be useful for developments.
AUTHOR
Wakaba <wakaba@suikawiki.org>.
LICENSE
Copyright 2018 Wakaba <wakaba@suikawiki.org>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.