Package org.takes.facets.auth.codecs
Class CcCompact
- java.lang.Object
-
- org.takes.facets.auth.codecs.CcCompact
-
-
Constructor Summary
Constructors Constructor Description CcCompact()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Identity
decode(byte[] bytes)
Decode identity from text (or throwDecodingException
).byte[]
encode(Identity identity)
Encode identity into bytes.
-
-
-
Method Detail
-
encode
public byte[] encode(Identity identity)
Description copied from interface:Codec
Encode identity into bytes.
-
decode
public Identity decode(byte[] bytes)
Description copied from interface:Codec
Decode identity from text (or throwDecodingException
).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 andIdentity.ANONYMOUS
object will be identified.
-
-