Package com.soffid.iam.utils
Class Security
- java.lang.Object
-
- com.soffid.iam.utils.Security
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Security()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclearNestedLogins()static voiddumpStack()static List<String>getAuthorizations()static StringgetClientIp()static StringgetCurrentAccount()static longgetCurrentTenantId()static StringgetCurrentTenantName()static StringgetCurrentUser()static StringgetMasterTenantName()static PrincipalgetPrincipal()static String[]getPrincipalGroups(org.apache.catalina.realm.GenericPrincipal p)static String[]getPrincipalGroupsAndRoles(org.apache.catalina.realm.GenericPrincipal p)static String[]getPrincipalSoffidRoles(org.apache.catalina.realm.GenericPrincipal p)static com.soffid.iam.common.security.SoffidPrincipalgetSoffidPrincipal()static StringgetTenantName(Long tenantId)static booleanisAuthorizedTenant(TenantEntity tenant)static booleanisMasterTenant()static booleanisSyncProxy()static booleanisSyncServer()static booleanisUserInRole(String role)static voidnestedLogin(com.soffid.iam.common.security.SoffidPrincipal principal)static voidnestedLogin(String[] roles)static voidnestedLogin(String user, String[] roles)static voidnestedLogin(String tenant, String user, String[] roles)static voidnestedLogoff()static voidonSyncProxy()static voidonSyncServer()protected static voidparseTrustedIps(String s)static voidsetClientIp(String ip)static voidsetClientRequest(javax.servlet.http.HttpServletRequest req)
-
-
-
Field Detail
-
SC_ADM_APLICACIONS
public static final String SC_ADM_APLICACIONS
- See Also:
- Constant Field Values
-
SC_ADMINISTRADOR
public static final String SC_ADMINISTRADOR
- See Also:
- Constant Field Values
-
SC_ADMIN_SEG_ORG_USUARI
public static final String SC_ADMIN_SEG_ORG_USUARI
- See Also:
- Constant Field Values
-
SC_ADM_XARXES
public static final String SC_ADM_XARXES
- See Also:
- Constant Field Values
-
SC_RESP_SEG_ORG_USUARI
public static final String SC_RESP_SEG_ORG_USUARI
- See Also:
- Constant Field Values
-
SC_CAP_RRHH
public static final String SC_CAP_RRHH
- See Also:
- Constant Field Values
-
SC_RRHH
public static final String SC_RRHH
- See Also:
- Constant Field Values
-
SC_ADMINISTRADOR_SEGURETAT
public static final String SC_ADMINISTRADOR_SEGURETAT
- See Also:
- Constant Field Values
-
SC_RESPONSABLE_SEGURETAT
public static final String SC_RESPONSABLE_SEGURETAT
- See Also:
- Constant Field Values
-
SC_RESPONSABLE
public static final String SC_RESPONSABLE
- See Also:
- Constant Field Values
-
SC_OPERADOR
public static final String SC_OPERADOR
- See Also:
- Constant Field Values
-
SC_OPERADOR_WEB
public static final String SC_OPERADOR_WEB
- See Also:
- Constant Field Values
-
SC_CIUTADA
public static final String SC_CIUTADA
- See Also:
- Constant Field Values
-
SC_ADM_USUARIS
public static final String SC_ADM_USUARIS
- See Also:
- Constant Field Values
-
SC_ADM_GRUPS
public static final String SC_ADM_GRUPS
- See Also:
- Constant Field Values
-
SC_CON_APLICACIONS
public static final String SC_CON_APLICACIONS
- See Also:
- Constant Field Values
-
SC_VNC
public static final String SC_VNC
- See Also:
- Constant Field Values
-
SC_OPERADOR_CAU
public static final String SC_OPERADOR_CAU
- See Also:
- Constant Field Values
-
AUTO_AUTHORIZATION_ALL
public static final String AUTO_AUTHORIZATION_ALL
Autorització GLOBAL, quan s'atorga, l'usuari té TOTES les autoritzacions- See Also:
- Constant Field Values
-
AUTO_ALL
public static final String AUTO_ALL
Tots els valors de domini. Nota: Inclou la barra- See Also:
- Constant Field Values
-
AUTO_USER_CREATE
public static final String AUTO_USER_CREATE
- See Also:
- Constant Field Values
-
AUTO_USER_UPDATE
public static final String AUTO_USER_UPDATE
- See Also:
- Constant Field Values
-
AUTO_USER_DELETE
public static final String AUTO_USER_DELETE
- See Also:
- Constant Field Values
-
AUTO_USER_UPDATE_CUSTOM
public static final String AUTO_USER_UPDATE_CUSTOM
- See Also:
- Constant Field Values
-
AUTO_USER_UPDATE_PASSWORD
public static final String AUTO_USER_UPDATE_PASSWORD
- See Also:
- Constant Field Values
-
AUTO_USER_SET_PASSWORD
public static final String AUTO_USER_SET_PASSWORD
- See Also:
- Constant Field Values
-
AUTO_USER_QUERY
public static final String AUTO_USER_QUERY
- See Also:
- Constant Field Values
-
AUTO_USER_PROPAGATE
public static final String AUTO_USER_PROPAGATE
- See Also:
- Constant Field Values
-
AUTO_USER_ROLE_QUERY
public static final String AUTO_USER_ROLE_QUERY
- See Also:
- Constant Field Values
-
AUTO_USER_SESSION_QUERY
public static final String AUTO_USER_SESSION_QUERY
- See Also:
- Constant Field Values
-
AUTO_METADATA_UPDATE_ALL
public static final String AUTO_METADATA_UPDATE_ALL
- See Also:
- Constant Field Values
-
AUTO_USER_METADATA_UPDATE
public static final String AUTO_USER_METADATA_UPDATE
- See Also:
- Constant Field Values
-
AUTO_USER_ROLE_CREATE
public static final String AUTO_USER_ROLE_CREATE
- See Also:
- Constant Field Values
-
AUTO_USER_ROLE_DELETE
public static final String AUTO_USER_ROLE_DELETE
- See Also:
- Constant Field Values
-
AUTO_USER_GROUP_CREATE
public static final String AUTO_USER_GROUP_CREATE
- See Also:
- Constant Field Values
-
AUTO_USER_GROUP_DELETE
public static final String AUTO_USER_GROUP_DELETE
- See Also:
- Constant Field Values
-
AUTO_USER_PRINTER_CREATE
public static final String AUTO_USER_PRINTER_CREATE
- See Also:
- Constant Field Values
-
AUTO_USER_PRINTER_DELETE
public static final String AUTO_USER_PRINTER_DELETE
- See Also:
- Constant Field Values
-
AUTO_USER_ACL_PRINTER_CREATE
public static final String AUTO_USER_ACL_PRINTER_CREATE
- See Also:
- Constant Field Values
-
AUTO_USER_ACL_PRINTER_DELETE
public static final String AUTO_USER_ACL_PRINTER_DELETE
- See Also:
- Constant Field Values
-
AUTO_USER_ACCESSREGISTER_QUERY
public static final String AUTO_USER_ACCESSREGISTER_QUERY
- See Also:
- Constant Field Values
-
AUTO_USER_MAZINGER_QUERY
public static final String AUTO_USER_MAZINGER_QUERY
- See Also:
- Constant Field Values
-
AUTO_GROUP_CREATE
public static final String AUTO_GROUP_CREATE
- See Also:
- Constant Field Values
-
AUTO_GROUP_UPDATE
public static final String AUTO_GROUP_UPDATE
- See Also:
- Constant Field Values
-
AUTO_GROUP_QUERY
public static final String AUTO_GROUP_QUERY
- See Also:
- Constant Field Values
-
AUTO_GROUP_ROLE_QUERY
public static final String AUTO_GROUP_ROLE_QUERY
- See Also:
- Constant Field Values
-
AUTO_GROUP_USER_QUERY
public static final String AUTO_GROUP_USER_QUERY
- See Also:
- Constant Field Values
-
AUTO_GROUP_PRINTER_CREATE
public static final String AUTO_GROUP_PRINTER_CREATE
- See Also:
- Constant Field Values
-
AUTO_GROUP_PRINTER_DELETE
public static final String AUTO_GROUP_PRINTER_DELETE
- See Also:
- Constant Field Values
-
AUTO_ORGANIZATIONALUNIT_CREATE
public static final String AUTO_ORGANIZATIONALUNIT_CREATE
- See Also:
- Constant Field Values
-
AUTO_ORGANIZATIONALUNIT_UPDATE
public static final String AUTO_ORGANIZATIONALUNIT_UPDATE
- See Also:
- Constant Field Values
-
AUTO_ORGANIZATIONALUNIT_DELETE
public static final String AUTO_ORGANIZATIONALUNIT_DELETE
- See Also:
- Constant Field Values
-
AUTO_ORGANIZATIONALUNIT_QUERY
public static final String AUTO_ORGANIZATIONALUNIT_QUERY
- See Also:
- Constant Field Values
-
AUTO_HOST_ALL_CREATE
public static final String AUTO_HOST_ALL_CREATE
- See Also:
- Constant Field Values
-
AUTO_HOST_ALL_UPDATE
public static final String AUTO_HOST_ALL_UPDATE
- See Also:
- Constant Field Values
-
AUTO_HOST_ALL_DELETE
public static final String AUTO_HOST_ALL_DELETE
- See Also:
- Constant Field Values
-
AUTO_HOST_UPDATE_OS
public static final String AUTO_HOST_UPDATE_OS
- See Also:
- Constant Field Values
-
AUTO_OS_QUERY
public static final String AUTO_OS_QUERY
Authorizations to manage OS types- See Also:
- Constant Field Values
-
AUTO_OS_CREATE
public static final String AUTO_OS_CREATE
- See Also:
- Constant Field Values
-
AUTO_OS_DELETE
public static final String AUTO_OS_DELETE
- See Also:
- Constant Field Values
-
AUTO_OS_UPDATE
public static final String AUTO_OS_UPDATE
- See Also:
- Constant Field Values
-
AUTO_HOST_QUERY_ADMINISTRATOR_ACCESS
public static final String AUTO_HOST_QUERY_ADMINISTRATOR_ACCESS
- See Also:
- Constant Field Values
-
AUTO_HOST_ALL_SUPPORT_VNC
public static final String AUTO_HOST_ALL_SUPPORT_VNC
- See Also:
- Constant Field Values
-
AUTO_HOST_QUERY
public static final String AUTO_HOST_QUERY
Per poder veure només les màquines autoritzades- See Also:
- Constant Field Values
-
AUTO_HOST_ALL_QUERY
public static final String AUTO_HOST_ALL_QUERY
Per poder veure TOTES les màquines- See Also:
- Constant Field Values
-
AUTO_NETWORK_ALL_CREATE
public static final String AUTO_NETWORK_ALL_CREATE
- See Also:
- Constant Field Values
-
AUTO_NETWORK_ALL_UPDATE
public static final String AUTO_NETWORK_ALL_UPDATE
- See Also:
- Constant Field Values
-
AUTO_NETWORK_ALL_DELETE
public static final String AUTO_NETWORK_ALL_DELETE
- See Also:
- Constant Field Values
-
AUTO_NETWORK_ALL_QUERY
public static final String AUTO_NETWORK_ALL_QUERY
Per poder veure TOTES les màquines- See Also:
- Constant Field Values
-
AUTO_PRINTER_CREATE
public static final String AUTO_PRINTER_CREATE
- See Also:
- Constant Field Values
-
AUTO_PRINTER_UPDATE
public static final String AUTO_PRINTER_UPDATE
- See Also:
- Constant Field Values
-
AUTO_PRINTER_DELETE
public static final String AUTO_PRINTER_DELETE
- See Also:
- Constant Field Values
-
AUTO_PRINTER_QUERY
public static final String AUTO_PRINTER_QUERY
- See Also:
- Constant Field Values
-
AUTO_PRINTER_ACL_QUERY
public static final String AUTO_PRINTER_ACL_QUERY
- See Also:
- Constant Field Values
-
AUTO_APPLICATION_CREATE
public static final String AUTO_APPLICATION_CREATE
- See Also:
- Constant Field Values
-
AUTO_APPLICATION_UPDATE
public static final String AUTO_APPLICATION_UPDATE
- See Also:
- Constant Field Values
-
AUTO_APPLICATION_DELETE
public static final String AUTO_APPLICATION_DELETE
- See Also:
- Constant Field Values
-
AUTO_APPLICATION_QUERY
public static final String AUTO_APPLICATION_QUERY
- See Also:
- Constant Field Values
-
AUTO_ROLE_CREATE
public static final String AUTO_ROLE_CREATE
- See Also:
- Constant Field Values
-
AUTO_ROLE_UPDATE
public static final String AUTO_ROLE_UPDATE
- See Also:
- Constant Field Values
-
AUTO_ROLE_DELETE
public static final String AUTO_ROLE_DELETE
- See Also:
- Constant Field Values
-
AUTO_ROLE_QUERY
public static final String AUTO_ROLE_QUERY
- See Also:
- Constant Field Values
-
AUTO_ACCESSREGISTER_QUERY
public static final String AUTO_ACCESSREGISTER_QUERY
- See Also:
- Constant Field Values
-
AUTO_METADATA_CREATE
public static final String AUTO_METADATA_CREATE
- See Also:
- Constant Field Values
-
AUTO_METADATA_UPDATE
public static final String AUTO_METADATA_UPDATE
- See Also:
- Constant Field Values
-
AUTO_METADATA_DELETE
public static final String AUTO_METADATA_DELETE
- See Also:
- Constant Field Values
-
AUTO_METADATA_QUERY
public static final String AUTO_METADATA_QUERY
- See Also:
- Constant Field Values
-
AUTO_SERVICE_CREATE
public static final String AUTO_SERVICE_CREATE
- See Also:
- Constant Field Values
-
AUTO_SERVICE_UPDATE
public static final String AUTO_SERVICE_UPDATE
- See Also:
- Constant Field Values
-
AUTO_SERVICE_DELETE
public static final String AUTO_SERVICE_DELETE
- See Also:
- Constant Field Values
-
AUTO_SERVICE_QUERY
public static final String AUTO_SERVICE_QUERY
- See Also:
- Constant Field Values
-
AUTO_MAIL_CREATE
public static final String AUTO_MAIL_CREATE
- See Also:
- Constant Field Values
-
AUTO_MAIL_UPDATE
public static final String AUTO_MAIL_UPDATE
- See Also:
- Constant Field Values
-
AUTO_MAIL_DELETE
public static final String AUTO_MAIL_DELETE
- See Also:
- Constant Field Values
-
AUTO_MAIL_QUERY
public static final String AUTO_MAIL_QUERY
- See Also:
- Constant Field Values
-
AUTO_LOPD_CREATE
public static final String AUTO_LOPD_CREATE
- See Also:
- Constant Field Values
-
AUTO_LOPD_UPDATE
public static final String AUTO_LOPD_UPDATE
- See Also:
- Constant Field Values
-
AUTO_LOPD_DELETE
public static final String AUTO_LOPD_DELETE
- See Also:
- Constant Field Values
-
AUTO_LOPD_QUERY
public static final String AUTO_LOPD_QUERY
- See Also:
- Constant Field Values
-
AUTO_PARAMETER_CREATE
public static final String AUTO_PARAMETER_CREATE
- See Also:
- Constant Field Values
-
AUTO_PARAMETER_UPDATE
public static final String AUTO_PARAMETER_UPDATE
- See Also:
- Constant Field Values
-
AUTO_PARAMETER_DELETE
public static final String AUTO_PARAMETER_DELETE
- See Also:
- Constant Field Values
-
AUTO_PARAMETER_QUERY
public static final String AUTO_PARAMETER_QUERY
- See Also:
- Constant Field Values
-
AUTO_AGENT_CREATE
public static final String AUTO_AGENT_CREATE
- See Also:
- Constant Field Values
-
AUTO_AGENT_UPDATE
public static final String AUTO_AGENT_UPDATE
- See Also:
- Constant Field Values
-
AUTO_AGENT_DELETE
public static final String AUTO_AGENT_DELETE
- See Also:
- Constant Field Values
-
AUTO_AGENT_QUERY
public static final String AUTO_AGENT_QUERY
- See Also:
- Constant Field Values
-
AUTO_AGENT_PROPAGATE_USERS
public static final String AUTO_AGENT_PROPAGATE_USERS
- See Also:
- Constant Field Values
-
AUTO_AGENT_PROPAGATE_ROLES
public static final String AUTO_AGENT_PROPAGATE_ROLES
- See Also:
- Constant Field Values
-
AUTO_AGENT_PROPAGATE_GROUPS
public static final String AUTO_AGENT_PROPAGATE_GROUPS
- See Also:
- Constant Field Values
-
AUTO_AGENT_ACCESSCONTROL_CREATE
public static final String AUTO_AGENT_ACCESSCONTROL_CREATE
- See Also:
- Constant Field Values
-
AUTO_AGENT_ACCESSCONTROL_UPDATE
public static final String AUTO_AGENT_ACCESSCONTROL_UPDATE
- See Also:
- Constant Field Values
-
AUTO_AGENT_ACCESSCONTROL_DELETE
public static final String AUTO_AGENT_ACCESSCONTROL_DELETE
- See Also:
- Constant Field Values
-
AUTO_AGENT_ACCESSCONTROL_QUERY
public static final String AUTO_AGENT_ACCESSCONTROL_QUERY
- See Also:
- Constant Field Values
-
AUTO_AGENT_ACCESSCONTROL_SET
public static final String AUTO_AGENT_ACCESSCONTROL_SET
- See Also:
- Constant Field Values
-
AUTO_SERVER_MANAGE_PROXY
public static final String AUTO_SERVER_MANAGE_PROXY
- See Also:
- Constant Field Values
-
AUTO_SERVER_MANAGE_SERVER
public static final String AUTO_SERVER_MANAGE_SERVER
- See Also:
- Constant Field Values
-
AUTO_SERVER_QUERY
public static final String AUTO_SERVER_QUERY
- See Also:
- Constant Field Values
-
AUTO_AUDIT_QUERY
public static final String AUTO_AUDIT_QUERY
- See Also:
- Constant Field Values
-
AUTO_AUDIT_CUSTOM_QUERY
public static final String AUTO_AUDIT_CUSTOM_QUERY
- See Also:
- Constant Field Values
-
AUTO_USERS_DOMAIN_CREATE
public static final String AUTO_USERS_DOMAIN_CREATE
- See Also:
- Constant Field Values
-
AUTO_USERS_DOMAIN_UPDATE
public static final String AUTO_USERS_DOMAIN_UPDATE
- See Also:
- Constant Field Values
-
AUTO_USERS_DOMAIN_DELETE
public static final String AUTO_USERS_DOMAIN_DELETE
- See Also:
- Constant Field Values
-
AUTO_USERS_DOMAIN_QUERY
public static final String AUTO_USERS_DOMAIN_QUERY
- See Also:
- Constant Field Values
-
AUTO_INTRANETMENUS_ALL_QUERY
public static final String AUTO_INTRANETMENUS_ALL_QUERY
- See Also:
- Constant Field Values
-
AUTO_INTRANETMENUS_ADMIN
public static final String AUTO_INTRANETMENUS_ADMIN
- See Also:
- Constant Field Values
-
AUTO_MONITOR_SERVER_LIST
public static final String AUTO_MONITOR_SERVER_LIST
- See Also:
- Constant Field Values
-
AUTO_MONITOR_AGENT_LIST
public static final String AUTO_MONITOR_AGENT_LIST
- See Also:
- Constant Field Values
-
AUTO_MONITOR_AGENT_RESTART
public static final String AUTO_MONITOR_AGENT_RESTART
- See Also:
- Constant Field Values
-
AUTO_BASE_LOG_QUERY
public static final String AUTO_BASE_LOG_QUERY
- See Also:
- Constant Field Values
-
AUTO_PLUGINS_UPDATE
public static final String AUTO_PLUGINS_UPDATE
- See Also:
- Constant Field Values
-
AUTO_PLUGINS_QUERY
public static final String AUTO_PLUGINS_QUERY
- See Also:
- Constant Field Values
-
AUTO_AUTHORIZATION_ROL_CREATE
public static final String AUTO_AUTHORIZATION_ROL_CREATE
- See Also:
- Constant Field Values
-
AUTO_AUTHORIZATION_ROL_DELETE
public static final String AUTO_AUTHORIZATION_ROL_DELETE
- See Also:
- Constant Field Values
-
AUTO_AUTHORIZATION_QUERY
public static final String AUTO_AUTHORIZATION_QUERY
- See Also:
- Constant Field Values
-
AUTO_PUPIL_CREATE
public static final String AUTO_PUPIL_CREATE
- See Also:
- Constant Field Values
-
AUTO_WORKFLOW_ADMIN
public static final String AUTO_WORKFLOW_ADMIN
- See Also:
- Constant Field Values
-
AUTO_IDENTITY_FEDERATION_CREATE
public static final String AUTO_IDENTITY_FEDERATION_CREATE
- See Also:
- Constant Field Values
-
AUTO_IDENTITY_FEDERATION_UPDATE
public static final String AUTO_IDENTITY_FEDERATION_UPDATE
- See Also:
- Constant Field Values
-
AUTO_IDENTITY_FEDERATION_DELETE
public static final String AUTO_IDENTITY_FEDERATION_DELETE
- See Also:
- Constant Field Values
-
AUTO_IDENTITY_FEDERATION_QUERY
public static final String AUTO_IDENTITY_FEDERATION_QUERY
- See Also:
- Constant Field Values
-
AUTO_SEU_VIEW_AGENTS
public static final String AUTO_SEU_VIEW_AGENTS
- See Also:
- Constant Field Values
-
AUTO_SEU_VIEW_APLICACIONS
public static final String AUTO_SEU_VIEW_APLICACIONS
- See Also:
- Constant Field Values
-
AUTO_SEU_VIEW_AUDITORIA
public static final String AUTO_SEU_VIEW_AUDITORIA
- See Also:
- Constant Field Values
-
AUTO_SEU_VIEW_AUTORITZACIONS
public static final String AUTO_SEU_VIEW_AUTORITZACIONS
- See Also:
- Constant Field Values
-
AUTO_SEU_VIEW_CORREU
public static final String AUTO_SEU_VIEW_CORREU
- See Also:
- Constant Field Values
-
AUTO_SEU_VIEW_DOMINISCORREU
public static final String AUTO_SEU_VIEW_DOMINISCORREU
- See Also:
- Constant Field Values
-
AUTO_SEU_VIEW_DADESADDICIONALS
public static final String AUTO_SEU_VIEW_DADESADDICIONALS
- See Also:
- Constant Field Values
-
AUTO_SEU_VIEW_GRUPS
public static final String AUTO_SEU_VIEW_GRUPS
- See Also:
- Constant Field Values
-
AUTO_SEU_VIEW_IMPRESSORES
public static final String AUTO_SEU_VIEW_IMPRESSORES
- See Also:
- Constant Field Values
-
AUTO_SEU_VIEW_LOPD
public static final String AUTO_SEU_VIEW_LOPD
- See Also:
- Constant Field Values
-
AUTO_SEU_VIEW_PARAMETRES
public static final String AUTO_SEU_VIEW_PARAMETRES
- See Also:
- Constant Field Values
-
AUTO_SEU_VIEW_PLUGINS
public static final String AUTO_SEU_VIEW_PLUGINS
- See Also:
- Constant Field Values
-
AUTO_SEU_VIEW_REGISTREACCES
public static final String AUTO_SEU_VIEW_REGISTREACCES
- See Also:
- Constant Field Values
-
AUTO_SEU_VIEW_SERVEIS
public static final String AUTO_SEU_VIEW_SERVEIS
- See Also:
- Constant Field Values
-
AUTO_SEU_VIEW_TIPUSUO
public static final String AUTO_SEU_VIEW_TIPUSUO
- See Also:
- Constant Field Values
-
AUTO_SEU_VIEW_USUARIS
public static final String AUTO_SEU_VIEW_USUARIS
- See Also:
- Constant Field Values
-
AUTO_SEU_VIEW_MENUSINTRANET
public static final String AUTO_SEU_VIEW_MENUSINTRANET
- See Also:
- Constant Field Values
-
AUTO_SEU_VIEW_SEYCONSERVER
public static final String AUTO_SEU_VIEW_SEYCONSERVER
- See Also:
- Constant Field Values
-
AUTO_SEU_VIEW_FEDERACIOIDENTITATS
public static final String AUTO_SEU_VIEW_FEDERACIOIDENTITATS
- See Also:
- Constant Field Values
-
AUTO_SEU_VIEW_USERS_DOMAIN
public static final String AUTO_SEU_VIEW_USERS_DOMAIN
- See Also:
- Constant Field Values
-
AUTO_SCOPE_FILLS
public static final String AUTO_SCOPE_FILLS
- See Also:
- Constant Field Values
-
AUTO_SCOPE_PARES
public static final String AUTO_SCOPE_PARES
- See Also:
- Constant Field Values
-
AUTO_SCOPE_BOTH
public static final String AUTO_SCOPE_BOTH
- See Also:
- Constant Field Values
-
AUTO_SCOPE_ONE
public static final String AUTO_SCOPE_ONE
- See Also:
- Constant Field Values
-
AUTO_SEU_VIEW_ACCOUNTS
public static final String AUTO_SEU_VIEW_ACCOUNTS
- See Also:
- Constant Field Values
-
AUTO_ACCOUNT_CREATE
public static final String AUTO_ACCOUNT_CREATE
- See Also:
- Constant Field Values
-
AUTO_ACCOUNT_UPDATE
public static final String AUTO_ACCOUNT_UPDATE
- See Also:
- Constant Field Values
-
AUTO_ACCOUNT_DELETE
public static final String AUTO_ACCOUNT_DELETE
- See Also:
- Constant Field Values
-
AUTO_ACCOUNT_QUERY
public static final String AUTO_ACCOUNT_QUERY
- See Also:
- Constant Field Values
-
AUTO_ACCOUNT_PASSWORD
public static final String AUTO_ACCOUNT_PASSWORD
- See Also:
- Constant Field Values
-
AUTO_ACCOUNT_HP_PASSWORD
public static final String AUTO_ACCOUNT_HP_PASSWORD
- See Also:
- Constant Field Values
-
AUTO_ACCOUNT_ATTRIBUTE_UPDATE
public static final String AUTO_ACCOUNT_ATTRIBUTE_UPDATE
- See Also:
- Constant Field Values
-
AUTO_ACCOUNT_ATTRIBUTE_QUERY
public static final String AUTO_ACCOUNT_ATTRIBUTE_QUERY
- See Also:
- Constant Field Values
-
AUTO_REMEMBER_PASSWORD_CREATE
public static final String AUTO_REMEMBER_PASSWORD_CREATE
- See Also:
- Constant Field Values
-
AUTO_REMEMBER_PASSWORD_UPDATE
public static final String AUTO_REMEMBER_PASSWORD_UPDATE
- See Also:
- Constant Field Values
-
AUTO_REMEMBER_PASSWORD_DELETE
public static final String AUTO_REMEMBER_PASSWORD_DELETE
- See Also:
- Constant Field Values
-
AUTO_REMEMBER_PASSWORD_QUERY
public static final String AUTO_REMEMBER_PASSWORD_QUERY
- See Also:
- Constant Field Values
-
AUTO_SEU_VIEW_REMEMBER_PASSWORD
public static final String AUTO_SEU_VIEW_REMEMBER_PASSWORD
- See Also:
- Constant Field Values
-
ALL_PERMISSIONS
public static final String[] ALL_PERMISSIONS
-
AUTO_TENANT_QUERY
public static final String AUTO_TENANT_QUERY
- See Also:
- Constant Field Values
-
-
Method Detail
-
isSyncServer
public static boolean isSyncServer()
-
isSyncProxy
public static boolean isSyncProxy()
-
getPrincipalSoffidRoles
public static String[] getPrincipalSoffidRoles(org.apache.catalina.realm.GenericPrincipal p)
-
getPrincipalGroups
public static String[] getPrincipalGroups(org.apache.catalina.realm.GenericPrincipal p)
-
getPrincipalGroupsAndRoles
public static String[] getPrincipalGroupsAndRoles(org.apache.catalina.realm.GenericPrincipal p)
-
isUserInRole
public static boolean isUserInRole(String role)
-
getPrincipal
public static Principal getPrincipal()
-
getSoffidPrincipal
public static com.soffid.iam.common.security.SoffidPrincipal getSoffidPrincipal()
-
dumpStack
public static void dumpStack()
-
nestedLogin
public static void nestedLogin(com.soffid.iam.common.security.SoffidPrincipal principal)
-
nestedLogin
public static void nestedLogin(String[] roles)
-
clearNestedLogins
public static void clearNestedLogins()
-
nestedLogoff
public static void nestedLogoff()
-
onSyncServer
public static void onSyncServer()
-
onSyncProxy
public static void onSyncProxy()
-
getCurrentAccount
public static String getCurrentAccount()
-
getCurrentTenantId
public static long getCurrentTenantId()
-
getCurrentTenantName
public static String getCurrentTenantName()
-
isAuthorizedTenant
public static boolean isAuthorizedTenant(TenantEntity tenant)
-
getCurrentUser
public static String getCurrentUser()
-
getTenantName
public static String getTenantName(Long tenantId) throws es.caib.seycon.ng.exception.InternalErrorException
- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
isMasterTenant
public static boolean isMasterTenant() throws es.caib.seycon.ng.exception.InternalErrorException- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
getMasterTenantName
public static String getMasterTenantName()
-
setClientIp
public static void setClientIp(String ip)
-
getClientIp
public static String getClientIp()
-
parseTrustedIps
protected static void parseTrustedIps(String s)
-
setClientRequest
public static void setClientRequest(javax.servlet.http.HttpServletRequest req)
-
-