Package org.infotechservice.smartcard.utils

Examples of org.infotechservice.smartcard.utils.CardFrameworkException


     */
    void beginExclusive() throws CardException {
        try {
            card.beginExclusive();
        } catch (IllegalStateException ex) {
            throw new CardFrameworkException("Ошибка при попытке получить доступ к карте, возможно карта уже используется", ex);
        }
    }
View Full Code Here


    protected ResponseAPDU exec(CommandAPDU command, String errorMesssage) throws CardException {
        ResponseAPDU responce = smartcard.getCard().getBasicChannel().transmit(command);
        Messages msg = Messages.findMessage(responce);
        if (msg.isError()) {
            if (errorMesssage == null) {
                throw new CardFrameworkException(msg);
            } else {
                throw new CardFrameworkException(errorMesssage, msg);
            }
        }
        return responce;
    }
View Full Code Here

TOP

Related Classes of org.infotechservice.smartcard.utils.CardFrameworkException

Copyright © 2018 www.massapicom. 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.