Class 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 Detail

      • TenantConverter

        public TenantConverter​(com.fasterxml.jackson.databind.ObjectMapper mapper,
                               SecurityAccessApiProperties properties)
        Default constructor.
        Parameters:
        properties - #SecurityAccessApiProperties
    • Method Detail

      • getTenantList

        public Map<String,​HasAccess> getTenantList()
        Returns the list of tenants in session.
        Returns:
        tenantList
      • converter

        public String converter​(String fluigTenant,
                                String token)
        Converts the companyId of the token into a valid tenant, based on the RAC information.
        Parameters:
        fluigTenant - tenant available in jwt token
        token - jwt
        Returns:
        tenant tenant available in RAC