diff options
Diffstat (limited to 'base/util/src/netscape/security/x509/DirStrConverter.java')
-rw-r--r-- | base/util/src/netscape/security/x509/DirStrConverter.java | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/base/util/src/netscape/security/x509/DirStrConverter.java b/base/util/src/netscape/security/x509/DirStrConverter.java index 776344c0a..01d80bee4 100644 --- a/base/util/src/netscape/security/x509/DirStrConverter.java +++ b/base/util/src/netscape/security/x509/DirStrConverter.java @@ -30,17 +30,17 @@ import netscape.security.util.DerValue; * A DirStrConverter converts a string to a DerValue of ASN.1 Directory String, * which is a CHOICE of Printable (subset of ASCII), T.61 (Teletex) or * Universal String (UCS-4), and vice versa. - * + * * <p> * The string to DerValue conversion is done as follows. If the string has only PrintableString characters it is * converted to a ASN.1 Printable String using the PrintableString encoder from the global default ASN1CharStrConvMap. * If it has only characters covered in the PrintableString or T.61 character set it is converted to a ASN.1 T.61 string * using the T.61 encoder from the ASN1CharStrCovnMap. Otherwise it is converted to a ASN.1 UniversalString (UCS-4 * character set) which covers all characters. - * + * * @see AVAValueConverter * @see ASN1CharStrConvMap - * + * * @author Lily Hsiao, Slava Galperin at Netscape Communications, Inc. */ @@ -59,11 +59,11 @@ public class DirStrConverter implements AVAValueConverter { * Converts a string to a DER encoded ASN1 Directory String, which is a * CHOICE of PrintableString, T.61String or UniversalString. * The string is taken as is i.e. should not be in Ldap DN string syntax. - * + * * @param ds a string representing a directory string value. - * + * * @return a DerValue - * + * * @exception IOException if the string cannot be converted, such as * when a UniversalString encoder * isn't available and the string contains @@ -121,13 +121,13 @@ public class DirStrConverter implements AVAValueConverter { * Creates a DerValue from a BER encoded value, obtained from for example * a attribute value in octothorpe form of a Ldap DN string. * Checks if the BER encoded value is legal for a DirectoryString. - * + * * NOTE: currently only supports DER encoding for the BER encoded value. - * + * * @param berStream Byte array of a BER encoded value. - * + * * @return DerValue object. - * + * * @exception IOException If the BER value cannot be converted to a * valid Directory String DER value. */ @@ -148,7 +148,7 @@ public class DirStrConverter implements AVAValueConverter { /** * Converts a DerValue to a string. * The string is not in any syntax, such as RFC1779 string syntax. - * + * * @param avaValue a DerValue * @return a string if the value can be converted. * @exception IOException if a decoder needed for the |