mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-03-01 02:49:11 +00:00
Make TokenType constructor public
Closes gh-16086
This commit is contained in:
parent
a7b6c63442
commit
6bc6946ad9
@ -114,7 +114,12 @@ public class OAuth2AccessToken extends AbstractOAuth2Token {
|
|||||||
|
|
||||||
private final String value;
|
private final String value;
|
||||||
|
|
||||||
private TokenType(String value) {
|
/**
|
||||||
|
* Constructs a {@code TokenType} using the provided value.
|
||||||
|
* @param value the value of the token type
|
||||||
|
* @since 6.5
|
||||||
|
*/
|
||||||
|
public TokenType(String value) {
|
||||||
Assert.hasText(value, "value cannot be empty");
|
Assert.hasText(value, "value cannot be empty");
|
||||||
this.value = value;
|
this.value = value;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user