Package glair.vision.util
Class Env
java.lang.Object
glair.vision.util.Env
The `Env` class provides access to configuration properties loaded from a file.
It allows retrieving specific properties such as usernames, passwords, API keys,
and various document-related values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the api key from the configuration properties.getBpkb()Retrieves the BPKB image path from the configuration properties.getFace()Retrieves the Face image path from the configuration properties.Retrieves the General Document image path from the configuration properties.Retrieves the Identity verification data from the configuration properties.Retrieves the Identity face image path from the configuration properties.Retrieves the Invoice image path from the configuration properties.getKk()Retrieves the KK image path from the configuration properties.getKtp()Retrieves the KTP image path from the configuration properties.Retrieves the License Plate image path from the configuration properties.getNpwp()Retrieves the NPWP image path from the configuration properties.Retrieves the Passport image path from the configuration properties.Retrieves the password from the configuration properties.Retrieves the Receipt image path from the configuration properties.getStnk()Retrieves the STNK image path from the configuration properties.Retrieves the username from the configuration properties.
-
Constructor Details
-
Env
Constructs an `Env` instance and loads configuration properties from the default file.- Throws:
Exception- If an error occurs while loading the properties file.
-
Env
Constructs an `Env` instance with the option to print the absolute path of the properties file.- Parameters:
propertiesPath- Set the file path of the properties file.debug- Set to `true` to print the absolute path of the properties file.- Throws:
Exception- If an error occurs while loading the properties file.
-
-
Method Details
-
getUsername
Retrieves the username from the configuration properties.- Returns:
- The username.
-
getPassword
Retrieves the password from the configuration properties.- Returns:
- The password.
-
getApiKey
Retrieves the api key from the configuration properties.- Returns:
- The api key.
-
getKtp
Retrieves the KTP image path from the configuration properties.- Returns:
- The KTP image path.
-
getNpwp
Retrieves the NPWP image path from the configuration properties.- Returns:
- The NPWP image path.
-
getKk
Retrieves the KK image path from the configuration properties.- Returns:
- The KK image path.
-
getStnk
Retrieves the STNK image path from the configuration properties.- Returns:
- The STNK image path.
-
getBpkb
Retrieves the BPKB image path from the configuration properties.- Returns:
- The BPKB image path.
-
getPassport
Retrieves the Passport image path from the configuration properties.- Returns:
- The Passport image path.
-
getLicensePlate
Retrieves the License Plate image path from the configuration properties.- Returns:
- The License Plate image path.
-
getGeneralDocument
Retrieves the General Document image path from the configuration properties.- Returns:
- The General Document image path.
-
getInvoice
Retrieves the Invoice image path from the configuration properties.- Returns:
- The Invoice image path.
-
getReceipt
Retrieves the Receipt image path from the configuration properties.- Returns:
- The Receipt image path.
-
getIdentityBasicVerification
Retrieves the Identity verification data from the configuration properties.- Returns:
- The Identity verification data.
-
getIdentityFaceVerification
Retrieves the Identity face image path from the configuration properties.- Returns:
- The Identity face image path.
-
getFace
Retrieves the Face image path from the configuration properties.- Returns:
- The Face image path.
-