Skip to content

Commit 6bc6946

Browse files
committed
Make TokenType constructor public
Closes gh-16086
1 parent a7b6c63 commit 6bc6946

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)