|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tangosol.util.Base
com.tangosol.net.security.ClusterEncryptionFilter
public class ClusterEncryptionFilter
Encryption filter implementation which switches between asymmetric and symmetric encryption based upon the type of data being filtered.
Asymmetric encryption is applied to the cluster service data to protect against untrusted entities joining the cluster. Data for other services is encrypted using a random shared symmetric key which is generated by the cluster's senior member and securely provided to other members via the cluster service. Unlike most cluster service traffic the shared secret is encrypted with both the originator's public key and the recipient's private key. Custom certificate validation may be provided by extending the AsymmetricEncryptionFilter class, and supplying the alternate implementation as part of this filter's configuration.
setConfig(com.tangosol.run.xml.XmlElement)
,
AsymmetricEncryptionFilter
,
SymmetricEncryptionFilter
Nested Class Summary | |
---|---|
class |
ClusterEncryptionFilter.DemultiplexingInputStream
WrapperInputStram which chooses the appropriate wrapper based on the protocol context. |
class |
ClusterEncryptionFilter.MultiplexingOutputStream
WrapperOutputStram which chooses the appropriate wrapper based on the protocol context. |
Field Summary | |
---|---|
protected int |
m_nSharedKeySize
Shared key length. |
protected String |
m_sSharedKeyAlgorithm
Shared key algorithm. |
protected AsymmetricEncryptionFilter |
m_wrapperAsymmetric
The AsymmetricEncryptionFilter |
protected SymmetricEncryptionFilter |
m_wrapperSymmetric
The SymmetricEncryptionFilter |
Constructor Summary | |
---|---|
ClusterEncryptionFilter()
|
Method Summary | |
---|---|
XmlElement |
getConfig()
Determine the current configuration of the object. |
InputStream |
getInputStream(InputStream stream)
Requests an InputStream that wraps the passed InputStream. |
OutputStream |
getOutputStream(OutputStream stream)
Requests an OutputStream that wraps the passed OutputStream. |
SecretKey |
getSharedKey()
Return the shared key, or generate one if none exists. |
protected void |
readSharedKey(DataInputStream stream)
Read the shared key from the InputStream. |
protected WrapperStreamFactory |
selectWrapper(ProtocolContext context)
Select a Filter based on the supplied protocol information. |
void |
setConfig(XmlElement xml)
Configures the ClusterEncryptionfilter. |
void |
setSharedKey(SecretKey key)
Set the shared key. |
protected void |
writeSharedKey(DataOutputStream stream,
Member memberTo)
Write the shared cluster secret to the supplied OutputStream. |
Field Detail |
---|
protected String m_sSharedKeyAlgorithm
protected int m_nSharedKeySize
protected SymmetricEncryptionFilter m_wrapperSymmetric
protected AsymmetricEncryptionFilter m_wrapperAsymmetric
Constructor Detail |
---|
public ClusterEncryptionFilter()
Method Detail |
---|
protected WrapperStreamFactory selectWrapper(ProtocolContext context)
context
- the protocol context
protected void readSharedKey(DataInputStream stream)
stream
- the stream to read the secret fromprotected void writeSharedKey(DataOutputStream stream, Member memberTo)
stream
- the stream to write the secret tomemberTo
- the member to which the key will be sentpublic SecretKey getSharedKey()
public void setSharedKey(SecretKey key)
key
- the shared keypublic InputStream getInputStream(InputStream stream)
getInputStream
in interface WrapperStreamFactory
stream
- the java.io.InputStream to be wrapped
public OutputStream getOutputStream(OutputStream stream)
getOutputStream
in interface WrapperStreamFactory
stream
- the java.io.OutputStream to be wrapped
public XmlElement getConfig()
getConfig
in interface XmlConfigurable
public void setConfig(XmlElement xml)
setConfig
in interface XmlConfigurable
xml
- the XML configuration for the objectAsymmetricEncryptionFilter.setConfig(com.tangosol.run.xml.XmlElement)
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |