Akanza / AnansiPay

Other
0 stars 3 forks source link

Add support for reading account credential from an xml configuration file. #7

Open DevAlves1993 opened 3 years ago

DevAlves1993 commented 3 years ago

Credential to an account can be in an XML file that can be located in a particular directory or in the same directory as the application's JAR file.

An example of the contents of the credential.xml file :

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
<properties>
  <entry key='username'>akiko</entry>
  <entry key='password'>AIzaSyDKXF9GdXgdboWs3W0hFokBmFF4Fxkyjco</entry>
</properties>

The class that should handle this case will have to implement the basic CredentialAccess interface.

abdelgeek commented 3 years ago

I support the development of this enhancement

DevAlves1993 commented 3 years ago

Ok, your contribution will be welcome. So I'll assign you the issue.