|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.lanl.TMCryptography.IButtonCrypto
IButtonCrypto uses iButton hardware to encrypt, decrypt
| Field Summary |
| Fields inherited from interface gov.lanl.TMCryptography.TMKeyCrypto |
USE_PRIVATE_KEY, USE_PUBLIC_KEY |
| Constructor Summary | |
IButtonCrypto()
Constructor for building from a private key and public certificate |
|
IButtonCrypto(java.lang.String userName)
Constructor for building from a private key and public certificate |
|
| Method Summary | |
byte[] |
decrypt(byte[] inmsg,
int useWhichKey)
Decrypts the input message by striping off whichkey |
byte[] |
encrypt(byte[] inmsg,
int useWhichKey)
Encrypts the input message using the specified key |
byte[] |
getPublicKeyCertificate()
returns certificate as byte array |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public IButtonCrypto()
throws TMCryptoException
TMCryptoException
public IButtonCrypto(java.lang.String userName)
throws TMCryptoException
userName - real name of the user
TMCryptoException| Method Detail |
public byte[] getPublicKeyCertificate()
getPublicKeyCertificate in interface TMKeyCrypto
public byte[] encrypt(byte[] inmsg,
int useWhichKey)
encrypt in interface TMKeyCryptoinmsg - the message to encrypt as a byte arrayuseWhichKey - the specifier as to which key to use
public byte[] decrypt(byte[] inmsg,
int useWhichKey)
decrypt in interface TMKeyCryptouseWhichKey - the specifier as to which key to use
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||