org.glassfish.grizzly.ssl
Class SSLEncoderTransformer

java.lang.Object
  extended by org.glassfish.grizzly.AbstractTransformer<Buffer,Buffer>
      extended by org.glassfish.grizzly.ssl.SSLEncoderTransformer
All Implemented Interfaces:
Transformer<Buffer,Buffer>

public final class SSLEncoderTransformer
extends AbstractTransformer<Buffer,Buffer>

Transformer, which encrypts plain data, contained in the input Buffer, into SSL/TLS data and puts the result to the output Buffer.

Author:
Alexey Stashok

Nested Class Summary
 
Nested classes/interfaces inherited from class org.glassfish.grizzly.AbstractTransformer
AbstractTransformer.LastResultAwareState<K,L>
 
Field Summary
static int BUFFER_OVERFLOW_ERROR
           
static int BUFFER_UNDERFLOW_ERROR
           
static int NEED_HANDSHAKE_ERROR
           
 
Fields inherited from class org.glassfish.grizzly.AbstractTransformer
attributeBuilder, stateAttr
 
Constructor Summary
SSLEncoderTransformer()
           
SSLEncoderTransformer(MemoryManager memoryManager)
           
 
Method Summary
 String getName()
          Get the Transformer name.
 boolean hasInputRemaining(AttributeStorage storage, Buffer input)
           
protected  TransformationResult<Buffer,Buffer> transformImpl(AttributeStorage state, Buffer originalMessage)
           
 
Methods inherited from class org.glassfish.grizzly.AbstractTransformer
createStateObject, getLastResult, getMemoryManager, getNamePrefix, getValue, obtainMemoryManager, obtainStateObject, release, saveLastResult, setMemoryManager, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NEED_HANDSHAKE_ERROR

public static final int NEED_HANDSHAKE_ERROR
See Also:
Constant Field Values

BUFFER_UNDERFLOW_ERROR

public static final int BUFFER_UNDERFLOW_ERROR
See Also:
Constant Field Values

BUFFER_OVERFLOW_ERROR

public static final int BUFFER_OVERFLOW_ERROR
See Also:
Constant Field Values
Constructor Detail

SSLEncoderTransformer

public SSLEncoderTransformer()

SSLEncoderTransformer

public SSLEncoderTransformer(MemoryManager memoryManager)
Method Detail

getName

public String getName()
Description copied from interface: Transformer
Get the Transformer name. The name is used to store Transformer associated data.

Returns:
The Transformer name.

transformImpl

protected TransformationResult<Buffer,Buffer> transformImpl(AttributeStorage state,
                                                            Buffer originalMessage)
                                                     throws TransformationException
Specified by:
transformImpl in class AbstractTransformer<Buffer,Buffer>
Throws:
TransformationException

hasInputRemaining

public boolean hasInputRemaining(AttributeStorage storage,
                                 Buffer input)


Copyright © 2013 Oracle Corporation. All Rights Reserved.