Top Description Fields Constructors Methods
org.bouncycastle.asn1

public abstract Class ASN1Null

extends ASN1Primitive
Class Inheritance
Known Direct Subclasses
org.bouncycastle.asn1.DERNull
Imports
java.io.IOException

A NULL object - use DERNull.INSTANCE for populating structures.

Field Summary

Modifier and TypeField and Description
pack-priv static final ASN1UniversalType

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
asn1Equals(ASN1Primitive o)

Implements abstract org.bouncycastle.asn1.ASN1Primitive.asn1Equals.

Equality (similarity) comparison for two ASN1Primitive objects.

pack-priv static ASN1Null
createPrimitive(byte[] contents)

public static ASN1Null

Returns:

an instance of ASN1Null, or null.
getInstance
(Object
object to be converted.
o
)

Return an instance of ASN.1 NULL from the passed in object.

public static ASN1Null
getInstance(ASN1TaggedObject taggedObject, boolean explicit)

public int
hashCode()

Implements abstract org.bouncycastle.asn1.ASN1Primitive.hashCode.

Returns a hash code value for this object.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.bouncycastle.asn1.ASN1Primitive:
encodeencodeConstructedencodedLengthencodeToencodeToequalsequalsequalsfromByteArraytoASN1PrimitivetoDERObjecttoDLObject

Field Detail

TYPEback to summary
pack-priv static final ASN1UniversalType TYPE

Constructor Detail

ASN1Nullback to summary
pack-priv ASN1Null()

Method Detail

asn1Equalsback to summary
pack-priv boolean asn1Equals(ASN1Primitive o)

Implements abstract org.bouncycastle.asn1.ASN1Primitive.asn1Equals.

Doc from org.bouncycastle.asn1.ASN1Primitive.asn1Equals.

Equality (similarity) comparison for two ASN1Primitive objects.

createPrimitiveback to summary
pack-priv static ASN1Null createPrimitive(byte[] contents)
getInstanceback to summary
public static ASN1Null getInstance(Object o)

Return an instance of ASN.1 NULL from the passed in object.

Accepted inputs:

  • null → null
  • ASN1Null object
  • a byte[] containing ASN.1 NULL object

Parameters
o:Object

object to be converted.

Returns:ASN1Null

an instance of ASN1Null, or null.

Exceptions
IllegalArgumentException:
if the object cannot be converted.
getInstanceback to summary
public static ASN1Null getInstance(ASN1TaggedObject taggedObject, boolean explicit)
hashCodeback to summary
public int hashCode()

Implements abstract org.bouncycastle.asn1.ASN1Primitive.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Returns:int

a hash code value for this object

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object