ostore.security
Interface QSCipher
- All Superinterfaces:
- QuickSerializable
- All Known Implementing Classes:
- QSRsaCipher
- public interface QSCipher
- extends QuickSerializable
A class used to map a particular cipher algorithm and provider to a type
code, for more efficient encoding.
- Version:
- $Id: QSCipher.java,v 1.1 2001/10/27 01:00:12 srhea Exp $
- Author:
- Sean C. Rhea
- See Also:
EncryptedQS
algorithm
public String algorithm()
- The encryption/decryption algorithm. Using this and the value of
provider()
, a user of this class should be able to produce a
cipher to pass to EncryptedQS.decrypt(java.security.PrivateKey, javax.crypto.Cipher)
by calling Cipher.getInstance(String, String)
.
- Returns:
- the name of the cipher, for instance, "RSA/ECB/PKCS#1"
provider
public String provider()
- The cipher's provider, as used with
getInstance
. Using
this and the value of algorithm()
, a user of this class
should be able to produce a cipher to pass to EncryptedQS.decrypt(java.security.PrivateKey, javax.crypto.Cipher)
by calling Cipher.getInstance(String, String)
.
- Returns:
- the name of the cipher provider, for instance,
"CryptixCrypto"