Package org.bouncycastle.asn1
Class ASN1Null
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.ASN1Primitive
org.bouncycastle.asn1.ASN1Null
- All Implemented Interfaces:
ASN1Encodable,Encodable
- Direct Known Subclasses:
DERNull
A NULL object - use DERNull.INSTANCE for populating structures.
-
Method Summary
Methods inherited from class org.bouncycastle.asn1.ASN1Primitive
encodeTo, encodeTo, equals, equals, equals, fromByteArray, toASN1PrimitiveMethods inherited from class org.bouncycastle.asn1.ASN1Object
getEncoded, getEncoded, hasEncodedTagValue
-
Method Details
-
getInstance
Return an instance of ASN.1 NULL from the passed in object.Accepted inputs:
- null → null
-
ASN1Nullobject - a byte[] containing ASN.1 NULL object
- Parameters:
o- object to be converted.- Returns:
- an instance of ASN1Null, or null.
- Throws:
IllegalArgumentException- if the object cannot be converted.
-
hashCode
public int hashCode()- Specified by:
hashCodein classASN1Primitive
-
toString
-