@DefaultImplementation(value=DefaultAccessRefreshTokenGenerator.class) public interface AccessRefreshTokenGenerator
AccessRefreshToken
for a particular user.Modifier and Type | Method and Description |
---|---|
java.util.Optional<AccessRefreshToken> |
generate(Authentication authentication) |
java.util.Optional<AccessRefreshToken> |
generate(java.lang.String refreshToken,
Authentication authentication) |
java.util.Optional<AccessRefreshToken> |
generate(java.lang.String refreshToken,
java.util.Map<java.lang.String,?> oldClaims) |
java.util.Optional<java.lang.String> |
generateRefreshToken(Authentication authentication) |
@NonNull java.util.Optional<AccessRefreshToken> generate(@NonNull Authentication authentication)
authentication
- User's authenticationAccessRefreshToken
@NonNull java.util.Optional<java.lang.String> generateRefreshToken(@NonNull Authentication authentication)
authentication
- User's authentication@NonNull java.util.Optional<AccessRefreshToken> generate(@NonNull java.lang.String refreshToken, @NonNull java.util.Map<java.lang.String,?> oldClaims)
refreshToken
- refresh tokenoldClaims
- oldClaimsAccessRefreshToken
@NonNull java.util.Optional<AccessRefreshToken> generate(@NonNull java.lang.String refreshToken, @NonNull Authentication authentication)
refreshToken
- refresh tokenauthentication
- User's authentication