Could you please help me, im trying to create a ASN1Sequence from a DERObject. The following is the code that i am using and the error that i am getting.
ASN1InputStream ais = new ASN1InputStream(abyte0); DERObject DEROctetString = ais.readObject(); ASN1Sequence asn1Sequence = (ASN1Sequence)DEROctetString; Exception in thread "main" java.lang.ClassCastException: org.me.Mobile.DEROctetString cannot be cast to org.me.Mobile.ASN1Sequence
As far as im aware, the libraries i am using are right and it should work. Anyone have any ideas what i could be doing wrong?
Thanks in advance