src/com/makina/security/OpenFIPS201/OpenFIPS201.java
private void processPIV_SELECT(APDU apdu) {

        byte[] buffer = apdu.getBuffer();
        short length = (short)(buffer[ISO7816.OFFSET_LC] & 0xFF);

        /*
         * PRE-CONDITIONS
         */

        // None
        if (!selectingApplet()) {
	        ISOException.throwIt(ISO7816.SW_FILE_NOT_FOUND);
        }

        /*
         * EXECUTION STEPS
         */

        // STEP 1 - Call the PIV 'SELECT' command
        length = piv.select(buffer, ISO7816.OFFSET_CDATA, length);

        apdu.setOutgoingAndSend(ISO7816.OFFSET_CDATA, length);
    }
/**
     * Process the PIV 'SELECT' command
     *
     * @param apdu The incoming APDU object
     */
Process the PIV 'SELECT' command
@param apdu The incoming APDU object
Process the PIV ' SELECT ' command @param apdu The incoming APDU object
private void processPIV_SELECT(APDU apdu) {
        byte[] buffer = apdu.getBuffer();
        short length = (short)(buffer[ISO7816.OFFSET_LC] & 0xFF);
        /*
         * PRE-CONDITIONS
         */
        if (!selectingApplet()) {
	        ISOException.throwIt(ISO7816.SW_FILE_NOT_FOUND);
        }
        /*
         * EXECUTION STEPS
         */
        length = piv.select(buffer, ISO7816.OFFSET_CDATA, length);
        apdu.setOutgoingAndSend(ISO7816.OFFSET_CDATA, length);
    }
private void processPIV_SELECT ( APDU apdu ) { byte [ ] buffer = apdu . getBuffer ( ) ; short length = ( short ) ( buffer [ ISO7816 . OFFSET_LC ] & 0xFF ) ; /*
         * PRE-CONDITIONS
         */ if ( ! selectingApplet ( ) ) { ISOException . throwIt ( ISO7816 . SW_FILE_NOT_FOUND ) ; } /*
         * EXECUTION STEPS
         */ length = piv . select ( buffer , ISO7816 . OFFSET_CDATA , length ) ; apdu . setOutgoingAndSend ( ISO7816 . OFFSET_CDATA , length ) ; }
Process the PIV 'SELECT' command
 @param apdu The incoming APDU object
Process the PIV ' SELECT ' command @param apdu The incoming APDU object
// None // STEP 1 - Call the PIV 'SELECT' command