java - How to use ASN.1 defined the x509 algorithmIdentifier -


operating definitions automatic tags ::= begin

certificate ::=sequence{     subjectuniqueid     bit string,     operatorid          bit string,     operatetype         enumerated{issue,cancel},     time                generalizedtime,     hashofcertificate   integer,       highofblock         integer,     sigaturealgotithm   algorithmidentifier,         signaturevalue      bit string }  algorithmidentifier ::= sequence {   algorithm       object identifier,   parameters      defined algorithm optional } 

end

but eclipse compile error.the reason "syntax error on token "defined", } expected". don't know error.can tell me how handle error or how code certificate in way?

it seems trying use obsolete version of x.509. defined 1988 asn.1 withdrawn around 1994. encounter less headaches if use more current version of x.509 defines algorithmidentifier more following:

  algorithmidentifier ::= sequence {    algorithm   algorithm.&id ({supportedalgorithms}),    parameters  algorithm.&type ({supportedalgorithms}{@algorithm}) optional} 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -