Search in sources :

Example 6 with AccessFlags

use of es.gob.jmulticard.asn1.der.pkcs15.AccessFlags in project smali by JesusFreke.

the class ClassDefinition method writeAccessFlags.

private void writeAccessFlags(IndentingWriter writer) throws IOException {
    for (AccessFlags accessFlag : AccessFlags.getAccessFlagsForClass(classDef.getAccessFlags())) {
        writer.write(accessFlag.toString());
        writer.write(' ');
    }
}
Also used : AccessFlags(org.jf.dexlib2.AccessFlags)

Example 7 with AccessFlags

use of es.gob.jmulticard.asn1.der.pkcs15.AccessFlags in project jmulticard by ctt-gob-es.

the class TestAsn1SimpleTypes method testBitStringCreationWithBadData.

/**
 * Prueba la creaci&oacute; de un tipo <code>BitString</code> con datos incorrectos.
 * @throws TlvException Si no se puede crear el TLV.
 */
@Test
@SuppressWarnings("static-method")
public void testBitStringCreationWithBadData() throws TlvException {
    final BitString u = new AccessFlags();
    try {
        u.setDerValue(new byte[] { (byte) 0x00, (byte) 0x01, (byte) 0xff });
    } catch (final Asn1Exception e) {
        // $NON-NLS-1$
        System.out.println("Fallo esperado: " + e);
        return;
    }
    // $NON-NLS-1$
    Assert.fail("Tendria que haber saltado un Asn1Exception");
}
Also used : BitString(es.gob.jmulticard.asn1.der.BitString) Asn1Exception(es.gob.jmulticard.asn1.Asn1Exception) AccessFlags(es.gob.jmulticard.asn1.der.pkcs15.AccessFlags) Test(org.junit.Test)

Example 8 with AccessFlags

use of es.gob.jmulticard.asn1.der.pkcs15.AccessFlags in project atlas by alibaba.

the class MethodDefinition method writeAccessFlags.

private static void writeAccessFlags(IndentingWriter writer, int accessFlags) throws IOException {
    for (AccessFlags accessFlag : AccessFlags.getAccessFlagsForMethod(accessFlags)) {
        writer.write(accessFlag.toString());
        writer.write(' ');
    }
}
Also used : AccessFlags(org.jf.dexlib2.AccessFlags)

Aggregations

AccessFlags (org.jf.dexlib2.AccessFlags)7 PsiElement (com.intellij.psi.PsiElement)1 StubBasedPsiElement (com.intellij.psi.StubBasedPsiElement)1 Asn1Exception (es.gob.jmulticard.asn1.Asn1Exception)1 BitString (es.gob.jmulticard.asn1.der.BitString)1 AccessFlags (es.gob.jmulticard.asn1.der.pkcs15.AccessFlags)1 SmaliModifierListStub (org.jf.smalidea.psi.stub.SmaliModifierListStub)1 Test (org.junit.Test)1