Skip to content

Commit 9182c22

Browse files
committed
feat: added sealed keyword
1 parent 589f6cc commit 9182c22

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

library/src/main/java/com/mastercard/developer/oauth2/core/access_token/AccessTokenStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Interface for caching and retrieving OAuth 2.0 access tokens.
77
* Implementations should handle token expiration and provide thread-safe operations.
88
*/
9-
public interface AccessTokenStore {
9+
public sealed interface AccessTokenStore permits InMemoryAccessTokenStore {
1010
/**
1111
* Adds an access token to the store.
1212
*/

library/src/main/java/com/mastercard/developer/oauth2/core/dpop/DPoPKeyProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* DPoP key provider used to supply keys for creating DPoP proofs.
55
*/
6-
public interface DPoPKeyProvider {
6+
public sealed interface DPoPKeyProvider permits StaticDPoPKeyProvider {
77
/**
88
* Gets the current key to be used for signing DPoP proofs.
99
*/

0 commit comments

Comments
 (0)