From fdf32633736cb6cc85f65f0ea0c9c4bb3ba221a9 Mon Sep 17 00:00:00 2001 From: zihluwang Date: Wed, 2 Apr 2025 21:04:43 +0800 Subject: [PATCH] feat: a class to store the three parts of the token in raw type --- .../onixbyte/jwt/data/RawTokenComponent.java | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 simple-jwt/src/main/java/com/onixbyte/jwt/data/RawTokenComponent.java diff --git a/simple-jwt/src/main/java/com/onixbyte/jwt/data/RawTokenComponent.java b/simple-jwt/src/main/java/com/onixbyte/jwt/data/RawTokenComponent.java new file mode 100644 index 0000000..6b5108c --- /dev/null +++ b/simple-jwt/src/main/java/com/onixbyte/jwt/data/RawTokenComponent.java @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024-2025 OnixByte. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.onixbyte.jwt.data; + +/** + * + * @param header + * @param payload + * @param signature + * @author zihluwang + */ +public record RawTokenComponent( + String header, + String payload, + String signature +) { +}