Bouncycastle decodes this private tagged object as DERApplicationSpecific, ignoring the fact that bit 7 is also set:
Class Bit 8 Bit 7
Universal 0 0
Application 0 1
Context-specific 1 0
Private 1 1
Creating a TLV with the private class using the BC API is also not possible as far as I can see.
Is this shortcoming considered a bug or is there reason not to support private class ASN.1 tags?
Is this an appropriate use of the API?
Is it worth rebuilding the signed JAR in order to "fix" the ASN1ApplicationSpecific class and also to support tagged objects with a private class tag? Would such a patch/pull-request be considered for acceptance?