diff options
Diffstat (limited to 'base/util/src/netscape/security/x509/GenericValueConverter.java')
-rw-r--r-- | base/util/src/netscape/security/x509/GenericValueConverter.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/base/util/src/netscape/security/x509/GenericValueConverter.java b/base/util/src/netscape/security/x509/GenericValueConverter.java index 73bc1979c..f08ebcca5 100644 --- a/base/util/src/netscape/security/x509/GenericValueConverter.java +++ b/base/util/src/netscape/security/x509/GenericValueConverter.java @@ -31,16 +31,16 @@ import netscape.security.util.DerValue; * a particular attribute to a DER encoded ASN.1 character string type. * Currently supports PrintableString, IA5String, BMPString T.61String and * Universal String. - * + * * <p> * The conversion is done as follows. An encoder is obtained for the all the character sets from the global default * ASN1CharStrConvMap. The encoders are then used to convert the string to the smallest character set first -- * printableString. If the string contains characters outside of that character set, it is converted to the next * character set -- IA5String character set. If that is not enough it is converted to a BMPString, then Universal String * which contains all characters. - * + * * @author Lily Hsiao, Slava Galperin at Netscape Communications, Inc. - * + * */ public class GenericValueConverter implements AVAValueConverter { @@ -51,16 +51,16 @@ public class GenericValueConverter implements AVAValueConverter { * Converts a string to a DER encoded ASN.1 primtable string, defined here * as a PrintableString, IA5String, T.61String, BMPString or * UniversalString. The string is not expected to be encoded in any form. - * + * * <p> * If an encoder is not available for a character set that is needed to convert the string, the string cannot be * converted and an IOException is thrown. For example, if the string contains characters outside the * PrintableString character and only a PrintableString encoder is available then an IOException is thrown. - * + * * @param s A string representing a generic attribute string value. - * + * * @return The DER value of the attribute. - * + * * @exception IOException if the string cannot be converted, such as * when an encoder needed is * unavailable. @@ -99,13 +99,13 @@ public class GenericValueConverter implements AVAValueConverter { /** * Creates a DerValue from the byte array of BER encoded value. - * + * * NOTE: currently only supports DER encoding (a form of BER) on input . - * + * * @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. */ @@ -119,7 +119,7 @@ public class GenericValueConverter implements AVAValueConverter { /** * Converts a DerValue of ASN1 Character string type to a java string * (the string is not encoded in any form). - * + * * @param avaValue A DerValue * @return A string representing the attribute value. * @exception IOException if a decoder needed for the |