public class SecurityUtil extends Object
Constructor and Description |
---|
SecurityUtil() |
Modifier and Type | Method and Description |
---|---|
static Collection<String> |
getActions(Collection<org.springframework.security.access.ConfigAttribute> configAttributes) |
static MidPointPrincipal |
getPrincipal()
Returns principal representing currently logged-in user.
|
static String |
getSubjectDescription()
Returns short description of the subject suitable for log
and error messages.
|
static boolean |
isAuthenticated() |
static void |
logSecurityDeny(Object object,
String message) |
static void |
logSecurityDeny(Object object,
String message,
Throwable cause,
Collection<String> requiredAuthorizations) |
public static MidPointPrincipal getPrincipal() throws SecurityViolationException
SecurityViolationException
public static boolean isAuthenticated()
public static Collection<String> getActions(Collection<org.springframework.security.access.ConfigAttribute> configAttributes)
public static void logSecurityDeny(Object object, String message, Throwable cause, Collection<String> requiredAuthorizations)
public static String getSubjectDescription()
Copyright © 2016 evolveum. All rights reserved.