|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.asn1.ASN1Object
Base class for defining an ASN.1 object.
| Constructor Summary | |
ASN1Object()
|
|
| Method Summary | |
void |
encodeTo(java.io.OutputStream output)
|
void |
encodeTo(java.io.OutputStream output,
java.lang.String encoding)
|
boolean |
equals(java.lang.Object o)
|
byte[] |
getEncoded()
Return the default BER or DER encoding for this object. |
byte[] |
getEncoded(java.lang.String encoding)
Return either the default for "BER" or a DER encoding if "DER" is specified. |
protected static boolean |
hasEncodedTagValue(java.lang.Object obj,
int tagValue)
Return true if obj is a byte array and represents an object with the given tag value. |
int |
hashCode()
|
abstract ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ASN1Object()
| Method Detail |
public void encodeTo(java.io.OutputStream output)
throws java.io.IOException
java.io.IOException
public void encodeTo(java.io.OutputStream output,
java.lang.String encoding)
throws java.io.IOException
java.io.IOException
public byte[] getEncoded()
throws java.io.IOException
getEncoded in interface Encodablejava.io.IOException - on encoding error.
public byte[] getEncoded(java.lang.String encoding)
throws java.io.IOException
encoding - name of encoding to use.
java.io.IOException - on encoding error.public int hashCode()
public boolean equals(java.lang.Object o)
protected static boolean hasEncodedTagValue(java.lang.Object obj,
int tagValue)
obj - object of interest.tagValue - tag value to check for.
public abstract ASN1Primitive toASN1Primitive()
toASN1Primitive in interface ASN1Encodable
|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||