pasn
Interface ASN1PrimitiveObject<T>

Type Parameters:
T -
All Superinterfaces:
ASN1DefaultValuedObject, ASN1EncodingSpecificObject, ASN1GenericObject, ASN1Resetable
All Known Subinterfaces:
ASN1PrimitiveOrConstructedObject<T>
All Known Implementing Classes:
ASN1BitString, ASN1BMPString, ASN1Boolean, ASN1Enumerated, ASN1GeneralizedTime, ASN1GeneralString, ASN1GraphicString, ASN1IA5String, ASN1Identifier, ASN1Integer, ASN1Null, ASN1NumericString, ASN1ObjectIdentifier, ASN1OctetString, ASN1PrintableString, ASN1RelativeIdentifier, ASN1SimpleObject, ASN1String, ASN1TeletexString, ASN1Time, ASN1UnformedOrderedObject, ASN1UniversalString, ASN1UTCTime, ASN1UTF8String, ASN1VideotexString, ASN1VisibleString

public interface ASN1PrimitiveObject<T>
extends ASN1GenericObject

Defines PRIMITIVE ASN.1 objects as constrained objects having a value and a default value

Author:
ncottin

Method Summary
 T getDefaultValue()
           
 T getValue()
           
 T getValueOrDefault()
           
 void setDecodedValue(java.lang.Object value)
           
 void setValue(T value)
           Initialializes this ASN.1 object with an appropriate value
 void validateConstraints(T value)
           
 
Methods inherited from interface pasn.ASN1GenericObject
getASN1Name, getAsnClass, getType, hasValue
 
Methods inherited from interface pasn.ASN1DefaultValuedObject
hasDefaultValue, hasValueOrDefault, isValueDefault
 
Methods inherited from interface pasn.ASN1EncodingSpecificObject
getSpecificEncoding, hasSpecificEncodings
 
Methods inherited from interface pasn.ASN1Resetable
reset
 

Method Detail

setValue

void setValue(T value)
              throws ASN1ConstraintException

Initialializes this ASN.1 object with an appropriate value

Parameters:
value - A possibly null value
Throws:
ASN1ConstraintException

getValue

T getValue()

getDefaultValue

T getDefaultValue()

getValueOrDefault

T getValueOrDefault()

setDecodedValue

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

validateConstraints

void validateConstraints(T value)
                         throws ASN1ConstraintException
Throws:
ASN1ConstraintException