Skip to content

IllegalArgumentException: unknown object in getInstance: org.bouncycastle.asn1.DERTaggedObject #213

Description

@IrynaZhumatiy

Hello All,
I use BouncyCastle 1.57 version, the next .jar files:

  • bcprov-ext-jdk15on-1.57.jar
  • bcpkix-jdk15on-1.57.jar
  • bcmail-jdk15on-1.57.jar
  • bcprov-jdk15on-1.57.jar.
    I have some issue during call ASN1Sequence.getInstance.
    My code:
    ASN1Primitive obj = null; try { obj = (new ASN1InputStream(new ByteArrayInputStream(value)).readObject()); } catch (java.io.IOException e) { SystemLog.logException("Failure while getting alternative sequence", e); } ASN1Sequence seq = ASN1Sequence.getInstance(obj);
    I get the exception:
    Caused by: java.lang.IllegalArgumentException: unknown object in getInstance: org.bouncycastle.asn1.DERTaggedObject
    at org.bouncycastle.asn1.ASN1Sequence.getInstance(Unknown Source).

Could you please help me with this?
What I do wrong?
Thanks!

Regards,
Iryna

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions