Skip to content

Commit 975170e

Browse files
sjohnrkwondh5217
authored andcommitted
Make TokenType constructor public
Closes spring-projectsgh-16086 Signed-off-by: Daeho Kwon <[email protected]>
1 parent a858a9b commit 975170e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/OAuth2AccessToken.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,12 @@ public static final class TokenType implements Serializable {
114114

115115
private final String value;
116116

117-
private TokenType(String value) {
117+
/**
118+
* Constructs a {@code TokenType} using the provided value.
119+
* @param value the value of the token type
120+
* @since 6.5
121+
*/
122+
public TokenType(String value) {
118123
Assert.hasText(value, "value cannot be empty");
119124
this.value = value;
120125
}

0 commit comments

Comments
 (0)