File: RDN.pod

package info (click to toggle)
libx500-dn-perl 0.29-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 108 kB
  • sloc: perl: 145; makefile: 2
file content (74 lines) | stat: -rw-r--r-- 1,598 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
=head1 NAME

X500::RDN - handle X.500 RDNs (Relative Distinguished Names), parse and format them

=head1 SYNOPSIS

  use X500::RDN;

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

=head1 DESCRIPTION

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

=head2 Methods

=over 4

=item * $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.

=item * $object->isMultivalued();

Returns whether the RDN is multi-valued.

=item * $object->getAttributeTypes();

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

=item * $object->getAttributeValue (type);

Returns the RDN attribute's value.

=item * $object->getRFC2253String();

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

=item * $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!?

=item * $object->getOpenSSLString();

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

=back

=head2 EXPORT

None.

=head1 BUGS

=head1 AUTHOR

Robert Joop E<lt>yaph-070708@timesink.deE<gt>

=head1 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.

=head1 SEE ALSO

L<X500::DN>,
L<perl>.

=cut