Class CoreStitchAuth<StitchUserT extends CoreStitchUser>

  • Type Parameters:
    StitchUserT - The type of users that will be consumed/produced by this component.
    All Implemented Interfaces:
    StitchAuthRequestClient, Closeable, AutoCloseable
    Direct Known Subclasses:
    StitchAuthImpl, StitchAuthImpl

    public abstract class CoreStitchAuth<StitchUserT extends CoreStitchUser>
    extends Object
    implements StitchAuthRequestClient, Closeable
    CoreStitchAuth is responsible for authenticating clients as well as acting as a client for authenticated requests. Synchronization in this class happens around the activeUserAuthInfo and activeUser objects such that access to them is 1. always atomic and 2. queued to prevent excess token refreshes.