|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.Base
com.tangosol.net.security.AbstractEncryptionFilter
com.tangosol.net.security.SymmetricEncryptionFilter
Deprecated. As of Coherence 3.7, deprecated replaced by SSL.
@Deprecated
public class SymmetricEncryptionFilter
Symmetric encryption filter implementation.
This filter encrypts data using a shared symmetric encryption key. It may either be configured with a pre-distributed shared key, or with a randomly generated key via the ClusterEncryptionFilter.
setConfig(com.tangosol.run.xml.XmlElement)
, ClusterEncryptionFilter
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_ALGORITHM Deprecated. Default cryptography algorithm |
static int |
DEFAULT_KEY_LENGTH Deprecated. Default cryptography key length |
static java.lang.String |
DEFAULT_KEYSTORE_TYPE Deprecated. Default KeyStore type. |
protected javax.crypto.SecretKey |
m_key Deprecated. The SecretKey |
Fields inherited from class com.tangosol.net.security.AbstractEncryptionFilter |
---|
DEFAULT_KEYSTORE_PATH, m_specCipherParams, m_sTransformation, m_tlsCipher |
Constructor Summary | |
---|---|
SymmetricEncryptionFilter() Deprecated. |
Method Summary | |
---|---|
static javax.crypto.SecretKey |
generateKey(java.lang.String sAlgorithm, int nKeySize) Deprecated. Generate a secret key according the the supplied parameters. |
java.io.InputStream |
getInputStream(java.io.InputStream stream) Deprecated. Requests an InputStream that wraps the passed InputStream. |
javax.crypto.SecretKey |
getKey() Deprecated. Return the filter's encryption key. |
java.io.OutputStream |
getOutputStream(java.io.OutputStream stream) Deprecated. Requests an OutputStream that wraps the passed OutputStream. |
static void |
main(java.lang.String[] asArgv) Deprecated. Generates and insert a symmetric key into a keystore. |
void |
setConfig(XmlElement xml) Deprecated. Configures the Encryption filter for symetric encryption using a key from a KeyStore. |
void |
setKey(javax.crypto.SecretKey key) Deprecated. Specify the filter's encryption key. |
Methods inherited from class com.tangosol.net.security.AbstractEncryptionFilter |
---|
ensureSecurityException, ensureSecurityException, getCipher, getCipherParams, getCipherTransformation, getConfig, getKeyStore, makeCipher, setCipherParams, setCipherTransformation |
Field Detail |
---|
protected javax.crypto.SecretKey m_key
public static final java.lang.String DEFAULT_KEYSTORE_TYPE
public static final java.lang.String DEFAULT_ALGORITHM
public static final int DEFAULT_KEY_LENGTH
Constructor Detail |
---|
public SymmetricEncryptionFilter()
Method Detail |
---|
public java.io.InputStream getInputStream(java.io.InputStream stream)
WrapperStreamFactory
stream
- the java.io.InputStream to be wrappedpublic java.io.OutputStream getOutputStream(java.io.OutputStream stream)
WrapperStreamFactory
stream
- the java.io.OutputStream to be wrappedpublic void setConfig(XmlElement xml)
xml
- the XML configuration for the objectpublic void setKey(javax.crypto.SecretKey key)
key
- the filter's encryption keypublic javax.crypto.SecretKey getKey()
public static javax.crypto.SecretKey generateKey(java.lang.String sAlgorithm, int nKeySize)
sAlgorithm
- the key algorithmnKeySize
- the key sizepublic static void main(java.lang.String[] asArgv)
This utility is provided as the keytool utility distributed with the JDK only supports asymmetric keys.
asArgv
- command line parameters
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |