pasn
Class ASN1Null

java.lang.Object
  extended by pasn.ASN1Object
      extended by pasn.ASN1SimpleObject<java.lang.Object>
          extended by pasn.ASN1Null
All Implemented Interfaces:
ASN1DefaultValuedObject, ASN1EncodingSpecificObject, ASN1GenericObject, ASN1PrimitiveObject<java.lang.Object>, ASN1Resetable

public class ASN1Null
extends ASN1SimpleObject<java.lang.Object>

An ASN.1 NULL object is a paradoxal object in the sense that it represents no datum. Its main usage relies in protocols acknowledgements and is also used within PKCS algorithms parameters. As it holds no internal value, this ASN.1 object may always be encoded, which means that there is no point in dealing with DEFAULT values for such objects within structured types

Author:
ncottin

Constructor Summary
ASN1Null()
           
 
Method Summary
 java.lang.String getASN1Name()
           
 boolean hasDefaultValue()
           
 boolean hasValue()
           
 boolean isValueDefault()
           
 void reset()
           Removes the value (or list or set of values) of this ASN.1 object.
 void setDecodedValue(java.lang.Object value)
           
 java.lang.String toString()
           
 void validateConstraints(java.lang.Object value)
           
 
Methods inherited from class pasn.ASN1SimpleObject
equals, getDefaultValue, getValue, getValueOrDefault, hasValueOrDefault, setDefaultValue, setValue
 
Methods inherited from class pasn.ASN1Object
getAsnClass, getSpecificEncoding, getSpecificEncoding, getType, hasSpecificEncodings, setSpecificEncoding
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface pasn.ASN1GenericObject
getAsnClass, getType
 
Methods inherited from interface pasn.ASN1EncodingSpecificObject
getSpecificEncoding, hasSpecificEncodings
 

Constructor Detail

ASN1Null

public ASN1Null()
Method Detail

getASN1Name

public final java.lang.String getASN1Name()

isValueDefault

public final boolean isValueDefault()

reset

public final void reset()
Description copied from interface: ASN1Resetable

Removes the value (or list or set of values) of this ASN.1 object. This applies to simple and structured ASN.1 objects


hasValue

public final boolean hasValue()

hasDefaultValue

public final boolean hasDefaultValue()

setDecodedValue

public final void setDecodedValue(java.lang.Object value)
                           throws ASN1FormatException,
                                  ASN1ConstraintException
Throws:
ASN1FormatException
ASN1ConstraintException

validateConstraints

public final void validateConstraints(java.lang.Object value)
                               throws ASN1ConstraintException
Throws:
ASN1ConstraintException

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object