Record Class JwtProperties
java.lang.Object
java.lang.Record
fr.tiogars.domaintemplate.config.JwtProperties
-
Constructor Summary
ConstructorsConstructorDescriptionJwtProperties(@NotBlank String secret, @Positive long expirationSeconds) Creates an instance of aJwtPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@Positive longReturns the value of theexpirationSecondsrecord component.final inthashCode()Returns a hash code value for this object.@NotBlank Stringsecret()Returns the value of thesecretrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JwtProperties
Creates an instance of aJwtPropertiesrecord class.- Parameters:
secret- the value for thesecretrecord componentexpirationSeconds- the value for theexpirationSecondsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
secret
Returns the value of thesecretrecord component.- Returns:
- the value of the
secretrecord component
-
expirationSeconds
@Positive public @Positive long expirationSeconds()Returns the value of theexpirationSecondsrecord component.- Returns:
- the value of the
expirationSecondsrecord component
-