Class IdentityManager
- java.lang.Object
-
- org.technologybrewery.fermenter.stout.authn.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 Summary
Constructors Constructor Description IdentityManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetSubjectName()Returns the subject name (a.k.a.voidlogout()Logs the current subject out.
-
-
-
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.
-
-