Class UserAuthentication
- java.lang.Object
-
- org.camunda.bpm.webapp.impl.security.auth.Authentication
-
- org.camunda.bpm.webapp.impl.security.auth.UserAuthentication
-
- All Implemented Interfaces:
java.io.Serializable
,java.security.Principal
public class UserAuthentication extends Authentication
An authentication for a user
- Author:
- Daniel Meyer, nico.rehwaldt
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<java.lang.String>
authorizedApps
protected java.util.Date
cacheValidationTime
protected java.util.List<java.lang.String>
groupIds
protected java.util.List<java.lang.String>
tenantIds
-
Fields inherited from class org.camunda.bpm.webapp.impl.security.auth.Authentication
ANONYMOUS, identityId, processEngineName
-
-
Constructor Summary
Constructors Constructor Description UserAuthentication(java.lang.String userId, java.lang.String processEngineName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>
getAuthorizedApps()
java.util.Date
getCacheValidationTime()
java.util.List<java.lang.String>
getGroupIds()
java.util.List<java.lang.String>
getTenantIds()
boolean
isAuthorizedForApp(java.lang.String app)
void
setAuthorizedApps(java.util.Set<java.lang.String> authorizedApps)
void
setCacheValidationTime(java.util.Date cacheValidationTime)
void
setGroupIds(java.util.List<java.lang.String> groupIds)
void
setTenantIds(java.util.List<java.lang.String> tenantIds)
-
Methods inherited from class org.camunda.bpm.webapp.impl.security.auth.Authentication
equals, getIdentityId, getName, getProcessEngineName, hashCode
-
-
-
-
Method Detail
-
getGroupIds
public java.util.List<java.lang.String> getGroupIds()
-
isAuthorizedForApp
public boolean isAuthorizedForApp(java.lang.String app)
-
getAuthorizedApps
public java.util.Set<java.lang.String> getAuthorizedApps()
-
getTenantIds
public java.util.List<java.lang.String> getTenantIds()
-
setTenantIds
public void setTenantIds(java.util.List<java.lang.String> tenantIds)
-
setGroupIds
public void setGroupIds(java.util.List<java.lang.String> groupIds)
-
setAuthorizedApps
public void setAuthorizedApps(java.util.Set<java.lang.String> authorizedApps)
-
getCacheValidationTime
public java.util.Date getCacheValidationTime()
-
setCacheValidationTime
public void setCacheValidationTime(java.util.Date cacheValidationTime)
-
-