Class AuthContextUtils
- java.lang.Object
-
- org.apache.syncope.core.spring.security.AuthContextUtils
-
public final class AuthContextUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T
callAs(String domain, String username, Collection<String> entitlements, Callable<T> callable)
static <T> T
callAsAdmin(String domain, Callable<T> callable)
static Set<SyncopeGrantedAuthority>
getAuthorities()
static Map<String,Set<String>>
getAuthorizations()
static Optional<String>
getDelegatedBy()
static String
getDomain()
static String
getUsername()
static String
getWho()
static void
updateUsername(String newUsername)
-
-
-
Method Detail
-
getUsername
public static String getUsername()
-
updateUsername
public static void updateUsername(String newUsername)
-
getWho
public static String getWho()
-
getAuthorities
public static Set<SyncopeGrantedAuthority> getAuthorities()
-
getDomain
public static String getDomain()
-
callAs
public static <T> T callAs(String domain, String username, Collection<String> entitlements, Callable<T> callable)
-
-