-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'RM-5091_nonce_prop_fix' into 'master'
RM-5091: move nonce expiration property to NonceConfigProperties and change... See merge request cdoc2/cdoc2-shares-server!22
- Loading branch information
Showing
4 changed files
with
28 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
shares-server/src/main/java/ee/cyber/cdoc2/server/config/NonceConfigProperties.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package ee.cyber.cdoc2.server.config; | ||
|
||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
|
||
|
||
/** | ||
* Key Shares nonce configuration properties | ||
*/ | ||
@ConfigurationProperties(prefix = "cdoc2.nonce") | ||
public record NonceConfigProperties(long expirationSeconds) { | ||
public NonceConfigProperties() { | ||
this(300L); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters