.. java:import:: org.springframework.security.core Authentication .. java:import:: org.springframework.security.core.context SecurityContextHolder .. java:import:: org.springframework.security.core.userdetails User .. java:import:: java.util ArrayList .. java:import:: java.util Collection .. java:import:: java.util List SecurityUtil ============ .. java:package:: org.motechproject.mds.util :noindex: .. java:type:: public final class SecurityUtil The \ ``SecurityUtil``\ class provides helper methods to retrieve logged user details, such as username or roles Methods ------- getUserRoles ^^^^^^^^^^^^ .. java:method:: public static List getUserRoles() :outertype: SecurityUtil getUsername ^^^^^^^^^^^ .. java:method:: public static String getUsername() :outertype: SecurityUtil