diff --git a/src/main/java/io/wwan13/wintersecurity/jwt/PayloadAnalysis.java b/src/main/java/io/wwan13/wintersecurity/jwt/PayloadAnalysis.java index 2194a23..8d658d4 100644 --- a/src/main/java/io/wwan13/wintersecurity/jwt/PayloadAnalysis.java +++ b/src/main/java/io/wwan13/wintersecurity/jwt/PayloadAnalysis.java @@ -17,20 +17,10 @@ package io.wwan13.wintersecurity.jwt; import java.lang.reflect.Field; -import java.util.HashSet; -import java.util.Set; public record PayloadAnalysis( Class payloadClazz, Field subject, Field roles ) { - - public Set allClaims() { - Set allClaims = new HashSet<>(); - allClaims.add(subject); - allClaims.add(roles); - - return allClaims; - } } diff --git a/src/main/java/io/wwan13/wintersecurity/jwt/payload/support/JwtPayloadParser.java b/src/main/java/io/wwan13/wintersecurity/jwt/payload/support/JwtPayloadParser.java index 69e77b0..db42db0 100644 --- a/src/main/java/io/wwan13/wintersecurity/jwt/payload/support/JwtPayloadParser.java +++ b/src/main/java/io/wwan13/wintersecurity/jwt/payload/support/JwtPayloadParser.java @@ -22,8 +22,6 @@ import java.lang.reflect.Field; import java.util.Collection; import java.util.Collections; -import java.util.HashMap; -import java.util.Map; import java.util.Objects; import java.util.Set; import java.util.stream.Collectors;