com.stark.jarvis.security.oauth2.authentication.sms.OAuth2SmsVerificationCodeAuthenticationToken Maven / Gradle / Ivy
package com.stark.jarvis.security.oauth2.authentication.sms;
import com.stark.jarvis.security.oauth2.authentication.base.OAuth2ResourceOwnerBaseAuthenticationToken;
import lombok.Getter;
import org.springframework.lang.Nullable;
import org.springframework.security.core.Authentication;
import org.springframework.security.oauth2.core.AuthorizationGrantType;
import java.io.Serial;
import java.util.Map;
import java.util.Set;
/**
* 短信验证码认证令牌
*
* @author Ben
* @version 1.0.0
* @since 2024/7/21
*/
@Getter
public class OAuth2SmsVerificationCodeAuthenticationToken extends OAuth2ResourceOwnerBaseAuthenticationToken {
@Serial
private static final long serialVersionUID = 6584876414264179875L;
public OAuth2SmsVerificationCodeAuthenticationToken(Set scopes, Authentication clientPrincipal,
@Nullable Map additionalParameters) {
super(new AuthorizationGrantType(OAuth2ParameterNamesExtended.GRANT_TYPE), scopes, clientPrincipal, additionalParameters);
}
}