SYNOPSIS

  use X500::RDN;

  my $rdn = new X500::RDN ('c'=>'DE');
  my $c = $rdn->getAttributeValue ('c');

DESCRIPTION

This module handles X.500 RDNs (Relative Distinguished Names). This is a supporting module for X500::DN.

Methods

  • $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.

\s-1EXPORT\s0

None.

BUGS

AUTHOR

Robert Joop <[email protected]>

COPYRIGHT

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.

RELATED TO X500::RDN…

X500::DN, perl.