Skip to content

Add TimestampedGrantedAuthority#19426

Open
Develop-KIM wants to merge 1 commit into
spring-projects:mainfrom
Develop-KIM:add-timestamped-granted-authority
Open

Add TimestampedGrantedAuthority#19426
Develop-KIM wants to merge 1 commit into
spring-projects:mainfrom
Develop-KIM:add-timestamped-granted-authority

Conversation

@Develop-KIM

Copy link
Copy Markdown

Fixes gh-17864

This adds TimestampedGrantedAuthority, a GrantedAuthority implementation that stores:

  • the authority value
  • when the authority was issued
  • an optional not-before instant
  • an optional expires-at instant

The builder defaults issuedAt to Instant.now() when it is not specified and validates that notBefore is not after expiresAt.

Verification:

  • ./gradlew :spring-security-core:test --tests org.springframework.security.core.authority.TimestampedGrantedAuthorityTests
  • ./gradlew :spring-security-core:test --tests org.springframework.security.core.authority.TimestampedGrantedAuthorityTests --tests 'org.springframework.security.core.authority.*'
  • ./gradlew :spring-security-core:check

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jul 9, 2026
Signed-off-by: Develop-KIM <kimdonghwan913@gmail.com>
@Develop-KIM Develop-KIM force-pushed the add-timestamped-granted-authority branch from eb2c64c to 6718254 Compare July 9, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Timestamped GrantedAuthority

2 participants