Package org.glassfish.grizzly.ssl
Class SSLEncoderTransformer
- java.lang.Object
-
- org.glassfish.grizzly.AbstractTransformer<Buffer,Buffer>
-
- 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
Fields Modifier and Type Field Description 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
Constructors Constructor Description SSLEncoderTransformer()
SSLEncoderTransformer(MemoryManager memoryManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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 classAbstractTransformer<Buffer,Buffer>
- Throws:
TransformationException
-
hasInputRemaining
public boolean hasInputRemaining(AttributeStorage storage, Buffer input)
-
-