bc-java icon indicating copy to clipboard operation
bc-java copied to clipboard

TaggedCertificationRequest Missing Getters

Open KyleBS opened this issue 4 years ago • 2 comments

Hello!

It appears that TaggedCertificationRequest objects (https://github.com/bcgit/bc-java/blob/bc3b92f1f0e78b82e2584c5fb4b226a13e7f8b3b/core/src/main/java/org/bouncycastle/asn1/cmc/TaggedCertificationRequest.java) can be constructed but are missing corresponding getters for the bodyPartID and certificationRequest variables. The consequence of this is that the structure needs to be converted to an ASN1Seqence in order to extract them, defeating the point of the class.

Would it be possible to add these getters please?

Best, Kyle

KyleBS avatar Nov 04 '22 16:11 KyleBS

Hello, this functionality would be useful for me too.

divyansh-gupta avatar Nov 04 '22 16:11 divyansh-gupta

Oops. Thanks for the report. The missing get() methods have been added. These are now added to the latest beta in https://www.bouncycastle.org/betas (173b09 or later) - you want bcutil*

dghgit avatar Nov 20 '22 21:11 dghgit