Handle x.500 rdns (relative distinguished names), parse and format them
use X500::RDN; my $rdn = new X500::RDN ('c'=>'DE'); my $c = $rdn->getAttributeValue ('c');
This module handles X.500 RDNs (Relative Distinguished Names). This is a supporting module for X500::DN.
$object = new X500::RDN ('type'=>'value', 'type'=>'value', ...); Creates an \s-1RDN\s0 object from argument pairs, each pair an attribute type and value. With more than one pair as arguments, you will get a multi-valued \s-1RDN\s0.
$object->isMultivalued(); Returns whether the \s-1RDN\s0 is multi-valued.
$object->getAttributeTypes(); Returns the \s-1RDN\s0's attribute types, a list of strings.
$object->getAttributeValue (type); Returns the \s-1RDN\s0 attribute's value.
$object->getRFC2253String(); Returns the \s-1RDN\s0 as a string formatted according to \s-1RFC\s0 2253 syntax.
$object->getX500String(); Returns the \s-1RDN\s0 as a string formatted according to X.500 syntax. \s-1NOTE:\s0 This is a hack, there is no definition for a X.500 string syntax!?
$object->getOpenSSLString(); Returns the \s-1RDN\s0 as a string formatted according to one of openssl's syntaxes. Croaks on multi-valued RDNs.
None.
Robert Joop <[email protected]>
Copyright 2002 Robert Joop. All Rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
X500::DN, perl.