Examples of CommandAPDU


Examples of net.rim.device.api.smartcard.CommandAPDU

        // Construct the response Application Protocol Data Unit.
        final ResponseAPDU response = new ResponseAPDU();

        // Construct the command and set its information.
        // TODO: Create a CommandAPDU which your smart card will understand.
        final CommandAPDU signAPDU =
                new CommandAPDU((byte) 0x80, (byte) 0x56, (byte) 0x00,
                        (byte) 0x00, modulusLength);
        signAPDU.setLcData(input, inputOffset, input.length - inputOffset);

        // Send the command to the smart card
        sendAPDU(signAPDU, response);

        // Validate the status words of the response.
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.