Class EbicsClient
java.lang.Object
org.kopi.ebics.client.EbicsClient
The ebics client application. Performs necessary tasks to contact the ebics
bank server like sending the INI, HIA and HPB requests for keys retrieval and
also performs the files transfer including uploads and downloads.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionEbicsClient(Configuration configuration, EbicsClient.ConfigProperties properties) Constructs a new ebics client application -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidstatic EbicsClientcreateEbicsClient(File rootDir, File configFile) createUser(URL url, String bankName, String hostId, String partnerId, String userId, String name, String email, String country, String organization, boolean saveCertificates, PasswordCallback passwordCallback) Creates a new ebics user and generates its certificates.voidCreates the user necessary directoriesvoidfetchFile(File file, User user, Product product, EbicsOrderType orderType, boolean isTest) voidfetchFile(File file, EbicsOrderType orderType, Date start, Date end) voidloadUser(String hostId, String partnerId, String userId, PasswordCallback passwordCallback) Loads a user knowing its IDstatic voidvoidquit()Performs buffers save before quitting the client application.voidrevokeSubscriber(User user, Product product) Sends the SPR order to the bank.voidsendFile(File file, User user, Product product, EbicsOrderType orderType, EbicsUploadParams params) Sends a file to the ebics bank servervoidsendFile(File file, EbicsOrderType orderType) voidsendFile(File file, EbicsOrderType orderType, EbicsUploadParams params) voidsendHIARequest(User user, Product product) Sends a HIA request to the ebics server.voidsendHPBRequest(User user, Product product) Sends a HPB request to the ebics server.voidsendINIRequest(User user, Product product) Sends an INI request to the ebics bank server
-
Constructor Details
-
EbicsClient
Constructs a new ebics client application- Parameters:
configuration- the application configurationproperties-
-
-
Method Details
-
createUserDirectories
Creates the user necessary directories- Parameters:
user- the concerned user
-
createUser
public User createUser(URL url, String bankName, String hostId, String partnerId, String userId, String name, String email, String country, String organization, boolean saveCertificates, PasswordCallback passwordCallback) throws Exception Creates a new ebics user and generates its certificates.- Parameters:
url- the bank urlbankName- the bank namehostId- the bank host IDpartnerId- the partner IDuserId- UserId as obtained from the bank.name- the user name,email- the user emailcountry- the user countryorganization- the user organization or companysaveCertificates- save generated certificates?passwordCallback- a callback-handler that supplies us with the password. This parameter can be null, in this case no password is used.- Returns:
- Ebics
User - Throws:
Exception
-
loadUser
-
sendINIRequest
-
sendHIARequest
-
sendHPBRequest
-
revokeSubscriber
-
sendFile
public void sendFile(File file, User user, Product product, EbicsOrderType orderType, EbicsUploadParams params) throws Exception Sends a file to the ebics bank server- Throws:
Exception
-
sendFile
public void sendFile(File file, EbicsOrderType orderType, EbicsUploadParams params) throws Exception - Throws:
Exception
-
sendFile
- Throws:
Exception
-
fetchFile
public void fetchFile(File file, User user, Product product, EbicsOrderType orderType, boolean isTest) throws IOException, EbicsException - Throws:
IOExceptionEbicsException
-
fetchFile
public void fetchFile(File file, EbicsOrderType orderType, Date start, Date end) throws IOException, EbicsException - Throws:
IOExceptionEbicsException
-
quit
public void quit()Performs buffers save before quitting the client application. -
clearTraces
public void clearTraces() -
createEbicsClient
- Throws:
IOException
-
createDefaultUser
-
loadDefaultUser
-
getDefaultUser
-
main
-