JWT: updated to make JWT algorithm support more flexible, and simple to extend with specific algorithm.
This commit is contained in:
30
library/security/jwt/src/jwt_alg_none.e
Normal file
30
library/security/jwt/src/jwt_alg_none.e
Normal 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
|
||||
Reference in New Issue
Block a user