Package org.apereo.cas.web.flow.executor
Interface Transcoder
- All Known Implementing Classes:
EncryptedTranscoder
public interface Transcoder
Provides a strategy pattern interface for transforming an object into a byte array and vice versa.
Transcoder components are used by ClientFlowExecutionRepository for producing the data stored
in a ClientFlowExecutionKey.- Since:
- 6.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondecode(byte[] encoded) Decodes a stream of bytes produced byencode(Object)back into the original object.byte[]Encodes an object into a stream of bytes.
-
Method Details
-
encode
Encodes an object into a stream of bytes.- Parameters:
o- Object to encode.- Returns:
- Object encoded as a byte array.
- Throws:
IOException- On encoding errors.
-
decode
Decodes 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:
IOException- On decoding errors.
-