Modifier and Type | Method and Description |
---|---|
Identity |
decode(byte[] bytes)
Decode identity from text (or throw
DecodingException ). |
byte[] |
encode(Identity identity)
Encode identity into bytes.
|
byte[] encode(Identity identity) throws IOException
identity
- The identityIOException
- If failsIdentity decode(byte[] bytes) throws IOException
DecodingException
).
This method may throw
DecodingException
, if it's not
possible to decode the incoming byte array. This exception will mean
that the user can't be authenticated and Identity.ANONYMOUS
object will be identified.
bytes
- TextIOException
- If failsCopyright © 2015 Takes. All rights reserved.