- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
101 lines
2.5 KiB
Smali
101 lines
2.5 KiB
Smali
.class public Lcsdk/glucustomersupport/util/JsonWebToken;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 10
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static Create(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/Exception;
|
|
}
|
|
.end annotation
|
|
|
|
.line 13
|
|
invoke-static {}, Lio/jsonwebtoken/Jwts;->builder()Lio/jsonwebtoken/JwtBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "alg"
|
|
|
|
const-string v2, "HS256"
|
|
|
|
.line 14
|
|
invoke-interface {v0, v1, v2}, Lio/jsonwebtoken/JwtBuilder;->setHeaderParam(Ljava/lang/String;Ljava/lang/Object;)Lio/jsonwebtoken/JwtBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "typ"
|
|
|
|
const-string v2, "JWT"
|
|
|
|
.line 15
|
|
invoke-interface {v0, v1, v2}, Lio/jsonwebtoken/JwtBuilder;->setHeaderParam(Ljava/lang/String;Ljava/lang/Object;)Lio/jsonwebtoken/JwtBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Ljava/util/Date;
|
|
|
|
invoke-direct {v1}, Ljava/util/Date;-><init>()V
|
|
|
|
.line 16
|
|
invoke-interface {v0, v1}, Lio/jsonwebtoken/JwtBuilder;->setIssuedAt(Ljava/util/Date;)Lio/jsonwebtoken/JwtBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
.line 17
|
|
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
const-string v1, "externalId"
|
|
|
|
.line 18
|
|
invoke-interface {v0, v1, p0}, Lio/jsonwebtoken/JwtBuilder;->claim(Ljava/lang/String;Ljava/lang/Object;)Lio/jsonwebtoken/JwtBuilder;
|
|
|
|
.line 19
|
|
:cond_0
|
|
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result p0
|
|
|
|
if-nez p0, :cond_1
|
|
|
|
const-string p0, "email"
|
|
|
|
.line 20
|
|
invoke-interface {v0, p0, p1}, Lio/jsonwebtoken/JwtBuilder;->claim(Ljava/lang/String;Ljava/lang/Object;)Lio/jsonwebtoken/JwtBuilder;
|
|
|
|
.line 21
|
|
:cond_1
|
|
sget-object p0, Lio/jsonwebtoken/SignatureAlgorithm;->HS256:Lio/jsonwebtoken/SignatureAlgorithm;
|
|
|
|
.line 23
|
|
invoke-virtual {p2}, Ljava/lang/String;->getBytes()[B
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {v0, p0, p1}, Lio/jsonwebtoken/JwtBuilder;->signWith(Lio/jsonwebtoken/SignatureAlgorithm;[B)Lio/jsonwebtoken/JwtBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
.line 24
|
|
invoke-interface {p0}, Lio/jsonwebtoken/JwtBuilder;->compact()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|