Package org.apereo.cas.web.flow.executor
Interface Transcoder
-
- All Known Implementing Classes:
EncryptedTranscoder
public interface TranscoderProvides a strategy pattern interface for transforming an object into a byte array and vice versa.Transcodercomponents are used byClientFlowExecutionRepositoryfor producing the data stored in aClientFlowExecutionKey.- Since:
- 6.1
- See Also:
ClientFlowExecutionKey,ClientFlowExecutionRepository
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectdecode(byte[] encoded)Decodes a stream of bytes produced byencode(Object)back into the original object.byte[]encode(java.lang.Object o)Encodes an object into a stream of bytes.
-
-
-
Method Detail
-
encode
byte[] encode(java.lang.Object o) throws java.io.IOExceptionEncodes an object into a stream of bytes.- Parameters:
o- Object to encode.- Returns:
- Object encoded as a byte array.
- Throws:
java.io.IOException- On encoding errors.
-
decode
java.lang.Object decode(byte[] encoded) throws java.io.IOExceptionDecodes a stream of bytes produced byencode(Object)back into the original object.- Parameters:
encoded- Encoded representation of an object.- Returns:
- Object decoded from byte array.
- Throws:
java.io.IOException- On decoding errors.
-
-