JWT: updated to make JWT algorithm support more flexible, and simple to extend with specific algorithm.

This commit is contained in:
2018-10-17 10:59:57 +02:00
parent f97f59b703
commit 0baa05cf63
10 changed files with 340 additions and 84 deletions

View File

@@ -0,0 +1,30 @@
note
description: "Summary description for {JWT_ALG_NONE}."
author: ""
date: "$Date$"
revision: "$Revision$"
class
JWT_ALG_NONE
inherit
JWT_ALG
redefine
is_none
end
feature -- Access
name: STRING = "none"
encoded_string (a_message: READABLE_STRING_8; a_secret: READABLE_STRING_8): STRING
do
create Result.make_empty
end
feature -- Status report
is_none: BOOLEAN = True
-- Is Current algorithm is "none" ?
end