Skip to content

Add generic getClaim() method in ClaimAccessor #6947

Closed
@jgrandja

Description

@jgrandja

We should add a convenience (default) method in ClaimAccessor, as follows:

default <T> T getClaim(String claim) {
    return (T) this.getClaims().get(claim);
}

Related to comment

Metadata

Metadata

Assignees

Labels

in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions