Package sonia.scm.security
Class Authentications
java.lang.Object
sonia.scm.security.Authentications
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static boolean
isSubjectAnonymous
(String principal) static boolean
isSubjectSystemAccount
(String principal) Returns true if the given principal is equal to the one from the system account.
-
Field Details
-
PRINCIPAL_SYSTEM
Username of the system account.- Since:
- 2.14.0
- See Also:
-
PRINCIPAL_ANONYMOUS
Username of the anonymous account.- Since:
- 2.14.0
- See Also:
-
-
Method Details
-
isAuthenticatedSubjectAnonymous
public static boolean isAuthenticatedSubjectAnonymous() -
isSubjectAnonymous
-
isSubjectSystemAccount
Returns true if the given principal is equal to the one from the system account.- Parameters:
principal
- principal- Returns:
true
- Since:
- 2.14.0
-