|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unikassel.android.sdcframework.util.RSAFileEncryptionStrategy
public class RSAFileEncryptionStrategy
Implementation of the RSA file encryption strategy.
Field Summary | |
---|---|
private PublicKey |
key
The public key for encryption |
Constructor Summary | |
---|---|
RSAFileEncryptionStrategy(PublicKey key)
Constructor |
Method Summary | |
---|---|
boolean |
encryptFile(File srcFile,
File destFile)
Encryption method |
String |
getAlgorithmLetterCode()
Getter for a related three letter code describing the algorithm |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final PublicKey key
Constructor Detail |
---|
public RSAFileEncryptionStrategy(PublicKey key)
key
- the public key for encryptionMethod Detail |
---|
public boolean encryptFile(File srcFile, File destFile)
FileEncryptionStrategy
encryptFile
in interface FileEncryptionStrategy
srcFile
- the source file to encryptdestFile
- the destination file
public String getAlgorithmLetterCode()
FileEncryptionStrategy
getAlgorithmLetterCode
in interface FileEncryptionStrategy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |