File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
lib/src/main/java/com/auth0/jwt Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -49,26 +49,6 @@ public JWTDecoder(String jwt, EncodeType encodeType) throws Exception {
4949 headerJson = StringUtils .newStringUtf8 (Base64 .decodeBase64 (parts [0 ]));
5050 payloadJson = StringUtils .newStringUtf8 (Base64 .decodeBase64 (parts [1 ]));
5151 break ;
52- case JsonEncode : {
53- Schema schemaForHeader = SchemaBuilder
54- .record ("record" ).namespace ("namespace" )
55- .fields ()
56- .name ("alg" ).type ().stringType ().noDefault ()
57- .name ("typ" ).type ().stringType ().noDefault ()
58- .endRecord ();
59-
60- Schema schemaForPayload = SchemaBuilder
61- .record ("record" ).namespace ("namespace" )
62- .fields ()
63- .name ("sub" ).type ().array ().items ().stringType ().noDefault ()
64- .name ("iss" ).type ().array ().items ().stringType ().noDefault ()
65- .name ("aud" ).type ().stringType ().noDefault ()
66- .name ("iat" ).type ().intType ().noDefault ()
67- .endRecord ();
68- headerJson = JWTCreator .avroToJson (JWTCreator .schemaToHeaderAndPayloadByteArray .get (schemaForHeader ), schemaForHeader );
69- payloadJson = JWTCreator .avroToJson (JWTCreator .schemaToHeaderAndPayloadByteArray .get (schemaForPayload ), schemaForPayload );
70- break ;
71- }
7252 }
7353 header = converter .parseHeader (headerJson );
7454 payload = converter .parsePayload (payloadJson );
You can’t perform that action at this time.
0 commit comments