Package org.bouncycastle.oer
Class OERDefinition.Element
java.lang.Object
org.bouncycastle.oer.OERDefinition.Element
- Enclosing class:
- OERDefinition
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal OERDefinition.BaseType
final List<OERDefinition.Element>
final org.bouncycastle.asn1.ASN1Encodable
final BigInteger
final boolean
final boolean
final String
final BigInteger
final BigInteger
-
Constructor Summary
ConstructorsConstructorDescriptionElement
(OERDefinition.BaseType baseType, List<OERDefinition.Element> children, boolean explicit, String label, BigInteger lowerBound, BigInteger upperBound, boolean extensionsInDefinition, BigInteger enumValue, org.bouncycastle.asn1.ASN1Encodable defaultValue) -
Method Summary
Modifier and TypeMethodDescriptionboolean
org.bouncycastle.asn1.ASN1Encodable
boolean
boolean
int
Determine the number of integer bytes for a range, ints, signed or unsigned that can fit into 1 to 8 octets use a fixed with encoding.boolean
boolean
boolean
boolean
Return true in cases where the range is all positive (0 .. 10)
-
Field Details
-
baseType
-
children
-
explicit
public final boolean explicit -
label
-
lowerBound
-
upperBound
-
extensionsInDefinition
public final boolean extensionsInDefinition -
enumValue
-
defaultValue
public final org.bouncycastle.asn1.ASN1Encodable defaultValue
-
-
Constructor Details
-
Element
public Element(OERDefinition.BaseType baseType, List<OERDefinition.Element> children, boolean explicit, String label, BigInteger lowerBound, BigInteger upperBound, boolean extensionsInDefinition, BigInteger enumValue, org.bouncycastle.asn1.ASN1Encodable defaultValue)
-
-
Method Details
-
rangeExpression
-
appendLabel
-
optionalOrDefaultChildrenInOrder
-
isUnbounded
public boolean isUnbounded() -
isLowerRangeZero
public boolean isLowerRangeZero() -
isUnsignedWithRange
public boolean isUnsignedWithRange()Return true in cases where the range is all positive (0 .. 10)- Returns:
- true if condition met.
-
canBeNegative
public boolean canBeNegative() -
intBytesForRange
public int intBytesForRange()Determine the number of integer bytes for a range, ints, signed or unsigned that can fit into 1 to 8 octets use a fixed with encoding. Returns a negative number if the value is signed and the absolute value is the number of bytes. -
hasPopulatedExtension
public boolean hasPopulatedExtension() -
hasDefaultChildren
public boolean hasDefaultChildren() -
getDefaultValue
public org.bouncycastle.asn1.ASN1Encodable getDefaultValue() -
getFirstChid
-
isFixedLength
public boolean isFixedLength()
-