org.webdocwf.util.smime.der
Class DERBitString
java.lang.Object
|
+--org.webdocwf.util.smime.der.DERObject
|
+--org.webdocwf.util.smime.der.DERBitString
- public class DERBitString
- extends DERObject
DERBitString is primitive type of DER encoded object which represents bit
string (array of bits) in ASN.1 notation.
Constructor Summary |
DERBitString(boolean[] bitsArray0)
Constructs DERBitString object from boolean array which has only two values
of his elements: true and false. |
DERBitString(byte[] bitStr0)
Constructs bit string represented as byte array without information about
unused bits (no bits are unused). |
DERBitString(byte[] bitStr0,
int unused0)
Constructs DERBitString object from bits organised in bytes with information
about last few unused bits. |
DERBitString(java.lang.String bitStr0)
Constructs DERBitString object from string which has only two values of his
elements: 0 and 1 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DERBitString
public DERBitString(java.lang.String bitStr0)
throws SMIMEException
- Constructs DERBitString object from string which has only two values of his
elements: 0 and 1
- Parameters:
bitStr0
- String consisting of 0 and 1 elements- Throws:
SMIMEException
- thrown in super class constructor or in super class
method addContent.
DERBitString
public DERBitString(boolean[] bitsArray0)
throws SMIMEException
- Constructs DERBitString object from boolean array which has only two values
of his elements: true and false.
- Parameters:
bitsArray0
- array consisting of boolean elements- Throws:
SMIMEException
- thrown in super class constructor or in super class
method addContent.
DERBitString
public DERBitString(byte[] bitStr0,
int unused0)
throws SMIMEException
- Constructs DERBitString object from bits organised in bytes with information
about last few unused bits. This information is important in generation of
DER object because first byte in Content Octets part of DERBitString
represents number of DERBitString.
- Parameters:
bitStr0
- bit string represented as byte arrayunused0
- number of last few unused bits from last input byte
(must be in range 0-7)- Throws:
SMIMEException
- if number of unused bits isn't between 0-7. Also,
it can be thrown in super class constructor or addContent method.
DERBitString
public DERBitString(byte[] bitStr0)
throws SMIMEException
- Constructs bit string represented as byte array without information about
unused bits (no bits are unused).
- Parameters:
bitStr0
- bit string represented as byte array- Throws:
SMIMEException
- thrown in super class constructor or addContent
method of super class.
Copyright © 2002-2002 Together Teamlösungen. All Rights Reserved.