Skip to content

Commit e04088b

Browse files
joguclaude
andcommitted
Set 30-day expiration for SD-JWT credentials
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ebe1fe4 commit e04088b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/main/java/com/authlete/jaxrs/server/vc/SdJwtOrderProcessor.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,14 @@ protected Map<String, Object> collectClaims10ID1(
156156
}
157157

158158

159+
@Override
160+
protected long computeCredentialDuration()
161+
{
162+
// 30 days in seconds.
163+
return 30 * 24 * 60 * 60;
164+
}
165+
166+
159167
private static Map<String, Object> buildClaims(User user, VerifiableCredentialType vct)
160168
{
161169
// Claims.

0 commit comments

Comments
 (0)