RDN(3) User Contributed Perl Documentation RDN(3)NAME
X500::RDN - handle X.500 RDNs (Relative Distinguished Names), parse and format them
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
o $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.
o $object->isMultivalued();
Returns whether the RDN is multi-valued.
o $object->getAttributeTypes();
Returns the RDN's attribute types, a list of strings.
o $object->getAttributeValue (type);
Returns the RDN attribute's value.
o $object->getRFC2253String();
Returns the RDN as a string formatted according to RFC 2253 syntax.
o $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!?
o $object->getOpenSSLString();
Returns the RDN as a string formatted according to one of openssl's syntaxes. Croaks on multi-valued RDNs.
EXPORT
None.
BUGS AUTHOR
Robert Joop <yaph-070708@timesink.de>
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.
SEE ALSO
X500::DN, perl.
perl v5.12.1 2007-07-08 RDN(3)
Check Out this Related Man Page
RDN(3pm) User Contributed Perl Documentation RDN(3pm)NAME
X500::RDN - handle X.500 RDNs (Relative Distinguished Names), parse and format them
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
o $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.
o $object->isMultivalued();
Returns whether the RDN is multi-valued.
o $object->getAttributeTypes();
Returns the RDN's attribute types, a list of strings.
o $object->getAttributeValue (type);
Returns the RDN attribute's value.
o $object->getRFC2253String();
Returns the RDN as a string formatted according to RFC 2253 syntax.
o $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!?
o $object->getOpenSSLString();
Returns the RDN as a string formatted according to one of openssl's syntaxes. Croaks on multi-valued RDNs.
EXPORT
None.
BUGS AUTHOR
Robert Joop <yaph-070708@timesink.de>
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.
SEE ALSO
X500::DN, perl.
perl v5.10.0 2007-07-08 RDN(3pm)
Hi
I have a string of the form XY_X1998.10.500.
I want to check in a script that the middle part is always 10. How to achieve this?
e.g the input can be XY_X1998.20.500 OR XY_X1998.50.500
OR XY_X1998.10.500.
I have to print Yes everytime the middle value is 10 and NO when the middle... (2 Replies)