Class HBCIAccount.UserKeys
- java.lang.Object
-
- org.kapott.hbci.passport.rdhXfile.TLV
-
- org.kapott.hbci.passport.rdhXfile.HBCIAccount.UserKeys
-
- Enclosing class:
- HBCIAccount
public static class HBCIAccount.UserKeys extends TLV
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]
Ap
private byte[]
Aq
private byte[]
dP
private byte[]
dQ
private byte[]
encPrivateKey
private byte[]
exponent
private int
keynum
private int
keytype
private int
keyversion
private byte[]
modulus
private byte[]
p
private byte[]
q
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decrypt(javax.crypto.SecretKey key)
void
encrypt(javax.crypto.SecretKey key)
int
getKeyNum()
java.lang.String
getKeyType()
int
getKeyVersion()
java.security.Key
getPrivateKey()
java.security.Key
getPublicKey()
void
setKeyNum(int num)
void
setKeyType(java.lang.String t)
void
setKeyVersion(int version)
void
setPrivateKey(java.security.Key key)
void
setPublicKey(java.security.Key key)
java.lang.String
toString()
void
updateData()
-
-
-
Field Detail
-
keytype
private int keytype
-
keynum
private int keynum
-
keyversion
private int keyversion
-
exponent
private byte[] exponent
-
modulus
private byte[] modulus
-
encPrivateKey
private byte[] encPrivateKey
-
p
private byte[] p
-
q
private byte[] q
-
dP
private byte[] dP
-
dQ
private byte[] dQ
-
Ap
private byte[] Ap
-
Aq
private byte[] Aq
-
-
Constructor Detail
-
UserKeys
public UserKeys()
-
UserKeys
public UserKeys(TLV tlv)
-
-
Method Detail
-
decrypt
public void decrypt(javax.crypto.SecretKey key) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getKeyType
public java.lang.String getKeyType()
-
setKeyType
public void setKeyType(java.lang.String t)
-
getKeyNum
public int getKeyNum()
-
setKeyNum
public void setKeyNum(int num)
-
getKeyVersion
public int getKeyVersion()
-
setKeyVersion
public void setKeyVersion(int version)
-
getPublicKey
public java.security.Key getPublicKey()
-
setPublicKey
public void setPublicKey(java.security.Key key)
-
getPrivateKey
public java.security.Key getPrivateKey()
-
setPrivateKey
public void setPrivateKey(java.security.Key key)
-
encrypt
public void encrypt(javax.crypto.SecretKey key) throws java.lang.Exception
- Throws:
java.lang.Exception
-
updateData
public void updateData()
- Overrides:
updateData
in classTLV
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-