X500::RDN(3pm)

X500::RDN3pm

Handle x.500 rdns (relative distinguished names), parse and format them

Usage

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

Overview

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 RDN object from argument pairs, each pair an attribute type and value. With more than one pair as arguments, you will get a multi-valued RDN.

•

$object->isMultivalued();

Returns whether the RDN is multi-valued.

•

$object->getAttributeTypes();

Returns the RDN's attribute types, a list of strings.

•

$object->getAttributeValue (type);

Returns the RDN attribute's value.

•

$object->getRFC2253String();

Returns the RDN as a string formatted according to RFC 2253 syntax.

•

$object->getX500String();

Returns the RDN as a string formatted according to X.500 syntax. NOTE: This is a hack, there is no definition for a X.500 string syntax!?

•

$object->getOpenSSLString();

Returns the RDN as a string formatted according to one of openssl's syntaxes. Croaks on multi-valued RDNs.

Export

None.

Releases

11 releases since Debian 3.1 (Sarge); the text changed 4 times.

  1. 3.1–4.0
  2. 5.0
  3. 6.0–9
  4. 10–11
  5. 12–13

Bugs

Author

Robert Joop <[email protected]>

From libx500-dn-perl 0.29-6 in Debian 13 (Trixie). Parsed by carta from the page's man source.