pasn
Class ASN1BMPString

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

public class ASN1BMPString
extends ASN1String

The BMP (Basic Multilingual Plane) STRING type is a subset of ISO 10646-1 (Universal String). It is equivalent to the Unicode coding.

For example, the string "Jade"'s ASCII hex-encoding is 4A 61 64 65. The Unicode, big endian encoding, is then 00 4A 00 61 00 64 00 65

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

Constructor Summary
ASN1BMPString()
           
 
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

ASN1BMPString

public ASN1BMPString()
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