Class LegacyImplicitTokenGeneratorFactory

java.lang.Object
com.irurueta.authserver.authorization.api.web.implicit.LegacyImplicitTokenGeneratorFactory

public class LegacyImplicitTokenGeneratorFactory extends Object
Builds the token generator of the legacy flow with the claims customizers of the server, so its tokens carry the same roles, tenant, audience and authentication claims as those of the other flows. The generator is deliberately not a bean: a bean of that type would replace the one the framework builds for every other flow.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.springframework.beans.factory.ObjectProvider<org.springframework.security.oauth2.server.authorization.token.OAuth2TokenCustomizer<org.springframework.security.oauth2.server.authorization.token.OAuth2TokenClaimsContext>>
    Adds the claims of the server to a reference token.
    private final org.springframework.beans.factory.ObjectProvider<org.springframework.security.oauth2.server.authorization.token.OAuth2TokenCustomizer<org.springframework.security.oauth2.server.authorization.token.JwtEncodingContext>>
    Adds the claims of the server to a JWT.
    private final org.springframework.security.oauth2.jwt.JwtEncoder
    Signs the self-contained tokens.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<org.springframework.security.oauth2.core.OAuth2Token>
    Creates the generator: a JWT for a client of self-contained tokens, an opaque token otherwise.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • jwtEncoder

      private final org.springframework.security.oauth2.jwt.JwtEncoder jwtEncoder
      Signs the self-contained tokens.
    • jwtCustomizers

      private final org.springframework.beans.factory.ObjectProvider<org.springframework.security.oauth2.server.authorization.token.OAuth2TokenCustomizer<org.springframework.security.oauth2.server.authorization.token.JwtEncodingContext>> jwtCustomizers
      Adds the claims of the server to a JWT.
    • claimsCustomizers

      private final org.springframework.beans.factory.ObjectProvider<org.springframework.security.oauth2.server.authorization.token.OAuth2TokenCustomizer<org.springframework.security.oauth2.server.authorization.token.OAuth2TokenClaimsContext>> claimsCustomizers
      Adds the claims of the server to a reference token.
  • Constructor Details

    • LegacyImplicitTokenGeneratorFactory

      public LegacyImplicitTokenGeneratorFactory()
  • Method Details

    • create

      public org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<org.springframework.security.oauth2.core.OAuth2Token> create()
      Creates the generator: a JWT for a client of self-contained tokens, an opaque token otherwise.
      Returns:
      the generator.