Interface BearerTokenProvider
public interface BearerTokenProvider
For manipulating and additional validation of access tokens and refresh
tokens to meet specific implementation detail.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionbooleanisValid(BearerTokenProvider.AccessToken accessToken) default booleanisValid(BearerTokenProvider.RefreshToken refreshToken) default voidonBeforeCreate(BearerTokenProvider.AccessToken accessToken) Will be called when an access token is constructed to provide an opportunity to modify it before it is saved or returned to a clientdefault voidonBeforeCreate(BearerTokenProvider.RefreshToken refreshToken) Will be called when a refresh token is constructed to provide an opportunity to modify it before it is saved or returned to a client
-
Method Details
-
isValid
-
isValid
-
onBeforeCreate
Will be called when an access token is constructed to provide an opportunity to modify it before it is saved or returned to a client- Parameters:
accessToken-
-
onBeforeCreate
Will be called when a refresh token is constructed to provide an opportunity to modify it before it is saved or returned to a client- Parameters:
refreshToken-
-