Record Class JwtUtil.JwtParts
java.lang.Object
java.lang.Record
cloud.opencode.base.crypto.jwt.JwtUtil.JwtParts
- Enclosing class:
JwtUtil
public static record JwtUtil.JwtParts(JwtAlgorithm algorithm, Map<String,Object> header, JwtClaims claims, byte[] signature, String signatureInput)
extends Record
JWT Parts - Holds parsed JWT components
JWT 部分 - 保存解析后的 JWT 组件
- Since:
- JDK 25, opencode-base-crypto V1.2.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealgorithmrecord component.claims()Returns the value of theclaimsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.header()Returns the value of theheaderrecord component.byte[]Returns the value of thesignaturerecord component.Returns the value of thesignatureInputrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JwtParts
public JwtParts(JwtAlgorithm algorithm, Map<String, Object> header, JwtClaims claims, byte[] signature, String signatureInput) Creates an instance of aJwtPartsrecord class.- Parameters:
algorithm- the value for thealgorithmrecord componentheader- the value for theheaderrecord componentclaims- the value for theclaimsrecord componentsignature- the value for thesignaturerecord componentsignatureInput- the value for thesignatureInputrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
algorithm
Returns the value of thealgorithmrecord component.- Returns:
- the value of the
algorithmrecord component
-
header
-
claims
Returns the value of theclaimsrecord component.- Returns:
- the value of the
claimsrecord component
-
signature
public byte[] signature()Returns the value of thesignaturerecord component.- Returns:
- the value of the
signaturerecord component
-
signatureInput
Returns the value of thesignatureInputrecord component.- Returns:
- the value of the
signatureInputrecord component
-