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
Post a Comment