Class AbstractOAuth2TokenAuthenticationToken.AbstractOAuth2TokenAuthenticationBuilder<T extends org.springframework.security.oauth2.core.OAuth2Token,B extends AbstractOAuth2TokenAuthenticationToken.AbstractOAuth2TokenAuthenticationBuilder<T,B>>

java.lang.Object
org.springframework.security.oauth2.server.resource.authentication.AbstractOAuth2TokenAuthenticationToken.AbstractOAuth2TokenAuthenticationBuilder<T,B>
Type Parameters:
B -
All Implemented Interfaces:
org.springframework.security.core.Authentication.Builder<B>
Direct Known Subclasses:
BearerTokenAuthentication.Builder, JwtAuthenticationToken.Builder
Enclosing class:
AbstractOAuth2TokenAuthenticationToken<T extends org.springframework.security.oauth2.core.OAuth2Token>

public abstract static class AbstractOAuth2TokenAuthenticationToken.AbstractOAuth2TokenAuthenticationBuilder<T extends org.springframework.security.oauth2.core.OAuth2Token,B extends AbstractOAuth2TokenAuthenticationToken.AbstractOAuth2TokenAuthenticationBuilder<T,B>> extends Object
A builder for AbstractOAuth2TokenAuthenticationToken implementations
Since:
7.0
  • Constructor Details

  • Method Details

    • principal

      public B principal(@Nullable Object principal)
    • credentials

      public B credentials(@Nullable Object credentials)
    • token

      public B token(T token)
      The OAuth 2.0 Token to use
      Parameters:
      token - the token to use
      Returns:
      the Authentication.Builder for further configurations