Package org.kapott.hbci.passport
Class HBCIPassportRAH10
java.lang.Object
org.kapott.hbci.passport.AbstractHBCIPassport
org.kapott.hbci.passport.HBCIPassportRAH10
- All Implemented Interfaces:
Serializable
,FileBasedPassport
,HBCIPassport
,HBCIPassportInternal
,InitLetterPassport
public class HBCIPassportRAH10
extends AbstractHBCIPassport
implements InitLetterPassport, FileBasedPassport
Implementierung des Passports fuer RAH10-Schluesseldateien.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Der Prefix fuer die Parametrisierung via HBCIUtils.setParam.Fields inherited from interface org.kapott.hbci.passport.HBCIPassport
ROLE_CON, ROLE_ISS, ROLE_WIT
-
Constructor Summary
ConstructorsModifierConstructorDescriptionHBCIPassportRAH10
(Object initObject) ct.protected
HBCIPassportRAH10
(Object initObject, PassportData data) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
decrypt
(byte[] cryptedKey, byte[] encryptedMsg) byte[][]
encrypt
(byte[] plainMsg) HBCIKey[][]
Liefert den Dateinamen der Schluesseldatei.Liefert die Signatur-Spec.protected PassportData
byte[]
hash
(byte[] data) boolean
boolean
boolean
boolean
protected void
init
(PassportData data) boolean
boolean
boolean
boolean
void
void
Speichern der Änderungen an den Passport-Daten.void
setInstEncKey
(HBCIKey key) void
setInstSigKey
(HBCIKey key) void
void
void
void
setMyPublicDigKey
(HBCIKey key) void
setMyPublicEncKey
(HBCIKey key) void
setMyPublicSigKey
(HBCIKey key) byte[]
sign
(byte[] data) boolean
verify
(byte[] data, byte[] sig) Methods inherited from class org.kapott.hbci.passport.AbstractHBCIPassport
askForMissingData, canMixSecMethods, changePassphrase, checkForCryptDataSize, clearBPD, clearInstEncKey, clearInstSigKey, clearMyDigKey, clearMyEncKey, clearMySigKey, clearUPD, close, closeComm, fillAccountInfo, getAccount, getAccounts, getBLZ, getBPD, getBPDVersion, getCID, getClientData, getComm, getCommFilter, getCountry, getCustomerId, getCustomerId, getDefaultLang, getFilterType, getHBCIVersion, getHost, getInstance, getInstance, getInstance, getInstance, getInstName, getJobRestrictions, getJobRestrictions, getLang, getMaxGVperMsg, getMaxGVSegsPerMsg, getMaxMsgSizeKB, getParamHeader, getParamSegmentNames, getParentHandlerData, getPersistentData, getPort, getSigId, getStoredCustomerId, getSuppCompMethods, getSuppLangs, getSuppSecMethods, getSuppVersions, getSysId, getUPD, getUPDVersion, getUserId, incSigId, isAnonymous, onDialogEvent, onlyBPDGVs, setBLZ, setBPD, setCID, setClientData, setCountry, setCustomerId, setFilterType, setHBCIVersion, setHost, setParamHeader, setParentHandlerData, setPersistentData, setPort, setProfileMethod, setProfileVersion, setSigId, setSysId, setUPD, setUserId, syncSigId, syncSysId
-
Field Details
-
PARAM_PREFIX
Der Prefix fuer die Parametrisierung via HBCIUtils.setParam.- See Also:
-
-
Constructor Details
-
HBCIPassportRAH10
ct.- Parameters:
initObject
-
-
HBCIPassportRAH10
-
-
Method Details
-
init
-
getFilename
Description copied from interface:FileBasedPassport
Liefert den Dateinamen der Schluesseldatei.- Specified by:
getFilename
in interfaceFileBasedPassport
- Returns:
- der Dateiname der Schluesseldatei.
- See Also:
-
getUpdatedData
-
saveChanges
public void saveChanges()Description copied from interface:HBCIPassport
Speichern der Änderungen an den Passport-Daten. Diese Methode sollte eigentlich niemals manuell aus einer Anwendung heraus aufgerufen werden, sondern wird vom HBCI-Kernel benutzt. Das manuelle Aufrufen vonsaveChanges
ist nur dann sinnvoll, wenn irgendwelche Passport-Daten manuell verändert werden (HBCIPassport.setHost(String)
,HBCIPassport.clearBPD()
usw.) und diese Änderungen explizit gespeichert werden sollen.- Specified by:
saveChanges
in interfaceHBCIPassport
- See Also:
-
getPassportTypeName
- Specified by:
getPassportTypeName
in interfaceHBCIPassportInternal
- See Also:
-
getProfileMethod
- Specified by:
getProfileMethod
in interfaceHBCIPassportInternal
- See Also:
-
getProfileVersion
- Specified by:
getProfileVersion
in interfaceHBCIPassportInternal
- See Also:
-
resetPassphrase
public void resetPassphrase()- Specified by:
resetPassphrase
in interfaceHBCIPassportInternal
- See Also:
-
getSysStatus
- Specified by:
getSysStatus
in interfaceHBCIPassportInternal
- See Also:
-
needUserSig
public boolean needUserSig()- Specified by:
needUserSig
in interfaceHBCIPassportInternal
- See Also:
-
setInstSigKey
- Specified by:
setInstSigKey
in interfaceHBCIPassportInternal
- See Also:
-
setInstEncKey
- Specified by:
setInstEncKey
in interfaceHBCIPassportInternal
- See Also:
-
setMyPublicSigKey
- Specified by:
setMyPublicSigKey
in interfaceHBCIPassportInternal
- See Also:
-
setMyPrivateSigKey
- Specified by:
setMyPrivateSigKey
in interfaceHBCIPassportInternal
- See Also:
-
setMyPublicEncKey
- Specified by:
setMyPublicEncKey
in interfaceHBCIPassportInternal
- See Also:
-
setMyPrivateEncKey
- Specified by:
setMyPrivateEncKey
in interfaceHBCIPassportInternal
- See Also:
-
setMyPublicDigKey
- Specified by:
setMyPublicDigKey
in interfaceHBCIPassportInternal
- See Also:
-
setMyPrivateDigKey
- Specified by:
setMyPrivateDigKey
in interfaceHBCIPassportInternal
- See Also:
-
getInstSigKeyName
- Specified by:
getInstSigKeyName
in interfaceHBCIPassportInternal
- See Also:
-
getInstSigKeyNum
- Specified by:
getInstSigKeyNum
in interfaceHBCIPassportInternal
- See Also:
-
getInstSigKeyVersion
- Specified by:
getInstSigKeyVersion
in interfaceHBCIPassportInternal
- See Also:
-
getInstEncKeyName
- Specified by:
getInstEncKeyName
in interfaceHBCIPassportInternal
- See Also:
-
getInstEncKeyNum
- Specified by:
getInstEncKeyNum
in interfaceHBCIPassportInternal
- See Also:
-
getInstEncKeyVersion
- Specified by:
getInstEncKeyVersion
in interfaceHBCIPassportInternal
- See Also:
-
getMySigKeyName
- Specified by:
getMySigKeyName
in interfaceHBCIPassportInternal
- See Also:
-
getMySigKeyNum
- Specified by:
getMySigKeyNum
in interfaceHBCIPassportInternal
- See Also:
-
getMySigKeyVersion
- Specified by:
getMySigKeyVersion
in interfaceHBCIPassportInternal
- See Also:
-
getMyEncKeyName
- Specified by:
getMyEncKeyName
in interfaceHBCIPassportInternal
- See Also:
-
getMyEncKeyNum
- Specified by:
getMyEncKeyNum
in interfaceHBCIPassportInternal
- See Also:
-
getMyEncKeyVersion
- Specified by:
getMyEncKeyVersion
in interfaceHBCIPassportInternal
- See Also:
-
getCryptKeyType
- Specified by:
getCryptKeyType
in interfaceHBCIPassportInternal
- See Also:
-
getCryptFunction
- Specified by:
getCryptFunction
in interfaceHBCIPassportInternal
- See Also:
-
getCryptAlg
- Specified by:
getCryptAlg
in interfaceHBCIPassportInternal
- See Also:
-
getCryptMode
- Specified by:
getCryptMode
in interfaceHBCIPassportInternal
- See Also:
-
getSigFunction
- Specified by:
getSigFunction
in interfaceHBCIPassportInternal
- See Also:
-
getSigAlg
- Specified by:
getSigAlg
in interfaceHBCIPassportInternal
- See Also:
-
getSigMode
- Specified by:
getSigMode
in interfaceHBCIPassportInternal
- See Also:
-
getHashAlg
- Specified by:
getHashAlg
in interfaceHBCIPassportInternal
- See Also:
-
hash
public byte[] hash(byte[] data) - Specified by:
hash
in interfaceHBCIPassportInternal
- See Also:
-
sign
public byte[] sign(byte[] data) - Specified by:
sign
in interfaceHBCIPassportInternal
- See Also:
-
verify
public boolean verify(byte[] data, byte[] sig) - Specified by:
verify
in interfaceHBCIPassportInternal
- See Also:
-
encrypt
public byte[][] encrypt(byte[] plainMsg) - Specified by:
encrypt
in interfaceHBCIPassportInternal
- See Also:
-
decrypt
public byte[] decrypt(byte[] cryptedKey, byte[] encryptedMsg) - Specified by:
decrypt
in interfaceHBCIPassportInternal
- See Also:
-
generateNewUserKeys
- Specified by:
generateNewUserKeys
in interfaceHBCIPassportInternal
- Overrides:
generateNewUserKeys
in classAbstractHBCIPassport
- See Also:
-
getSignatureParamSpec
Description copied from interface:InitLetterPassport
Liefert die Signatur-Spec.- Specified by:
getSignatureParamSpec
in interfaceInitLetterPassport
- Returns:
- die Signatur-Spec.
- See Also:
-
isSupported
public boolean isSupported()- Specified by:
isSupported
in interfaceHBCIPassport
- See Also:
-
needInstKeys
public boolean needInstKeys()- Specified by:
needInstKeys
in interfaceHBCIPassport
- See Also:
-
needUserKeys
public boolean needUserKeys()- Specified by:
needUserKeys
in interfaceHBCIPassport
- See Also:
-
hasInstSigKey
public boolean hasInstSigKey()- Specified by:
hasInstSigKey
in interfaceHBCIPassport
- See Also:
-
hasInstEncKey
public boolean hasInstEncKey()- Specified by:
hasInstEncKey
in interfaceHBCIPassport
- See Also:
-
hasMySigKey
public boolean hasMySigKey()- Specified by:
hasMySigKey
in interfaceHBCIPassport
- See Also:
-
hasMyEncKey
public boolean hasMyEncKey()- Specified by:
hasMyEncKey
in interfaceHBCIPassport
- See Also:
-
getMyPublicSigKey
- Specified by:
getMyPublicSigKey
in interfaceHBCIPassport
- See Also:
-
getMyPublicEncKey
- Specified by:
getMyPublicEncKey
in interfaceHBCIPassport
- See Also:
-
getMyPublicDigKey
- Specified by:
getMyPublicDigKey
in interfaceHBCIPassport
- See Also:
-
getMyPrivateSigKey
- Specified by:
getMyPrivateSigKey
in interfaceHBCIPassport
- See Also:
-
getMyPrivateEncKey
- Specified by:
getMyPrivateEncKey
in interfaceHBCIPassport
- See Also:
-
getMyPrivateDigKey
- Specified by:
getMyPrivateDigKey
in interfaceHBCIPassport
- See Also:
-
getInstSigKey
- Specified by:
getInstSigKey
in interfaceHBCIPassport
- See Also:
-
getInstEncKey
- Specified by:
getInstEncKey
in interfaceHBCIPassport
- See Also:
-
getCommInstance
- Specified by:
getCommInstance
in classAbstractHBCIPassport
- See Also:
-