Class PrincipalUtil
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.rmi.client.util.PrincipalUtil
-
public class PrincipalUtil extends java.lang.Object
A utility class used to manage Principal
-
-
Constructor Summary
Constructors Constructor Description PrincipalUtil()
-
Method Summary
Modifier and Type Method Description static boolean
checkPermission(ClientPrimaryDataEntity dataentry, java.lang.String username, java.lang.String methodname)
static boolean
checkPermission(ClientPrimaryDataEntity dataentry, java.lang.String principalname, java.lang.String username, java.lang.String methodname)
static java.security.Principal
getInstance(java.lang.String classname, java.lang.String username)
From theclassname
andusername
to get a Principal Instance
-
-
-
Method Detail
-
getInstance
public static java.security.Principal getInstance(java.lang.String classname, java.lang.String username)
From theclassname
andusername
to get a Principal Instance- Parameters:
classname
- the class name forPrincipal
username
- the name of the user- Returns:
Principal
-
checkPermission
public static boolean checkPermission(ClientPrimaryDataEntity dataentry, java.lang.String principalname, java.lang.String username, java.lang.String methodname)
-
checkPermission
public static boolean checkPermission(ClientPrimaryDataEntity dataentry, java.lang.String username, java.lang.String methodname)
-
-