Package com.totvs.tjf.security.oauth2
Class TenantConverter
- java.lang.Object
-
- com.totvs.tjf.security.oauth2.TenantConverter
-
public class TenantConverter extends Object
Converts the companyId(tenant) of the token into a valid tenant, based on the RAC information.- Author:
- Diego Nunes da Silveira
-
-
Constructor Summary
Constructors Constructor Description TenantConverter(com.fasterxml.jackson.databind.ObjectMapper mapper, SecurityAccessApiProperties properties)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
converter(String fluigTenant, String token)
Converts the companyId of the token into a valid tenant, based on the RAC information.Map<String,HasAccess>
getTenantList()
Returns the list of tenants in session.
-
-
-
Constructor Detail
-
TenantConverter
public TenantConverter(com.fasterxml.jackson.databind.ObjectMapper mapper, SecurityAccessApiProperties properties)
Default constructor.- Parameters:
properties
- #SecurityAccessApiProperties
-
-