pasn
Class ASN1Boolean

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

public class ASN1Boolean
extends ASN1SimpleObject<java.lang.Boolean>

Represents a {true, false} BOOLEAN

Author:
ncottin

Constructor Summary
ASN1Boolean()
           
 
Method Summary
 java.lang.String getASN1Name()
           
 boolean hasDefaultValue()
           
 boolean hasValue()
           
 boolean isTrue()
           
 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.Boolean 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

ASN1Boolean

public ASN1Boolean()
Method Detail

getASN1Name

public final java.lang.String getASN1Name()

isTrue

public final boolean isTrue()

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

toString

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

validateConstraints

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