Created
January 22, 2014 10:07
-
-
Save ozgun/8556289 to your computer and use it in GitHub Desktop.
Bytecode to java code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Bytecode: | |
* * public tr.gov.tubitak.uekae.esya.api.asn.cms.ECompleteCertificateReferences getCompleteCertificateReferences() throws tr.gov.tubitak.uekae.esya.api.common.ESYAException; | |
* 0 aload_0 [this] | |
* 1 new com.objsys.asn1j.runtime.Asn1ObjectIdentifier [52] | |
* 4 dup | |
* 5 getstatic tr.gov.tubitak.uekae.esya.asn.cms._etsi101733Values.id_aa_ets_certificateRefs : int[] [64] | |
* 8 invokespecial com.objsys.asn1j.runtime.Asn1ObjectIdentifier(int[]) [54] | |
* 11 invokevirtual tr.gov.tubitak.uekae.esya.api.asn.cms.ESignerInfo.getUnsignedAttribute(com.objsys.asn1j.runtime.Asn1ObjectIdentifier) : java.util.List [55] | |
* 14 astore_1 | |
* 15 aload_1 | |
* 16 invokeinterface java.util.List.size() : int [56] [nargs: 1] | |
* 21 ifgt 27 | |
* 24 aconst_null | |
* 25 areturn | |
* 26 athrow | |
* 27 new tr.gov.tubitak.uekae.esya.api.asn.cms.ECompleteCertificateReferences [65] | |
* 30 dup | |
* 31 aload_1 | |
* 32 iconst_0 | |
* 33 invokeinterface java.util.List.get(int) : java.lang.Object [58] [nargs: 2] | |
* 38 checkcast tr.gov.tubitak.uekae.esya.api.asn.cms.EAttribute [47] | |
* 41 iconst_0 | |
* 42 invokevirtual tr.gov.tubitak.uekae.esya.api.asn.cms.EAttribute.getValue(int) : byte[] [59] | |
* 45 invokespecial tr.gov.tubitak.uekae.esya.api.asn.cms.ECompleteCertificateReferences(byte[]) [66] | |
* 48 areturn | |
* Exception Table: | |
* [pc: 15, pc: 26] -> 26 when : tr.gov.tubitak.uekae.esya.api.common.ESYAException | |
*/ | |
int[] a = _etsi101733Values.id_aa_ets_certificateRefs; | |
Asn1ObjectIdentifier b = new Asn1ObjectIdentifier(a); | |
List<EAttribute> c = eSignerInfo.getUnsignedAttribute(b); | |
EAttribute d = c.get(0); | |
byte[] f = d.getValue(0); | |
ECompleteCertificateReferences g = new ECompleteCertificateReferences(f); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment