Friday 20 April 2018

ASN.1: ANY: Refer any valid ASN type

Type: ANY

Description: By using ANY, you can supply any valid ASN.1 type while defining identifiers.      

Example Schema
Person ::= SEQUENCE {
  name VisibleString,
  id ANY,
  salary REAL
}

You can model id with any valid ASN.1 type.

id can be modelled as VisibleString
person1 Person ::={
  name "Rama Krishna",
  id VisibleString "I12345",
  salary 564321.2
}

                                   (OR)
id can be modelled as an INTEGER
person1 Person ::={
  name "Rama Krishna",
  id INTEGER 29,
  salary 564321.2
}







Previous                                                 Next                                                 Home

No comments:

Post a Comment