Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.tangosol.net.security
Class AbstractEncryptionFilter

    java.lang.Object
      com.tangosol.util.Base
          com.tangosol.net.security.AbstractEncryptionFilter

All Implemented Interfaces:
  WrapperStreamFactory, XmlConfigurable

Direct Known Subclasses:
  AsymmetricEncryptionFilter, SymmetricEncryptionFilter

    public abstract class AbstractEncryptionFilter

extends Base
implements WrapperStreamFactory, XmlConfigurable

Abstract implementation of a JCE-based EncryptionFilter.

Author:
  mf 2006.08.08

Field Summary
`static java.lang.String` | `DEFAULT_KEYSTORE_PATH` Default KeyStore path
`static java.lang.String` | `DEFAULT_KEYSTORE_TYPE` Default KeyStore type
`protected java.security.spec.AlgorithmParameterSpec` | `m_specCipherParams` The Cipher Paramaters
`protected java.lang.String` | `m_sTransformation` The Cipher transformation
`protected java.lang.ThreadLocal` | `m_tlsCipher` Reuseable Cipher

Constructor Summary
`AbstractEncryptionFilter()`

Method Summary
`static java.lang.SecurityException` | `ensureSecurityException(java.lang.Throwable e)` Convert the passed exception to a SecurityException if necessary.
`static java.lang.SecurityException` | `ensureSecurityException(java.lang.Throwable e, java.lang.String s)` Convert the passed exception to a SecurityException if necessary.
`protected javax.crypto.Cipher` | `getCipher(int nMode, java.security.Key key)` Return a cached thread-local initialized Cipher.
`protected java.security.spec.AlgorithmParameterSpec` | `getCipherParams()` Return the Cipher's parameters
`protected java.lang.String` | `getCipherTransformation()` Return the Cipher's transformation
`XmlElement` | `getConfig()` Determine the current configuration of the object.
`static java.security.KeyStore` | `getKeyStore(java.lang.String sType, java.lang.String sPath, char[] acPassword)` Return a loaded KeyStore.
`protected javax.crypto.Cipher` | `makeCipher(int nMode, java.security.Key key)` Return a new initialized Cipher.
`protected void` | `setCipherParams(java.security.spec.AlgorithmParameterSpec spec)` Specify the Cipher's parameters.
`protected void` | `setCipherTransformation(java.lang.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

### m_sTransformation

    protected java.lang.String m_sTransformation

  The Cipher transformation

### m_specCipherParams

    protected java.security.spec.AlgorithmParameterSpec m_specCipherParams

  The Cipher Paramaters

### m_tlsCipher

    protected java.lang.ThreadLocal m_tlsCipher

  Reuseable Cipher

### DEFAULT_KEYSTORE_TYPE

    public static final java.lang.String DEFAULT_KEYSTORE_TYPE

  Default KeyStore type

  See Also:
    Constant Field Values

### DEFAULT_KEYSTORE_PATH

    public static final java.lang.String DEFAULT_KEYSTORE_PATH

  Default KeyStore path

  See Also:
    Constant Field Values

Constructor Detail

### AbstractEncryptionFilter

    public AbstractEncryptionFilter()

Method Detail

### setCipherParams

    protected void setCipherParams(java.security.spec.AlgorithmParameterSpec spec)

  Specify the Cipher's parameters.

  Parameters:
    `spec` - the Cipher's parameters

### getCipherParams

    protected java.security.spec.AlgorithmParameterSpec getCipherParams()

  Return the Cipher's parameters

  Returns:
    the Cipher's parameters

### setCipherTransformation

    protected void setCipherTransformation(java.lang.String sTransformation)

  Specify the Cipher's transformation.

  Parameters:
    `sTransformation` - the Cipher's transformation

### getCipherTransformation

    protected java.lang.String getCipherTransformation()

  Return the Cipher's transformation

  Returns:
    the Cipher's transformation

### makeCipher

    protected javax.crypto.Cipher makeCipher(int nMode,
                                             java.security.Key key)

  Return a new initialized Cipher.

  Parameters:
    `nMode` - the encryption mode
    `key` - the encryption key
  Returns:
    the new cipher

### getCipher

    protected javax.crypto.Cipher getCipher(int nMode,
                                            java.security.Key key)

  Return a cached thread-local initialized Cipher.

  Parameters:
    `nMode` - the encryption mode
    `key` - the encryption key
  Returns:
    a Cipher

### getKeyStore

    public static java.security.KeyStore getKeyStore(java.lang.String sType,
                                                     java.lang.String sPath,
                                                     char[] acPassword)

  Return a loaded KeyStore.

  Parameters:
    `sType` - the KeyStore type
    `sPath` - the path to the KeyStore
    `acPassword` - the KeyStore password
  Returns:
    the loaded KeyStore

### ensureSecurityException

    public static java.lang.SecurityException ensureSecurityException(java.lang.Throwable e)

  Convert the passed exception to a SecurityException if necessary.

  Parameters:
    `e` - the exception to wrap
  Returns:
    an instance of a SecurityException

### ensureSecurityException

    public static java.lang.SecurityException ensureSecurityException(java.lang.Throwable e,
                                                                      java.lang.String s)

  Convert the passed exception to a SecurityException if necessary.

  Parameters:
    `e` - the exception to wrap
    `s` - an additional description
  Returns:
    an instance of a SecurityException

### getConfig

    public XmlElement getConfig()

  Description copied from interface: `XmlConfigurable`
  Determine the current configuration of the object.

  Specified by:
    `getConfig` in interface `XmlConfigurable`
  Returns:
    the XML configuration or null

Overview | Package | Class | Tree | Index | Help

Oracle® Coherence Java API Reference
v3.5.3
E15583-01
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2010, Oracle. All rights reserved.