-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)type: enhancementA general enhancementA general enhancement
Milestone
Description
This still needs to be thought through a bit, but contracts like these:
public class AbstractOAuth2TokenAuthenticationToken<T extends AbstractOAuth2Token>
would be a bit more flexible if the bounding type were an interface instead of an abstract class, for example:
public class AbstractOAuth2TokenAuthenticationToken<T extends OAuth2Token>
Or, perhaps something more generic:
public class AbstractOAuth2TokenAuthenticationToken<T extends Token>
These would imply the creation of an interface for AbstractOAuth2Token
to extend, something like:
public interface Token {
String getValue();
}
public abstract class AbstractOAuth2Token implements Token {
// ...
}
Logging this ticket so that we can start the discussion.
mhyeon-lee
Metadata
Metadata
Assignees
Labels
in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)type: enhancementA general enhancementA general enhancement