Package org.bouncycastle.oer
Class OERDefinition.Builder
- java.lang.Object
-
- org.bouncycastle.oer.OERDefinition.Builder
-
- Direct Known Subclasses:
OERDefinition.MutableBuilder
- Enclosing class:
- OERDefinition
public static class OERDefinition.Builder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected OERDefinition.BaseType
baseType
protected java.util.ArrayList<OERDefinition.Builder>
children
protected org.bouncycastle.asn1.ASN1Encodable
defaultValue
protected java.math.BigInteger
enumValue
protected boolean
explicit
protected java.lang.String
label
protected java.math.BigInteger
lowerBound
protected OERDefinition.Builder
placeholderValue
protected java.math.BigInteger
upperBound
-
Constructor Summary
Constructors Constructor Description Builder(OERDefinition.BaseType baseType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OERDefinition.Element
build()
OERDefinition.Builder
copy()
OERDefinition.Builder
defaultValue(org.bouncycastle.asn1.ASN1Encodable defaultValue)
OERDefinition.Builder
enumValue(java.math.BigInteger value)
OERDefinition.Builder
explicit(boolean explicit)
OERDefinition.Builder
fixedSize(long size)
OERDefinition.Builder
items(java.lang.Object... items)
OERDefinition.Builder
label(java.lang.String label)
OERDefinition.Builder
labelPrefix(java.lang.String prefix)
OERDefinition.Builder
range(long lower, long upper, org.bouncycastle.asn1.ASN1Encodable defaultIntValue)
OERDefinition.Builder
range(java.math.BigInteger lower, java.math.BigInteger upper)
OERDefinition.Builder
rangeToMAXFrom(long from)
OERDefinition.Builder
rangeZeroTo(long max)
OERDefinition.Builder
unbounded()
-
-
-
Field Detail
-
baseType
protected final OERDefinition.BaseType baseType
-
children
protected java.util.ArrayList<OERDefinition.Builder> children
-
explicit
protected boolean explicit
-
label
protected java.lang.String label
-
upperBound
protected java.math.BigInteger upperBound
-
lowerBound
protected java.math.BigInteger lowerBound
-
enumValue
protected java.math.BigInteger enumValue
-
defaultValue
protected org.bouncycastle.asn1.ASN1Encodable defaultValue
-
placeholderValue
protected OERDefinition.Builder placeholderValue
-
-
Constructor Detail
-
Builder
public Builder(OERDefinition.BaseType baseType)
-
-
Method Detail
-
copy
public OERDefinition.Builder copy()
-
unbounded
public OERDefinition.Builder unbounded()
-
labelPrefix
public OERDefinition.Builder labelPrefix(java.lang.String prefix)
-
explicit
public OERDefinition.Builder explicit(boolean explicit)
-
defaultValue
public OERDefinition.Builder defaultValue(org.bouncycastle.asn1.ASN1Encodable defaultValue)
-
items
public OERDefinition.Builder items(java.lang.Object... items)
-
label
public OERDefinition.Builder label(java.lang.String label)
-
build
public OERDefinition.Element build()
-
range
public OERDefinition.Builder range(java.math.BigInteger lower, java.math.BigInteger upper)
-
rangeToMAXFrom
public OERDefinition.Builder rangeToMAXFrom(long from)
-
rangeZeroTo
public OERDefinition.Builder rangeZeroTo(long max)
-
fixedSize
public OERDefinition.Builder fixedSize(long size)
-
range
public OERDefinition.Builder range(long lower, long upper, org.bouncycastle.asn1.ASN1Encodable defaultIntValue)
-
enumValue
public OERDefinition.Builder enumValue(java.math.BigInteger value)
-
-