Class SubjectUtils
- java.lang.Object
-
- com.tetsuwantech.atom.util.authentication.SubjectUtils
-
public class SubjectUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
ANONYMOUS_USER
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
doAuthenticatedAction(SubjectModel subject, Consumer<SubjectModel> subjectConsumer)
static <T> void
doAuthenticatedAction(SubjectModel subject, T argument, Consumer<T> subjectConsumer)
static SubjectModel
getSubject()
static void
login(SubjectModel subject)
static void
logout(SubjectModel subject)
-
-
-
Field Detail
-
ANONYMOUS_USER
public static final String ANONYMOUS_USER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSubject
public static SubjectModel getSubject()
-
login
public static void login(SubjectModel subject)
-
logout
public static void logout(SubjectModel subject)
-
doAuthenticatedAction
public static void doAuthenticatedAction(SubjectModel subject, Consumer<SubjectModel> subjectConsumer)
-
doAuthenticatedAction
public static <T> void doAuthenticatedAction(SubjectModel subject, T argument, Consumer<T> subjectConsumer)
-
-