No -- apologies I should have been more specific. It was a question regarding 
the definition of the PermittedAlphabet constraint in X.680: 47.7.  Can you 
actually use any of the known-multiplier character constraints in the 
construction of a PermittedAlphabet constraint?

Also does the PER-visibility of a constraint also apply wherever it is used in 
the construction of a constraint? For example, is the SingleValue constraint 
PER-visible when used to construct a PermittedAlphabet constraint?







From: Conrad Sigona [[email protected]]
Sent: 02 November 2009 18:09
To: Russell, Daniel J
Cc: [email protected]
Subject: Re: [Asn1] Permitted Alphabet Constraint

> Which subtype elements may be used to construct a PermittedAlphabet
> constraint?

You use a set of characters, for instance,

    IA5String (FROM("a"|"b"|"c"))

or
    IA5String (FROM("abc"))

which is equivalent to FROM("a"|"b"|"c") but easier to type when you have
larger sets of characters. You can also have ranges like this

    IA5String (FROM("a".."z"))

For unprintable characters you use tuples or quadruples like this

    IA5String (FROM("abc" | {0,13}))   -- {0,13} is carriage return

or

    BMPString (FROM("abc" | {0,0,0,13})) -- also {0,0,0,13} is CR

For a complete list of valid characters refer to the
ASN1-CHARACTER-MODULE at the link below

http://www.itu.int/ITU-T/formal-language/itu-t/x/x680/2008/ASN1-Object-Identifier-Module.html

Did I answer your question?





This email has been scanned for all viruses by the MessageLabs Email
Security System.

This email has been scanned for all viruses by the MessageLabs Email
Security System.
_______________________________________________
Asn1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1

Reply via email to