|
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.AbstractEncryptionFilter
public abstract class AbstractEncryptionFilter
Abstract implementation of a JCE-based EncryptionFilter.
Field Summary | |
---|---|
static String |
DEFAULT_KEYSTORE_PATH
Default KeyStore path |
static String |
DEFAULT_KEYSTORE_TYPE
Default KeyStore type |
protected AlgorithmParameterSpec |
m_specCipherParams
The Cipher Paramaters |
protected String |
m_sTransformation
The Cipher transformation |
protected ThreadLocal |
m_tlsCipher
Reuseable Cipher |
Constructor Summary | |
---|---|
AbstractEncryptionFilter()
|
Method Summary | |
---|---|
static SecurityException |
ensureSecurityException(Throwable e)
Convert the passed exception to a SecurityException if necessary. |
static SecurityException |
ensureSecurityException(Throwable e,
String s)
Convert the passed exception to a SecurityException if necessary. |
protected Cipher |
getCipher(int nMode,
Key key)
Return a cached thread-local initialized Cipher. |
protected AlgorithmParameterSpec |
getCipherParams()
Return the Cipher's parameters |
protected String |
getCipherTransformation()
Return the Cipher's transformation |
XmlElement |
getConfig()
Determine the current configuration of the object. |
static KeyStore |
getKeyStore(String sType,
String sPath,
char[] acPassword)
Return a loaded KeyStore. |
protected Cipher |
makeCipher(int nMode,
Key key)
Return a new initialized Cipher. |
protected void |
setCipherParams(AlgorithmParameterSpec spec)
Specify the Cipher's parameters. |
protected void |
setCipherTransformation(String sTransformation)
Specify the Cipher's transformation. |
Methods inherited from interface com.tangosol.io.WrapperStreamFactory |
---|
getInputStream, getOutputStream |
Methods inherited from interface com.tangosol.run.xml.XmlConfigurable |
---|
setConfig |
Field Detail |
---|
protected String m_sTransformation
protected AlgorithmParameterSpec m_specCipherParams
protected ThreadLocal m_tlsCipher
public static final String DEFAULT_KEYSTORE_TYPE
public static final String DEFAULT_KEYSTORE_PATH
Constructor Detail |
---|
public AbstractEncryptionFilter()
Method Detail |
---|
protected void setCipherParams(AlgorithmParameterSpec spec)
spec
- the Cipher's parametersprotected AlgorithmParameterSpec getCipherParams()
protected void setCipherTransformation(String sTransformation)
sTransformation
- the Cipher's transformationprotected String getCipherTransformation()
protected Cipher makeCipher(int nMode, Key key)
nMode
- the encryption modekey
- the encryption key
protected Cipher getCipher(int nMode, Key key)
nMode
- the encryption modekey
- the encryption key
public static KeyStore getKeyStore(String sType, String sPath, char[] acPassword)
sType
- the KeyStore typesPath
- the path to the KeyStoreacPassword
- the KeyStore password
public static SecurityException ensureSecurityException(Throwable e)
e
- the exception to wrap
public static SecurityException ensureSecurityException(Throwable e, String s)
e
- the exception to wraps
- an additional description
public XmlElement getConfig()
XmlConfigurable
getConfig
in interface XmlConfigurable
|
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 |