Package com.mku.salmon.sequence
Interface INonceSequenceSerializer
-
- All Known Implementing Classes:
AndroidSequenceSerializer
,SequenceSerializer
public interface INonceSequenceSerializer
Serializes/Deserializes nonce sequences.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.HashMap<java.lang.String,NonceSequence>
deserialize(java.lang.String contents)
Deserialize sequences from a string.java.lang.String
serialize(java.util.HashMap<java.lang.String,NonceSequence> sequences)
Serialize the sequences to a string.
-
-
-
Method Detail
-
deserialize
java.util.HashMap<java.lang.String,NonceSequence> deserialize(java.lang.String contents)
Deserialize sequences from a string.- Parameters:
contents
- The contents containing the nonce sequences.- Returns:
- The deserialized sequences
- Throws:
SequenceException
- Thrown if there is an error with the nonce sequence
-
serialize
java.lang.String serialize(java.util.HashMap<java.lang.String,NonceSequence> sequences)
Serialize the sequences to a string.- Parameters:
sequences
- The sequences to convert to text.- Returns:
- The serialized contents
- Throws:
SequenceException
- Thrown if there is an error with the nonce sequence
-
-