diff options
Diffstat (limited to 'base/util/src/netscape/security/util')
23 files changed, 122 insertions, 122 deletions
diff --git a/base/util/src/netscape/security/util/ASN1CharStrConvMap.java b/base/util/src/netscape/security/util/ASN1CharStrConvMap.java index c9c364f4f..912b363e5 100644 --- a/base/util/src/netscape/security/util/ASN1CharStrConvMap.java +++ b/base/util/src/netscape/security/util/ASN1CharStrConvMap.java @@ -28,13 +28,13 @@ import java.util.Map; * Maps a ASN.1 character string type to a charset encoder and decoder. * The converter is used to convert a DerValue of a ASN.1 character string type * from bytes to unicode characters and vice versa. - * + * * <p> * A global default ASN1CharStrConvMap is created when the class is initialized. The global default map is extensible. - * + * * @author Lily Hsiao * @author Slava Galperin - * + * */ public class ASN1CharStrConvMap { @@ -48,10 +48,10 @@ public class ASN1CharStrConvMap { /** * Get an encoder for the specified DER tag. - * + * * @param tag A DER tag of a ASN.1 character string type, * for example DerValue.tag_PrintableString. - * + * * @return An encoder for the DER tag. */ public CharsetEncoder getEncoder(byte tag) { @@ -63,10 +63,10 @@ public class ASN1CharStrConvMap { /** * Get a decoder for the given DER tag. - * + * * @param tag A DER tag of a ASN.1 character string type, * for example DerValue.tag_PrintableString. - * + * * @return A decoder for the DER tag. */ public CharsetDecoder getDecoder(byte tag) { @@ -78,7 +78,7 @@ public class ASN1CharStrConvMap { /** * Add a tag-charset entry in the map. - * + * * @param tag A DER tag of a ASN.1 character string type, * ex. DerValue.tag_IA5String * @param charset A charset for the tag. @@ -101,7 +101,7 @@ public class ASN1CharStrConvMap { /** * Get an iterator of all tags in the map. - * + * * @return An Iterator of DER tags in the map as Bytes. */ public Iterator<Byte> getTags() { @@ -112,7 +112,7 @@ public class ASN1CharStrConvMap { /** * Get the global ASN1CharStrConvMap. - * + * * @return The global default ASN1CharStrConvMap. */ static public ASN1CharStrConvMap getDefault() { @@ -121,7 +121,7 @@ public class ASN1CharStrConvMap { /** * Set the global default ASN1CharStrConvMap. - * + * * @param newDefault The new default ASN1CharStrConvMap. */ static public void setDefault(ASN1CharStrConvMap newDefault) { diff --git a/base/util/src/netscape/security/util/BigInt.java b/base/util/src/netscape/security/util/BigInt.java index 9210648f1..aed24e7ad 100644 --- a/base/util/src/netscape/security/util/BigInt.java +++ b/base/util/src/netscape/security/util/BigInt.java @@ -25,12 +25,12 @@ import java.math.BigInteger; * such parsed values. Convert to "BigInteger" if you need to do * arbitrary precision arithmetic, rather than just represent * the number as a wrapped array of bytes. - * + * * <P> * <em><b>NOTE:</b> This class may eventually disappear, to * be supplanted by big-endian byte arrays which hold both signed * and unsigned arbitrary-precision integers. - * + * * @version 1.23 * @author David Brownell */ @@ -42,7 +42,7 @@ public final class BigInt { /** * Constructs a "Big" integer from a set of (big-endian) bytes. * Leading zeroes should be stripped off. - * + * * @param data a sequence of bytes, most significant bytes/digits * first. CONSUMED. */ @@ -80,7 +80,7 @@ public final class BigInt { /** * Constructs a "Big" integer from a normal Java integer. - * + * * @param i the java primitive integer */ public BigInt(int i) { @@ -107,7 +107,7 @@ public final class BigInt { /** * Converts the "big" integer to a java primitive integer. - * + * * @exception NumberFormatException if 32 bits is insufficient. */ public int toInt() { @@ -181,7 +181,7 @@ public final class BigInt { /** * Returns true iff the parameter is a numerically equivalent * BigInt. - * + * * @param other the object being compared with this one. */ public boolean equals(Object other) { @@ -192,7 +192,7 @@ public final class BigInt { /** * Returns true iff the parameter is numerically equivalent. - * + * * @param other the BigInt being compared with this one. */ public boolean equals(BigInt other) { diff --git a/base/util/src/netscape/security/util/BitArray.java b/base/util/src/netscape/security/util/BitArray.java index ab77c226e..e37de4eb5 100644 --- a/base/util/src/netscape/security/util/BitArray.java +++ b/base/util/src/netscape/security/util/BitArray.java @@ -21,7 +21,7 @@ import java.io.ByteArrayOutputStream; /** * A packed array of booleans. - * + * * @author Joshua Bloch * @author Douglas Hoover * @version 1.2 97/12/10 @@ -78,7 +78,7 @@ public class BitArray { int unusedBits = repLength * BITS_PER_UNIT - length; byte bitMask = (byte) (0xFF << unusedBits); - /* + /* normalize the representation: 1. discard extra bytes 2. zero out extra bits in the last byte @@ -191,7 +191,7 @@ public class BitArray { /** * Returns a hash code value for this bit array. - * + * * @return a hash code value for this bit array. */ public int hashCode() { diff --git a/base/util/src/netscape/security/util/ByteArrayLexOrder.java b/base/util/src/netscape/security/util/ByteArrayLexOrder.java index 2ee2f740e..48954850e 100644 --- a/base/util/src/netscape/security/util/ByteArrayLexOrder.java +++ b/base/util/src/netscape/security/util/ByteArrayLexOrder.java @@ -21,7 +21,7 @@ import java.util.Comparator; /** * Compare two byte arrays in lexicographical order. - * + * * @version 1.4 97/12/10 * @author D. N. Hoover */ @@ -33,12 +33,12 @@ public class ByteArrayLexOrder implements Comparator<byte[]> { * in order until they differ--the array with the smaller entry * is "smaller". If array entries are * equal till one array ends, then the longer array is "bigger". - * + * * @param obj1 first byte array to compare. * @param obj2 second byte array to compare. * @return negative number if obj1 < obj2, 0 if obj1 == obj2, * positive number if obj1 > obj2. - * + * * @exception <code>ClassCastException</code> if either argument is not a byte array. */ public final int compare(byte[] bytes1, byte[] bytes2) { diff --git a/base/util/src/netscape/security/util/ByteArrayTagOrder.java b/base/util/src/netscape/security/util/ByteArrayTagOrder.java index e57a3b5f1..40a627627 100644 --- a/base/util/src/netscape/security/util/ByteArrayTagOrder.java +++ b/base/util/src/netscape/security/util/ByteArrayTagOrder.java @@ -25,18 +25,18 @@ public class ByteArrayTagOrder implements Comparator<byte[]> { * Compare two byte arrays, by the order of their tags, * as defined in ITU-T X.680, sec. 6.4. (First compare * tag classes, then tag numbers, ignoring the constructivity bit.) - * + * * @param obj1 first byte array to compare. * @param obj2 second byte array to compare. * @return negative number if obj1 < obj2, 0 if obj1 == obj2, * positive number if obj1 > obj2. - * + * * @exception <code>ClassCastException</code> if either argument is not a byte array. */ public final int compare(byte[] bytes1, byte[] bytes2) { - // tag order is same as byte order ignoring any difference in + // tag order is same as byte order ignoring any difference in // the constructivity bit (0x02) return (bytes1[0] | 0x20) - (bytes2[0] | 0x20); } diff --git a/base/util/src/netscape/security/util/CertPrettyPrint.java b/base/util/src/netscape/security/util/CertPrettyPrint.java index 3a8c65fd0..7dfbf1588 100644 --- a/base/util/src/netscape/security/util/CertPrettyPrint.java +++ b/base/util/src/netscape/security/util/CertPrettyPrint.java @@ -40,7 +40,7 @@ import org.mozilla.jss.pkcs7.SignedData; /** * This class will display the certificate content in predefined * format. - * + * * @author Jack Pan-Chen * @version $Revision$, $Date$ */ @@ -82,7 +82,7 @@ public class CertPrettyPrint { /** * This method return string representation of the certificate * in predefined format using specified client local. I18N Support. - * + * * @param clientLocale Locale to be used for localization * @return string representation of the certificate */ diff --git a/base/util/src/netscape/security/util/CrlPrettyPrint.java b/base/util/src/netscape/security/util/CrlPrettyPrint.java index edf1217ea..77c1e196f 100644 --- a/base/util/src/netscape/security/util/CrlPrettyPrint.java +++ b/base/util/src/netscape/security/util/CrlPrettyPrint.java @@ -32,7 +32,7 @@ import netscape.security.x509.X509CRLImpl; /** * This class will display the certificate content in predefined * format. - * + * * @author Andrew Wnuk * @version $Revision$, $Date$ */ @@ -66,7 +66,7 @@ public class CrlPrettyPrint { * This method return string representation of the certificate * revocation list in predefined format using specified client * local. I18N Support. - * + * * @param clientLocale Locale to be used for localization * @return string representation of the certificate */ diff --git a/base/util/src/netscape/security/util/DerEncoder.java b/base/util/src/netscape/security/util/DerEncoder.java index c2eb64fc0..b19ca2cd2 100644 --- a/base/util/src/netscape/security/util/DerEncoder.java +++ b/base/util/src/netscape/security/util/DerEncoder.java @@ -23,7 +23,7 @@ import java.io.OutputStream; /** * Interface to an object that knows how to write its own DER * encoding to an output stream. - * + * * @version 1.2 97/12/10 * @author D. N. Hoover */ @@ -31,7 +31,7 @@ public interface DerEncoder { /** * DER encode this object and write the results to a stream. - * + * * @param out the stream on which the DER encoding is written. */ public void derEncode(OutputStream out) diff --git a/base/util/src/netscape/security/util/DerInputBuffer.java b/base/util/src/netscape/security/util/DerInputBuffer.java index 7534f3d06..429bf4d6a 100644 --- a/base/util/src/netscape/security/util/DerInputBuffer.java +++ b/base/util/src/netscape/security/util/DerInputBuffer.java @@ -27,7 +27,7 @@ import java.io.OutputStream; * does so with impunity, since it's not intended to be exposed to the * anyone who could violate the "typed value stream" DER model and hence * corrupt the input stream of DER values. - * + * * @version 1.11 * @author David Brownell */ diff --git a/base/util/src/netscape/security/util/DerInputStream.java b/base/util/src/netscape/security/util/DerInputStream.java index 20ced6757..7508f81b9 100644 --- a/base/util/src/netscape/security/util/DerInputStream.java +++ b/base/util/src/netscape/security/util/DerInputStream.java @@ -31,18 +31,18 @@ import java.util.Vector; * the advantage that it allows only a single encoding of primitive data. * (High level data such as dates still support many encodings.) That is, * it uses the "Definite" Encoding Rules (DER) not the "Basic" ones (BER). - * + * * <P> * Note that, like BER/1, DER streams are streams of explicitly tagged data values. Accordingly, this programming * interface does not expose any variant of the java.io.InputStream interface, since that kind of input stream holds * untagged data values and using that I/O model could prevent correct parsing of the DER data. - * + * * <P> * At this time, this class supports only a subset of the types of DER data encodings which are defined. That subset is * sufficient for parsing most X.509 certificates. - * + * * @version 1.35 - * + * * @author David Brownell * @author Amit Kapoor * @author Hemma Prafullchandra @@ -60,7 +60,7 @@ public class DerInputStream { * Create a DER input stream from a data buffer. The buffer is not * copied, it is shared. Accordingly, the buffer should be treated * as read-only. - * + * * @param data the buffer from which to create the string (CONSUMED) */ public DerInputStream(byte[] data) { @@ -72,7 +72,7 @@ public class DerInputStream { * Create a DER input stream from part of a data buffer. * The buffer is not copied, it is shared. Accordingly, the * buffer should be treated as read-only. - * + * * @param data the buffer from which to create the string (CONSUMED) * @param offset the first index of <em>data</em> which will * be read as DER input in the new stream @@ -91,7 +91,7 @@ public class DerInputStream { /** * Creates a new DER input stream from part of this input stream. - * + * * @param len how long a chunk of the current input stream to use, * starting at the current position. * @param do_skip true if the existing data in the input stream should @@ -173,8 +173,8 @@ public class DerInputStream { int length = getLength(buffer) - 1; /* - * First byte = number of excess bits in the last octet of the - * representation. + * First byte = number of excess bits in the last octet of the + * representation. */ int validBits = length * 8 - buffer.read(); @@ -231,7 +231,7 @@ public class DerInputStream { * ordered, and they are often used, like a "struct" in C or C++, * to group data values. They may have optional or context * specific values. - * + * * @param startLen guess about how long the sequence will be * (used to initialize an auto-growing data structure) * @return array of the values in the sequence @@ -256,7 +256,7 @@ public class DerInputStream { * though DER may specify an order for some kinds of sets (such * as the attributes in an X.500 relative distinguished name) * to facilitate binary comparisons of encoded values. - * + * * @param startLen guess about how large the set will be * (used to initialize an auto-growing data structure) * @return array of the values in the sequence @@ -272,7 +272,7 @@ public class DerInputStream { * though DER may specify an order for some kinds of sets (such * as the attributes in an X.500 relative distinguished name) * to facilitate binary comparisons of encoded values. - * + * * @param startLen guess about how large the set will be * (used to initialize an auto-growing data structure) * @param implicit if true tag is assumed implicit. @@ -299,7 +299,7 @@ public class DerInputStream { if (len == 0) // return empty array instead of null, which should be - // used only for missing optionals + // used only for missing optionals return new DerValue[0]; /* diff --git a/base/util/src/netscape/security/util/DerOutputStream.java b/base/util/src/netscape/security/util/DerOutputStream.java index 62290d604..df16d0b38 100644 --- a/base/util/src/netscape/security/util/DerOutputStream.java +++ b/base/util/src/netscape/security/util/DerOutputStream.java @@ -36,13 +36,13 @@ import java.util.TimeZone; * Output stream marshaling DER-encoded data. This is eventually provided * in the form of a byte array; there is no advance limit on the size of * that byte array. - * + * * <P> * At this time, this class supports only a subset of the types of DER data encodings which are defined. That subset is * sufficient for generating most X.509 certificates. - * + * * @version 1.32 - * + * * @author David Brownell * @author Amit Kapoor * @author Hemma Prafullchandra @@ -51,7 +51,7 @@ public class DerOutputStream extends ByteArrayOutputStream implements DerEncoder { /** * Construct an DER output stream. - * + * * @param size how large a buffer to preallocate. */ public DerOutputStream(int size) { @@ -68,7 +68,7 @@ public class DerOutputStream * Writes tagged, pre-marshaled data. This calcuates and encodes * the length, so that the output data is the standard triple of * { tag, length, data } used by all DER values. - * + * * @param tag the DER value tag for the data, such as <em>DerValue.tag_Sequence</em> * @param buf buffered data, which must be DER-encoded */ @@ -82,7 +82,7 @@ public class DerOutputStream * Writes tagged data using buffer-to-buffer copy. As above, * this writes a standard DER record. This is often used when * efficiently encapsulating values in sequences. - * + * * @param tag the DER value tag for the data, such as <em>DerValue.tag_Sequence</em> * @param out buffered data */ @@ -96,14 +96,14 @@ public class DerOutputStream * Writes implicitly tagged data using buffer-to-buffer copy. As above, * this writes a standard DER record. This is often used when * efficiently encapsulating implicitly tagged values. - * + * * @param tag the DER value of the context-specific tag that replaces * original tag of the value in the output , such as in - * + * * <pre> * <em> <field> [N] IMPLICIT <type></em> * </pre> - * + * * For example, <em>FooLength [1] IMPLICIT INTEGER</em>, with value=4; * would be encoded as "81 01 04" whereas in explicit * tagging it would be encoded as "A1 03 02 01 04". @@ -236,7 +236,7 @@ public class DerOutputStream /** * Marshals a DER bit string on the output stream. The bit * string must be byte-aligned. - * + * * @param bits the bit string, MSB first */ public void putBitString(byte[] bits) throws IOException { @@ -297,7 +297,7 @@ public class DerOutputStream byte lastByte = bitString[maxIndex]; length = (maxIndex + 1) * 8; // maximum, might reduce in next step - // now find the last 1 bit in this last byte + // now find the last 1 bit in this last byte for (i = 1; i <= 0x80; i <<= 1) { if ((lastByte & i) == 0) { length--; @@ -311,7 +311,7 @@ public class DerOutputStream /** * Marshals a DER bit string on the output stream. * The bit strings need not be byte-aligned. - * + * * @param bits the bit string, MSB first */ public void putUnalignedBitString(BitArray ba) throws IOException { @@ -327,7 +327,7 @@ public class DerOutputStream * Marshals a DER bit string on the output stream. * All trailing 0 bits will be stripped off in accordance with DER * encoding. - * + * * @param bits the bit string, MSB first */ public void putUnalignedBitString(byte[] bitString) throws IOException { @@ -338,7 +338,7 @@ public class DerOutputStream * Marshals a DER bit string on the output stream. * All trailing 0 bits will be stripped off in accordance with DER * encoding. - * + * * @param bits the bit string as an array of booleans. */ public void putUnalignedBitString(boolean[] bitString) throws IOException { @@ -347,7 +347,7 @@ public class DerOutputStream /** * DER-encodes an ASN.1 OCTET STRING value on the output stream. - * + * * @param octets the octet string */ public void putOctetString(byte[] octets) throws IOException { @@ -390,7 +390,7 @@ public class DerOutputStream * Marshals the contents of a set on the output stream without * ordering the elements. Ok for BER encoding, but not for DER * encoding. - * + * * For DER encoding, use orderedPutSet() or orderedPutSetOf(). */ public void putSet(DerValue[] set) throws IOException { @@ -419,7 +419,7 @@ public class DerOutputStream * set elements be sorted into ascending lexicographical order * before being output. Hence sets with the same tags and * elements have the same DER encoding. - * + * * This method supports the ASN.1 "SET OF" construct, but not * "SET", which uses a different order. */ @@ -433,7 +433,7 @@ public class DerOutputStream * set elements be sorted into ascending tag order * before being output. Hence sets with the same tags and * elements have the same DER encoding. - * + * * This method supports the ASN.1 "SET" construct, but not * "SET OF", which uses a different order. */ @@ -456,7 +456,7 @@ public class DerOutputStream /** * Marshals a the contents of a set on the output stream with the * encodings of its sorted in increasing order. - * + * * @param order the order to use when sorting encodings of components. */ private void putOrderedSet(byte tag, DerEncoder[] set, @@ -612,7 +612,7 @@ public class DerOutputStream /** * Marshals a DER UTC time/date value. - * + * * <P> * YYMMDDhhmmss{Z|+hhmm|-hhmm} ... emits only using Zulu time and with seconds (even if seconds=0) as per IETF-PKIX * partI. @@ -642,7 +642,7 @@ public class DerOutputStream /** * Marshals a DER Generalized Time/date value. - * + * * <P> * YYYYMMDDhhmmss{Z|+hhmm|-hhmm} ... emits only using Zulu time and with seconds (even if seconds=0) as per * IETF-PKIX partI. @@ -669,7 +669,7 @@ public class DerOutputStream /** * Put the encoding of the length in the stream. - * + * * @param len the length of the attribute. * @exception IOException on writing errors. */ @@ -703,7 +703,7 @@ public class DerOutputStream /** * Put the tag of the attribute in the stream. - * + * * @param class the tag class type, one of UNIVERSAL, CONTEXT, * APPLICATION or PRIVATE * @param form if true, the value is constructed, otherwise it is @@ -720,7 +720,7 @@ public class DerOutputStream /** * Write the current contents of this <code>DerOutputStream</code> to an <code>OutputStream</code>. - * + * * @exception IOException on output error. */ public void derEncode(OutputStream out) throws IOException { diff --git a/base/util/src/netscape/security/util/DerValue.java b/base/util/src/netscape/security/util/DerValue.java index 71b6f7f2c..40215626a 100644 --- a/base/util/src/netscape/security/util/DerValue.java +++ b/base/util/src/netscape/security/util/DerValue.java @@ -34,18 +34,18 @@ import netscape.security.x509.GenericValueConverter; * Represents a single DER-encoded value. DER encoding rules are a subset * of the "Basic" Encoding Rules (BER), but they only support a single way * ("Definite" encoding) to encode any given value. - * + * * <P> * All DER-encoded data are triples <em>{type, length, data}</em>. This class represents such tagged values as they have * been read (or constructed), and provides structured access to the encoded data. - * + * * <P> * At this time, this class supports only a subset of the types of DER data encodings which are defined. That subset is * sufficient for parsing most X.509 certificates, and working with selected additional formats (such as PKCS #10 * certificate requests, and some kinds of PKCS #7 data). - * + * * @version 1.43 - * + * * @author David Brownell * @author Amit Kapoor * @author Hemma Prafullchandra @@ -215,7 +215,7 @@ public class DerValue { /** * Creates a DerValue from a tag and some DER-encoded data. - * + * * @param tag the DER type tag * @param data the DER-encoded data */ @@ -229,7 +229,7 @@ public class DerValue { /** * Creates a DerValue from a tag and some DER-encoded data. - * + * * @param tag the DER type tag * @param data the DER-encoded data * @param offset offset of the data @@ -264,7 +264,7 @@ public class DerValue { * Get an ASN.1/DER encoded datum from a buffer. The * entire buffer must hold exactly one datum, including * its tag and length. - * + * * @param buf buffer holding a single DER-encoded datum. */ public DerValue(byte[] buf) throws IOException { @@ -275,7 +275,7 @@ public class DerValue { * Get an ASN.1/DER encoded datum from part of a buffer. * That part of the buffer must hold exactly one datum, including * its tag and length. - * + * * @param buf the buffer * @param offset start point of the single DER-encoded dataum * @param length how many bytes are in the encoded datum @@ -287,7 +287,7 @@ public class DerValue { /** * Get an ASN1/DER encoded datum from an input stream. The * stream may have additional data following the encoded datum. - * + * * @param in the input stream holding a single DER datum, * which may be followed by additional data */ @@ -336,7 +336,7 @@ public class DerValue { /** * Returns an ASN.1 BOOLEAN - * + * * @return the boolean held in this DER value */ public boolean getBoolean() throws IOException { @@ -354,7 +354,7 @@ public class DerValue { /** * Returns an ASN.1 OBJECT IDENTIFIER. - * + * * @return the OID held in this DER value */ public ObjectIdentifier getOID() throws IOException { @@ -365,7 +365,7 @@ public class DerValue { /** * Returns an ASN.1 OCTET STRING - * + * * @return the octet string held in this DER value */ public byte[] getOctetString() throws IOException { @@ -382,7 +382,7 @@ public class DerValue { /** * Returns an ASN.1 unsigned integer value of enumerated value. - * + * * @return the (unsigned) integer held in this DER value */ public int getEnumerated() @@ -412,7 +412,7 @@ public class DerValue { /** * Returns an ASN.1 unsigned INTEGER value. - * + * * @return the (unsigned) integer held in this DER value */ public BigInt getInteger() throws IOException { @@ -424,7 +424,7 @@ public class DerValue { /** * Returns an ASN.1 unsigned INTEGER value, the parameter determining * if the tag is implicit. - * + * * @param tagImplicit if true, ignores the tag value as it is * assumed implicit. * @return the (unsigned) integer held in this DER value @@ -441,7 +441,7 @@ public class DerValue { /** * Returns an ASN.1 BIT STRING value. The bit string must be byte-aligned. - * + * * @return the bit string held in this value */ public byte[] getBitString() throws IOException { @@ -454,7 +454,7 @@ public class DerValue { /** * Returns an ASN.1 BIT STRING value that need not be byte-aligned. - * + * * @return a BitArray representing the bit string held in this value */ public BitArray getUnalignedBitString() throws IOException { @@ -477,7 +477,7 @@ public class DerValue { /** * Returns an ASN.1 BIT STRING value, with the tag assumed implicit * based on the parameter. The bit string must be byte-aligned. - * + * * @param tagImplicit if true, the tag is assumed implicit. * @return the bit string held in this value */ @@ -493,7 +493,7 @@ public class DerValue { /** * Returns an ASN.1 BIT STRING value, with the tag assumed implicit * based on the parameter. The bit string need not be byte-aligned. - * + * * @param tagImplicit if true, the tag is assumed implicit. * @return the bit string held in this value */ @@ -509,7 +509,7 @@ public class DerValue { /** * Returns an ASN.1 STRING value - * + * * @return the printable string held in this value */ public String getPrintableString() @@ -546,7 +546,7 @@ public class DerValue { /** * Returns an ASN.1 T61 (Teletype) STRING value - * + * * @return the teletype string held in this value */ public String getT61String() throws IOException { @@ -559,7 +559,7 @@ public class DerValue { /** * Returns an ASN.1 IA5 (ASCII) STRING value - * + * * @return the ASCII string held in this value */ public String getIA5String() throws IOException { @@ -600,7 +600,7 @@ public class DerValue { /** * Returns true iff the other object is a DER value which * is bitwise equal to this one. - * + * * @param other the object being compared with this one */ public boolean equals(Object other) { @@ -614,7 +614,7 @@ public class DerValue { * Bitwise equality comparison. DER encoded values have a single * encoding, so that bitwise equality of the encoded values is an * efficient way to establish equivalence of the unencoded values. - * + * * @param other the object being compared with this one */ public boolean equals(DerValue other) { @@ -631,7 +631,7 @@ public class DerValue { /** * Returns a printable representation of the value. - * + * * @return printable representation of the value */ public String toString() { @@ -656,7 +656,7 @@ public class DerValue { /** * Returns a DER-encoded value, such that if it's passed to the * DerValue constructor, a value equivalent to "this" is returned. - * + * * @return DER-encoded value, including tag and length. */ public byte[] toByteArray() throws IOException { @@ -688,7 +688,7 @@ public class DerValue { /** * Create the tag of the attribute. - * + * * @param class the tag class type, one of UNIVERSAL, CONTEXT, * APPLICATION or PRIVATE * @param form if true, the value is constructed, otherwise it @@ -706,7 +706,7 @@ public class DerValue { /** * Set the tag of the attribute. Commonly used to reset the * tag value used for IMPLICIT encodings. - * + * * @param tag the tag value */ public void resetTag(byte tag) { diff --git a/base/util/src/netscape/security/util/ExtPrettyPrint.java b/base/util/src/netscape/security/util/ExtPrettyPrint.java index 90d0d094f..c0e9050ea 100644 --- a/base/util/src/netscape/security/util/ExtPrettyPrint.java +++ b/base/util/src/netscape/security/util/ExtPrettyPrint.java @@ -80,7 +80,7 @@ import netscape.security.x509.UserNotice; /** * This class will display the certificate content in predefined * format. - * + * * @author Andrew Wnuk * @version $Revision$, $Date$ */ @@ -115,7 +115,7 @@ public class ExtPrettyPrint { /** * This method return string representation of the certificate * in predefined format using specified client local. I18N Support. - * + * * @param clientLocale Locale to be used for localization * @return string representation of the certificate */ diff --git a/base/util/src/netscape/security/util/IA5CharsetDecoder.java b/base/util/src/netscape/security/util/IA5CharsetDecoder.java index 620d65aca..106bf9fb7 100644 --- a/base/util/src/netscape/security/util/IA5CharsetDecoder.java +++ b/base/util/src/netscape/security/util/IA5CharsetDecoder.java @@ -26,7 +26,7 @@ import java.nio.charset.CodingErrorAction; /** * Converts bytes in ASN.1 IA5String character set to IA5String characters. - * + * * @author Lily Hsiao * @author Slava Galperin */ diff --git a/base/util/src/netscape/security/util/IA5CharsetEncoder.java b/base/util/src/netscape/security/util/IA5CharsetEncoder.java index dad0c9a2d..6581e95b1 100644 --- a/base/util/src/netscape/security/util/IA5CharsetEncoder.java +++ b/base/util/src/netscape/security/util/IA5CharsetEncoder.java @@ -26,7 +26,7 @@ import java.nio.charset.CodingErrorAction; /** * Converts characters in ASN.1 IA5String character set to IA5String bytes. - * + * * @author Lily Hsiao * @author Slava Galperin */ diff --git a/base/util/src/netscape/security/util/ObjectIdentifier.java b/base/util/src/netscape/security/util/ObjectIdentifier.java index 6ff02d1b0..a1d7b0a75 100644 --- a/base/util/src/netscape/security/util/ObjectIdentifier.java +++ b/base/util/src/netscape/security/util/ObjectIdentifier.java @@ -24,19 +24,19 @@ import java.util.StringTokenizer; /** * Represent an ISO Object Identifier. - * + * * <P> * Object Identifiers are arbitrary length hierarchical identifiers. The individual components are numbers, and they * define paths from the root of an ISO-managed identifier space. You will sometimes see a string name used instead of * (or in addition to) the numerical id. These are synonyms for the numerical IDs, but are not widely used since most * sites do not know all the requisite strings, while all sites can parse the numeric forms. - * + * * <P> * So for example, JavaSoft has the sole authority to assign the meaning to identifiers below the 1.3.6.1.4.42.2.17 node * in the hierarchy, and other organizations can easily acquire the ability to assign such unique identifiers. - * + * * @version 1.23 - * + * * @author David Brownell * @author Amit Kapoor * @author Hemma Prafullchandra @@ -95,11 +95,11 @@ final public class ObjectIdentifier implements Serializable { * Constructs an object ID from an ASN.1 encoded input stream. * The encoding of the ID in the stream uses "DER", a BER/1 subset. * In this case, that means a triple { typeId, length, data }. - * + * * <P> * <STRONG>NOTE:</STRONG> When an exception is thrown, the input stream has not been returned to its "initial" * state. - * + * * @param in DER-encoded data holding an object ID * @exception IOException indicates a decoding error */ @@ -275,7 +275,7 @@ final public class ObjectIdentifier implements Serializable { /** * Compares this identifier with another, for sorting purposes. * An identifier does not precede itself. - * + * * @param other identifer that may precede this one. * @return true iff <em>other</em> precedes this one * in a particular sorting order. @@ -308,7 +308,7 @@ final public class ObjectIdentifier implements Serializable { /** * Compares this identifier with another, for equality. - * + * * @return true iff the names are identical. */ public boolean equals(ObjectIdentifier other) { @@ -372,7 +372,7 @@ final public class ObjectIdentifier implements Serializable { * should help reduces in-memory Object Identifier object. * This function also provide additional checking on the OID. * A valid OID should start with 0, 1, or 2. - * + * * Notes: * This function never returns null. IOException is raised * in error conditions. diff --git a/base/util/src/netscape/security/util/PrettyPrintFormat.java b/base/util/src/netscape/security/util/PrettyPrintFormat.java index 25bc23d26..4bbc87936 100644 --- a/base/util/src/netscape/security/util/PrettyPrintFormat.java +++ b/base/util/src/netscape/security/util/PrettyPrintFormat.java @@ -20,7 +20,7 @@ package netscape.security.util; /** * This class will display the certificate content in predefined * format. - * + * * @author Andrew Wnuk * @version $Revision$, $Date$ */ @@ -74,7 +74,7 @@ public class PrettyPrintFormat { /** * Provide white space indention * stevep - speed improvements. Factor of 10 improvement - * + * * @param numSpace number of white space to be returned * @return white spaces */ @@ -90,7 +90,7 @@ public class PrettyPrintFormat { /** * Convert Byte Array to Hex String Format * stevep - speedup by factor of 8 - * + * * @param byte array of data to hexify * @param indentSize number of spaces to prepend before each line * @param lineLen number of bytes to output on each line (0 diff --git a/base/util/src/netscape/security/util/PrettyPrintResources.java b/base/util/src/netscape/security/util/PrettyPrintResources.java index a3f068f64..2c91a0ef0 100644 --- a/base/util/src/netscape/security/util/PrettyPrintResources.java +++ b/base/util/src/netscape/security/util/PrettyPrintResources.java @@ -24,7 +24,7 @@ import netscape.security.x509.KeyUsageExtension; /** * Resource Boundle for the Pretty Print - * + * * @author Jack Pan-Chen * @version $Revision$, $Date$ */ diff --git a/base/util/src/netscape/security/util/PrintableCharsetDecoder.java b/base/util/src/netscape/security/util/PrintableCharsetDecoder.java index 014095494..cf557d492 100644 --- a/base/util/src/netscape/security/util/PrintableCharsetDecoder.java +++ b/base/util/src/netscape/security/util/PrintableCharsetDecoder.java @@ -27,7 +27,7 @@ import java.nio.charset.CodingErrorAction; /** * Converts bytes in ASN.1 PrintableString character set to PrintableString * characters. - * + * * @author Lily Hsiao * @author Slava Galperin */ diff --git a/base/util/src/netscape/security/util/PrintableCharsetEncoder.java b/base/util/src/netscape/security/util/PrintableCharsetEncoder.java index bc658096a..9ee40ad15 100644 --- a/base/util/src/netscape/security/util/PrintableCharsetEncoder.java +++ b/base/util/src/netscape/security/util/PrintableCharsetEncoder.java @@ -27,7 +27,7 @@ import java.nio.charset.CodingErrorAction; /** * Converts characters in ASN.1 PrintableString character set to PrintableString * bytes. - * + * * @author Lily Hsiao * @author Slava Galperin */ diff --git a/base/util/src/netscape/security/util/PubKeyPrettyPrint.java b/base/util/src/netscape/security/util/PubKeyPrettyPrint.java index 46c007cd9..88fcdddb5 100644 --- a/base/util/src/netscape/security/util/PubKeyPrettyPrint.java +++ b/base/util/src/netscape/security/util/PubKeyPrettyPrint.java @@ -27,7 +27,7 @@ import netscape.security.x509.X509Key; /** * This class will display the certificate content in predefined * format. - * + * * @author Jack Pan-Chen * @author Andrew Wnuk * @version $Revision$, $Date$ @@ -58,7 +58,7 @@ public class PubKeyPrettyPrint { /** * This method return string representation of the certificate * in predefined format using specified client local. I18N Support. - * + * * @param clientLocale Locale to be used for localization * @return string representation of the certificate */ diff --git a/base/util/src/netscape/security/util/UniversalCharsetDecoder.java b/base/util/src/netscape/security/util/UniversalCharsetDecoder.java index a41c5ad50..cb23ec7e2 100644 --- a/base/util/src/netscape/security/util/UniversalCharsetDecoder.java +++ b/base/util/src/netscape/security/util/UniversalCharsetDecoder.java @@ -27,7 +27,7 @@ import java.nio.charset.CodingErrorAction; /** * Converts bytes in ASN.1 UniversalString character set to UniversalString * characters. - * + * * @author Lily Hsiao * @author Slava Galperin */ diff --git a/base/util/src/netscape/security/util/UniversalCharsetEncoder.java b/base/util/src/netscape/security/util/UniversalCharsetEncoder.java index cd2a51296..bb9ad4fcc 100644 --- a/base/util/src/netscape/security/util/UniversalCharsetEncoder.java +++ b/base/util/src/netscape/security/util/UniversalCharsetEncoder.java @@ -26,7 +26,7 @@ import java.nio.charset.CoderResult; /** * Converts characters in ASN.1 UniversalString character set to UniversalString * bytes. - * + * * @author Lily Hsiao * @author Slava Galperin */ |