Leonard Lyubich
0b5c4299aa
service: implement SessionToken wrapper for Sign/Verify support
2020-05-13 19:02:13 +03:00
Leonard Lyubich
e01fb0cc62
Implement signed data calculating function from SignedDataReader
2020-05-11 17:28:44 +03:00
Leonard Lyubich
1932658a7d
session: implement getters and setters on messages
2020-05-08 11:53:49 +03:00
Leonard Lyubich
52d3c82776
service: implement sign/verify function for data with session token
2020-05-06 11:44:55 +03:00
Leonard Lyubich
fc2c78ae89
service: use new function for token signing and verification
2020-05-05 14:49:35 +03:00
Leonard Lyubich
8270245455
service: transfer public types to a separate file
2020-05-04 14:00:25 +03:00
Leonard Lyubich
fc177c4ce3
service: change constant errors
...
This commit:
* moves defined errors to a separate file;
* renames ErrEmptyToken to ErrNilToken;
* merges ErrZeroTTL and ErrIncorrectTTL into single ErrInvalidTTL.
2020-05-04 13:06:36 +03:00
Leonard Lyubich
cce6566f1e
service: prevent NPE in VerifyTokenSignature function
...
This commit adds next changes to VerifyTokenSignature:
* returns ErrEmptyToken on nil token argument;
* returns ErrEmptyPublicKey on nil public key argument.
2020-04-29 10:57:07 +03:00
Leonard Lyubich
82ffde253b
service: implement Sign/Verify functions for SessionToken
2020-04-28 19:03:15 +03:00
Leonard Lyubich
d327d836c4
service: define and implement Token field composing interface
...
This commit:
* defines SessionToken interface of Token field getters/setters group;
* implements SessionToken on Token message.
2020-04-28 17:09:01 +03:00