1
1
/*
2
- * Copyright (c) 2019-2023 , FusionAuth, All Rights Reserved
2
+ * Copyright (c) 2019-2024 , FusionAuth, All Rights Reserved
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -40,6 +40,8 @@ public class JWTConfiguration extends Enableable implements Buildable<JWTConfigu
40
40
41
41
public RefreshTokenExpirationPolicy refreshTokenExpirationPolicy = RefreshTokenExpirationPolicy .Fixed ;
42
42
43
+ public RefreshTokenOneTimeUseConfiguration refreshTokenOneTimeUseConfiguration = new RefreshTokenOneTimeUseConfiguration ();
44
+
43
45
/**
44
46
* This can only be set at the tenant level.
45
47
*/
@@ -71,6 +73,7 @@ public JWTConfiguration(JWTConfiguration other) {
71
73
this .idTokenKeyId = other .idTokenKeyId ;
72
74
this .refreshTokenExpirationPolicy = other .refreshTokenExpirationPolicy ;
73
75
this .refreshTokenRevocationPolicy = new RefreshTokenRevocationPolicy (other .refreshTokenRevocationPolicy );
76
+ this .refreshTokenOneTimeUseConfiguration = new RefreshTokenOneTimeUseConfiguration (other .refreshTokenOneTimeUseConfiguration );
74
77
this .refreshTokenSlidingWindowConfiguration = new RefreshTokenSlidingWindowConfiguration (other .refreshTokenSlidingWindowConfiguration );
75
78
this .refreshTokenTimeToLiveInMinutes = other .refreshTokenTimeToLiveInMinutes ;
76
79
this .refreshTokenUsagePolicy = other .refreshTokenUsagePolicy ;
@@ -93,6 +96,7 @@ public boolean equals(Object o) {
93
96
Objects .equals (idTokenKeyId , that .idTokenKeyId ) &&
94
97
refreshTokenExpirationPolicy == that .refreshTokenExpirationPolicy &&
95
98
Objects .equals (refreshTokenRevocationPolicy , that .refreshTokenRevocationPolicy ) &&
99
+ Objects .equals (refreshTokenOneTimeUseConfiguration , that .refreshTokenOneTimeUseConfiguration ) &&
96
100
Objects .equals (refreshTokenSlidingWindowConfiguration , that .refreshTokenSlidingWindowConfiguration ) &&
97
101
refreshTokenTimeToLiveInMinutes == that .refreshTokenTimeToLiveInMinutes &&
98
102
refreshTokenUsagePolicy == that .refreshTokenUsagePolicy &&
@@ -106,6 +110,7 @@ public int hashCode() {
106
110
idTokenKeyId ,
107
111
refreshTokenExpirationPolicy ,
108
112
refreshTokenRevocationPolicy ,
113
+ refreshTokenOneTimeUseConfiguration ,
109
114
refreshTokenSlidingWindowConfiguration ,
110
115
refreshTokenTimeToLiveInMinutes ,
111
116
refreshTokenUsagePolicy ,
0 commit comments