|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpasn.ASN1Object
pasn.ASN1SimpleObject<java.lang.String>
pasn.ASN1String
public abstract class ASN1String
Basic class to express ASN.1 STRING objects. Strings hierarchy is defined as follows:
Numeric String | V Printable String | V IA5 String | V T.61 String | V BMP String | V Universal String
US-ASCII Seven-bit ASCII, a.k.a. ISO646-US, a.k.a. the Basic Latin block of the Unicode character set ISO-8859-1 ISO Latin Alphabet No. 1, a.k.a. ISO-LATIN-1 UTF-8 Eight-bit Unicode Transformation Format UTF-16BE Sixteen-bit Unicode Transformation Format, big-endian byte order UTF-16LE Sixteen-bit Unicode Transformation Format, little-endian byte order UTF-16 Sixteen-bit Unicode Transformation Format, byte order specified by a mandatory initial byte-order mark (either order accepted on input, big-endian used on output)
Constructor Summary | |
---|---|
ASN1String(int type)
Creates an empty ASN.1 character String object of the given type and string encoding format |
Method Summary | |
---|---|
java.lang.String |
getExpression()
|
int |
getMaximumLength()
|
int |
getMininimumLength()
|
boolean |
hasDefaultValue()
|
boolean |
hasExpression()
|
boolean |
hasValue()
|
static boolean |
isInside(char c,
char[] values)
|
boolean |
isMaximumLengthConstrained()
|
boolean |
isMinimumLengthConstrained()
|
boolean |
isValueDefault()
|
void |
reset()
Removes the value (or list or set of values) of this ASN.1 object. |
void |
setDecodedValue(java.lang.Object value)
|
void |
setExpression(java.lang.String regex)
|
void |
setMaximumLength(int maxLength)
|
void |
setMinimumLength(int minLength)
|
java.lang.String |
toString()
|
boolean |
validate(char value,
int index)
This operation complements character restrictions with specific constraints |
abstract boolean |
validateChar(char value,
int index)
Constraints this STRING by indicating if the given character is accepted or rejected |
void |
validateConstraints(java.lang.String value)
|
boolean |
validateExpression(java.lang.String 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 |
---|
getASN1Name, getAsnClass, getType |
Methods inherited from interface pasn.ASN1EncodingSpecificObject |
---|
getSpecificEncoding, hasSpecificEncodings |
Constructor Detail |
---|
public ASN1String(int type)
Creates an empty ASN.1 character String object of the given type and string encoding format
type
- The type of this String, given by String types from
ASN1Constants
Method Detail |
---|
public final void setMinimumLength(int minLength)
public final int getMininimumLength()
public final boolean isMinimumLengthConstrained()
public final void setMaximumLength(int maxLength)
public final int getMaximumLength()
public final boolean isMaximumLengthConstrained()
public final void setExpression(java.lang.String regex)
public final java.lang.String getExpression()
public final boolean hasExpression()
public final boolean validateExpression(java.lang.String value)
public static final boolean isInside(char c, char[] values)
public final void validateConstraints(java.lang.String value) throws ASN1ConstraintException
ASN1ConstraintException
public abstract boolean validateChar(char value, int index)
Constraints this STRING by indicating if the given character is accepted or rejected
value
- A character which is part of the string to initialize this
ASN.1 STRING withindex
- The index of the given character within the global string.
This is mainly used by {jade.ASN1BMPString}
public boolean validate(char value, int index)
This operation complements character restrictions with specific constraints
value
- A character taken from the string to initialize this ASN.1
String withindex
- The position of value within the string
public final void reset()
ASN1Resetable
Removes the value (or list or set of values) of this ASN.1 object. This applies to simple and structured ASN.1 objects
public final boolean isValueDefault()
public final boolean hasValue()
public final boolean hasDefaultValue()
public final void setDecodedValue(java.lang.Object value) throws ASN1FormatException, ASN1ConstraintException
ASN1FormatException
ASN1ConstraintException
public final java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |