Skip to content

Missing nullability information in AuthenticationTrustResolver #17764

@bclozel

Description

@bclozel

As of #17534, JSpecify annotations have been introduced in spring-security-core.

SecurityContext.getAuthentication returns a @Nullable value, but the AuthenticationTrustResolver counterpart is out of sync.

The AuthenticationTrustResolver interface is missing @Nullable annotations for isAnonymous, isRememberMe and isFullyAuthenticated as they all take nullable Authentication parameters per Javadoc.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions