pasn
Interface ASN1PrimitiveOrConstructedObject<T>

Type Parameters:
T -
All Superinterfaces:
ASN1ConstructedObject, ASN1DefaultValuedObject, ASN1EncodingSpecificObject, ASN1GenericObject, ASN1PrimitiveObject<T>, ASN1Resetable
All Known Implementing Classes:
ASN1BitString, ASN1OctetString, ASN1UnformedOrderedObject

public interface ASN1PrimitiveOrConstructedObject<T>
extends ASN1PrimitiveObject<T>, ASN1ConstructedObject

Author:
ncottin

Method Summary
 java.util.Collection<ASN1PrimitiveObject> getConstructedValues(int maxSize)
           
 int getDefaultValueLength()
           
 int getValueLength()
           
 boolean isPrimitive()
           
 ASN1PrimitiveOrConstructedObject newInstance()
           
 void setConstructedValues(java.util.Collection<ASN1PrimitiveOrConstructedObject> values)
           
 
Methods inherited from interface pasn.ASN1PrimitiveObject
getDefaultValue, getValue, getValueOrDefault, setDecodedValue, setValue, validateConstraints
 
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
 
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

isPrimitive

boolean isPrimitive()

getValueLength

int getValueLength()
Returns:
The number of octets of the current value or 0 if no value

getDefaultValueLength

int getDefaultValueLength()
Returns:
The number of octets of the current default value or 0 if no default value

getConstructedValues

java.util.Collection<ASN1PrimitiveObject> getConstructedValues(int maxSize)
                                                               throws ASN1ConstraintException
Throws:
ASN1ConstraintException

setConstructedValues

void setConstructedValues(java.util.Collection<ASN1PrimitiveOrConstructedObject> values)
                          throws ASN1DecodingException,
                                 ASN1ConstraintException,
                                 java.lang.ClassCastException
Throws:
ASN1DecodingException
ASN1ConstraintException
java.lang.ClassCastException

newInstance

ASN1PrimitiveOrConstructedObject newInstance()