Package com.ibm.fhir.schema.app.util
Class TenantKeyFileUtil
- java.lang.Object
 - 
- com.ibm.fhir.schema.app.util.TenantKeyFileUtil
 
 
- 
public class TenantKeyFileUtil extends Object
manages the writing and reading of the tenant key enforcing the constraints:- file exists
 - folder exists
 - one non-empty line in the file
  
- 
- 
Constructor Summary
Constructors Constructor Description TenantKeyFileUtil() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleankeyFileExists(String tenantKeyFileName)checks if the tenant key at the given location existsStringreadTenantFile(String tenantKeyFileName)reads a tenant key from a file with one line.voidwriteTenantFile(String tenantKeyFileName, String tenantKey)writes the tenant's key to the given file. 
 - 
 
- 
- 
Method Detail
- 
keyFileExists
public boolean keyFileExists(String tenantKeyFileName)
checks if the tenant key at the given location exists- Parameters:
 tenantKeyFileName-- Returns:
 
 
- 
readTenantFile
public String readTenantFile(String tenantKeyFileName)
reads a tenant key from a file with one line.- Parameters:
 tenantKeyFileName- a relative or absolute path- Returns:
 - the tenant key contained in the file
 
 
 - 
 
 -