|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.crypt.io.SecretKeyCredentialReader
public class SecretKeyCredentialReader
Reads symmetric algorithm secret keys.
| Constructor Summary | |
|---|---|
SecretKeyCredentialReader(String cipherAlgorithm)
Creates a new instance that can read keys for the given symmetric cipher algorithm. |
|
| Method Summary | |
|---|---|
SecretKey |
read(File file)
Reads a credential, commonly in encoded format, from the given file. |
SecretKey |
read(InputStream in)
Reads a credential, commonly in encoded format, from the given input stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SecretKeyCredentialReader(String cipherAlgorithm)
cipherAlgorithm - Cipher algorithm name, e.g. AES.| Method Detail |
|---|
public SecretKey read(File file)
throws IOException,
CryptException
read in interface CredentialReader<SecretKey>file - File from which to read credential.
IOException - On IO exceptions.
CryptException - On cryptography errors such as invalid formats,
unsupported ciphers, illegal settings.
public SecretKey read(InputStream in)
throws IOException,
CryptException
read in interface CredentialReader<SecretKey>in - Input stream from which to read credential.
IOException - On IO exceptions.
CryptException - On cryptography errors such as invalid formats,
unsupported ciphers, illegal settings.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||