Package org.kapott.hbci.smartcardio
Class RSACardService
- java.lang.Object
-
- org.kapott.hbci.smartcardio.SmartCardService
-
- org.kapott.hbci.smartcardio.HBCICardService
-
- org.kapott.hbci.smartcardio.RSACardService
-
public class RSACardService extends HBCICardService
- Author:
- axel
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.kapott.hbci.smartcardio.SmartCardService
SmartCardService.Feature
-
-
Constructor Summary
Constructors Constructor Description RSACardService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]createPINVerificationDataStructure(int pwdId)Erzeugt das PIN-Check-Kommando.byte[]decipher(int idx, byte[] data)byte[]encipher(int idx, byte[] data)java.lang.StringgetCID()Liefert die CID der Karte.protected voidinit(javax.smartcardio.Card card)Initialisiert den Service mit der angegebenen Karte.RSABankDatareadBankData(int idx)RSAKeyData[]readKeyData(int idx)intreadSigId(int idx)byte[]sign(int idx, byte[] data)booleanverify(int idx, byte[] data, byte[] sig)voidverifySoftPIN(int pwdId, byte[] softPin)Prueft die PIN via Software.voidwriteBankData(int idx, RSABankData bankData)voidwriteSigId(int idx, int sigId)-
Methods inherited from class org.kapott.hbci.smartcardio.HBCICardService
getCardId, verifyHardPIN
-
Methods inherited from class org.kapott.hbci.smartcardio.SmartCardService
check, close, createInstance, expand, getCard, getChallenge, getFeatures, getKeyInfo, internalAuthenticate, putData, readBinary, readRecordBySFI, receive, receive, selectFile, selectSubFile, send, toBytes, toHex, toHex, updateRecordBySFI, writeRecordBySFI
-
-
-
-
Method Detail
-
init
protected void init(javax.smartcardio.Card card)
Description copied from class:SmartCardServiceInitialisiert den Service mit der angegebenen Karte.- Overrides:
initin classSmartCardService- Parameters:
card- die Karte.- See Also:
SmartCardService.init(javax.smartcardio.Card)
-
getCID
public java.lang.String getCID()
Description copied from class:HBCICardServiceLiefert die CID der Karte.- Specified by:
getCIDin classHBCICardService- Returns:
- die CID der Karte.
- See Also:
HBCICardService.getCID()
-
createPINVerificationDataStructure
protected byte[] createPINVerificationDataStructure(int pwdId) throws java.io.IOExceptionDescription copied from class:HBCICardServiceErzeugt das PIN-Check-Kommando.- Specified by:
createPINVerificationDataStructurein classHBCICardService- Returns:
- Throws:
java.io.IOException- See Also:
HBCICardService.createPINVerificationDataStructure(int)
-
verifySoftPIN
public void verifySoftPIN(int pwdId, byte[] softPin)Description copied from class:HBCICardServicePrueft die PIN via Software.- Overrides:
verifySoftPINin classHBCICardService- Parameters:
pwdId- die PIN-ID.softPin- die PIN.- See Also:
org.kapott.hbci.smartcardio.SmartCardService#verifySoftPIN(int, byte[])
-
readBankData
public RSABankData readBankData(int idx)
- Parameters:
idx-- Returns:
-
writeBankData
public void writeBankData(int idx, RSABankData bankData)- Parameters:
idx-bankData-
-
readKeyData
public RSAKeyData[] readKeyData(int idx)
- Parameters:
idx-- Returns:
-
readSigId
public int readSigId(int idx)
- Parameters:
idx-- Returns:
-
writeSigId
public void writeSigId(int idx, int sigId)- Parameters:
idx-sigId-
-
sign
public byte[] sign(int idx, byte[] data)- Parameters:
idx-data-- Returns:
-
verify
public boolean verify(int idx, byte[] data, byte[] sig)- Parameters:
idx-data-sig-- Returns:
-
encipher
public byte[] encipher(int idx, byte[] data)- Parameters:
idx-data-- Returns:
-
decipher
public byte[] decipher(int idx, byte[] data)- Parameters:
idx-data-- Returns:
-
-