pasn
Class ASN1IA5String

java.lang.Object
  extended by pasn.ASN1Object
      extended by pasn.ASN1SimpleObject<java.lang.String>
          extended by pasn.ASN1String
              extended by pasn.ASN1IA5String
All Implemented Interfaces:
ASN1DefaultValuedObject, ASN1EncodingSpecificObject, ASN1GenericObject, ASN1PrimitiveObject<java.lang.String>, ASN1Resetable

public class ASN1IA5String
extends ASN1String

An IA5 String must never be empty (minimum size constraint of 1)

Author:
N. Cottin - http://www.ncottin.net

Constructor Summary
ASN1IA5String()
           
 
Method Summary
 java.lang.String getASN1Name()
           
 boolean validateChar(char value, int index)
           Constraints this STRING by indicating if the given character is accepted or rejected
 
Methods inherited from class pasn.ASN1String
getExpression, getMaximumLength, getMininimumLength, hasDefaultValue, hasExpression, hasValue, isInside, isMaximumLengthConstrained, isMinimumLengthConstrained, isValueDefault, reset, setDecodedValue, setExpression, setMaximumLength, setMinimumLength, toString, validate, validateConstraints, validateExpression
 
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
getAsnClass, getType
 
Methods inherited from interface pasn.ASN1EncodingSpecificObject
getSpecificEncoding, hasSpecificEncodings
 

Constructor Detail

ASN1IA5String

public ASN1IA5String()
Method Detail

getASN1Name

public final java.lang.String getASN1Name()

validateChar

public final boolean validateChar(char value,
                                  int index)
Description copied from class: ASN1String

Constraints this STRING by indicating if the given character is accepted or rejected

Specified by:
validateChar in class ASN1String
Parameters:
value - A character which is part of the string to initialize this ASN.1 STRING with
index - The index of the given character within the global string. This is mainly used by {jade.ASN1BMPString}
Returns:
True if the given character value is accepted and false if it is rejected