|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--iaik.asn1.ASN1Object | +--demo.asn1.PrivateASN1Type
This class shows an example of how to use private or application tags.
Fields inherited from class iaik.asn1.ASN1Object |
asnType, constructed, encode_listener, indefinite_length, isStringType, stream_mode |
Constructor Summary | |
PrivateASN1Type()
The default constructor. |
|
PrivateASN1Type(int x,
int y)
Create a new PrivateASN1Type form the coordinates. |
|
PrivateASN1Type(Point point)
Create a new PrivateASN1Type form a Point. |
Method Summary | |
protected void |
decode(int length,
InputStream is)
Decodes the next available data from the InputStream. |
protected void |
encode(OutputStream os)
DER encodes this BOOLEAN ASN1Object and writes the result to the DerEncodeOutputStream. |
Object |
getValue()
Returns the value of this ASN1Object. |
static void |
main(String[] argv)
Test our new private ASN.1 type. |
void |
setValue(Object object)
Sets the value of this ASN1Object. |
static void |
start()
|
String |
toString()
Returns a string that represents the contents of this private ASN.1 object. |
Methods inherited from class iaik.asn1.ASN1Object |
addComponent, addEncodeListener, clone, countComponents, encodeObject, getAsnType, getComponentAt, indefiniteLength, isA, isConstructed, isStringType, setIndefiniteLength |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PrivateASN1Type()
public PrivateASN1Type(Point point)
point
- a Pointpublic PrivateASN1Type(int x, int y)
x
- the x coordinatey
- the y coordinateMethod Detail |
public void setValue(Object object)
setValue
in class ASN1Object
object
- the value object the value of this ASN1Object should be set topublic Object getValue()
getValue
in class ASN1Object
protected void encode(OutputStream os) throws IOException
encode
in class ASN1Object
os
- the output stream to which to write the dataprotected void decode(int length, InputStream is) throws IOException, CodingException
decode
in class ASN1Object
length
- the length of the ASN1Object which shall be decodedis
- the input stream from which the DER encoded data is read inIOException
- if there is a problem with the InputStreamCodingException
- if the bytes from is
could not be decodedpublic String toString()
toString
in class ASN1Object
ASN1Object.toString()
public static void start()
public static void main(String[] argv) throws IOException
|
This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |