Class IdentityManager


  • public class IdentityManager
    extends Object
    Stout wrapper around subject name. Allows any implementation to be used without exposing the implementation directly to the rest of Stout. If you want to change this implementation - please do! You can override the IdentityManager bean and register whatever you want.
    • Constructor Detail

      • IdentityManager

        public IdentityManager()
    • Method Detail

      • getSubjectName

        public String getSubjectName()
        Returns the subject name (a.k.a. username) of the currently logged in identity. For proper tokens, a username will be populated. However, for simple token (e.g., a header containing a username), only id will be populated. Try username and if we don't get it, default to id.
        Returns:
        subject name
      • logout

        public void logout()
        Logs the current subject out.