pasn
Class ASN1Null
java.lang.Object
pasn.ASN1Object
pasn.ASN1SimpleObject<java.lang.Object>
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
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
ASN1Null
public ASN1Null()
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