Package com.soffid.iam.security
Class SoffidPrincipalImpl
- java.lang.Object
-
- org.apache.catalina.realm.GenericPrincipal
-
- com.soffid.iam.security.SoffidPrincipalImpl
-
- All Implemented Interfaces:
com.soffid.iam.common.security.SoffidPrincipal,Serializable,Principal,org.apache.catalina.TomcatPrincipal
public class SoffidPrincipalImpl extends org.apache.catalina.realm.GenericPrincipal implements com.soffid.iam.common.security.SoffidPrincipal- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SoffidPrincipalImpl(com.soffid.iam.common.security.SoffidPrincipal p)SoffidPrincipalImpl(String name, Long userId)SoffidPrincipalImpl(String name, String userName, String fullName, String holderGroup, List<String> permissions, List<String> groups, List<String> soffidRoles)SoffidPrincipalImpl(String name, String userName, String fullName, String holderGroup, List<String> permissions, List<String> groups, List<String> soffidRoles, List<Long> roleIds, List<Long> accountIds, List<Long> groupIds, Long userId)SoffidPrincipalImpl(String name, String userName, String fullName, String holderGroup, List<String> permissions, List<String> groups, List<String> soffidRoles, Map<String,com.soffid.iam.common.security.SoffidPrincipal> holderGroupMap, List<Long> roleIds, List<Long> accountIds, List<Long> groupIds, Long userId)SoffidPrincipalImpl(String name, List<String> permissions, com.soffid.iam.common.security.SoffidPrincipal parent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidclearCache()protected voidfetchPrincipalProperties()List<Long>getAccountIds()StringgetFullName()List<Long>getGroupIds()String[]getGroups()String[]getGroupsAndRoles()StringgetHolderGroup()List<String>getHolderGroups()Map<String,String>getObligation(String obligationName)Map<String,Map<String,String>>getObligations()List<Long>getRoleIds()String[]getRoles()String[]getSoffidRoles()StringgetTenant()LonggetUserId()StringgetUserName()booleanhasRole(String role)voidrefresh()voidsetHolderGroup(String holderGroup)voidsetObligation(String obligation, Map<String,String> properties, long timeout)protected voidupdatePermissions(com.soffid.iam.api.Account acc)-
Methods inherited from class org.apache.catalina.realm.GenericPrincipal
getGssCredential, getName, getPassword, getUserPrincipal, logout, setGssCredential, toString
-
-
-
-
Constructor Detail
-
SoffidPrincipalImpl
public SoffidPrincipalImpl(String name, String userName, String fullName, String holderGroup, List<String> permissions, List<String> groups, List<String> soffidRoles, List<Long> roleIds, List<Long> accountIds, List<Long> groupIds, Long userId)
-
SoffidPrincipalImpl
public SoffidPrincipalImpl(String name, String userName, String fullName, String holderGroup, List<String> permissions, List<String> groups, List<String> soffidRoles, Map<String,com.soffid.iam.common.security.SoffidPrincipal> holderGroupMap, List<Long> roleIds, List<Long> accountIds, List<Long> groupIds, Long userId)
-
SoffidPrincipalImpl
public SoffidPrincipalImpl(String name, List<String> permissions, com.soffid.iam.common.security.SoffidPrincipal parent)
-
SoffidPrincipalImpl
public SoffidPrincipalImpl(com.soffid.iam.common.security.SoffidPrincipal p)
-
-
Method Detail
-
clearCache
public static void clearCache()
-
getFullName
public String getFullName()
- Specified by:
getFullNamein interfacecom.soffid.iam.common.security.SoffidPrincipal
-
getTenant
public String getTenant()
- Specified by:
getTenantin interfacecom.soffid.iam.common.security.SoffidPrincipal
-
getHolderGroup
public String getHolderGroup()
- Specified by:
getHolderGroupin interfacecom.soffid.iam.common.security.SoffidPrincipal
-
refresh
public void refresh()
-
fetchPrincipalProperties
protected void fetchPrincipalProperties()
-
updatePermissions
protected void updatePermissions(com.soffid.iam.api.Account acc) throws es.caib.seycon.ng.exception.InternalErrorException- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getGroups
public String[] getGroups()
- Specified by:
getGroupsin interfacecom.soffid.iam.common.security.SoffidPrincipal
-
getSoffidRoles
public String[] getSoffidRoles()
- Specified by:
getSoffidRolesin interfacecom.soffid.iam.common.security.SoffidPrincipal
-
getGroupsAndRoles
public String[] getGroupsAndRoles()
- Specified by:
getGroupsAndRolesin interfacecom.soffid.iam.common.security.SoffidPrincipal
-
getUserName
public String getUserName()
- Specified by:
getUserNamein interfacecom.soffid.iam.common.security.SoffidPrincipal
-
getObligations
public Map<String,Map<String,String>> getObligations()
- Specified by:
getObligationsin interfacecom.soffid.iam.common.security.SoffidPrincipal
-
setObligation
public void setObligation(String obligation, Map<String,String> properties, long timeout)
- Specified by:
setObligationin interfacecom.soffid.iam.common.security.SoffidPrincipal
-
getObligation
public Map<String,String> getObligation(String obligationName)
- Specified by:
getObligationin interfacecom.soffid.iam.common.security.SoffidPrincipal
-
getHolderGroups
public List<String> getHolderGroups()
- Specified by:
getHolderGroupsin interfacecom.soffid.iam.common.security.SoffidPrincipal
-
setHolderGroup
public void setHolderGroup(String holderGroup)
- Specified by:
setHolderGroupin interfacecom.soffid.iam.common.security.SoffidPrincipal
-
getRoles
public String[] getRoles()
- Specified by:
getRolesin interfacecom.soffid.iam.common.security.SoffidPrincipal- Overrides:
getRolesin classorg.apache.catalina.realm.GenericPrincipal
-
hasRole
public boolean hasRole(String role)
- Specified by:
hasRolein interfacecom.soffid.iam.common.security.SoffidPrincipal- Overrides:
hasRolein classorg.apache.catalina.realm.GenericPrincipal
-
getRoleIds
public List<Long> getRoleIds()
- Specified by:
getRoleIdsin interfacecom.soffid.iam.common.security.SoffidPrincipal
-
getAccountIds
public List<Long> getAccountIds()
- Specified by:
getAccountIdsin interfacecom.soffid.iam.common.security.SoffidPrincipal
-
getGroupIds
public List<Long> getGroupIds()
- Specified by:
getGroupIdsin interfacecom.soffid.iam.common.security.SoffidPrincipal
-
getUserId
public Long getUserId()
- Specified by:
getUserIdin interfacecom.soffid.iam.common.security.SoffidPrincipal
-
-