public interface IClient
| Modifier and Type | Method and Description |
|---|---|
void |
applyQuickActivationCode(java.lang.String recoveryCode)
Applies a QUICK activation code to activate QUICK access for the user on this client.
|
void |
beginTransfer(Transfer transfer,
IUploadProgressChangedHandler uploadProgressChangedCallback,
IUploadCompleteHandler uploadCompleteCallback,
IUploadInterruptedHandler uploadInterruptedCallback,
IUploadCancelledHandler uploadCancelledCallback,
int pollingTimer)
Performs a transfer asynchronously in a separate thread.
|
void |
cancelTransfer()
Cancels a currently ongoing transfer.
|
boolean |
checkCompatibility()
Performs a compatibility check of this API against the Cryptshare Server.
|
boolean |
checkCompatibility(java.lang.String minimumServerVersion)
Performs a compatibility check against the Cryptshare Server.
|
PasswordCheckResult |
checkPassword(java.lang.String password)
Checks the given password against the password policy defined on the server.
|
CheckVerificationResult |
checkVerification()
Requests information about the verification configuration on the server and the current verification
state of the user on this client.
|
void |
confirmQuickConnection(java.lang.String metaId,
java.lang.String password)
Confirms/activates the QUICK connection that has been offered with a transfer.
|
void |
confirmSenderVerification(java.lang.String verificationCode)
Completes the sender verification process by confirming it with the the received verification code.
|
void |
enableVerificationForQuick()
Enables the verification of the user for QUICK so that it can be used to send and retrieve QUICK transfers.
|
java.lang.String |
generateQuickActivationCode()
Generates a activation code for client activation.
|
java.lang.String |
getClientId()
Returns the identifier if the client, which is generated automatically together with the store file.
|
java.lang.String |
getServerUrl()
Returns the Cryptshare Server URL that is set for this client.
|
java.lang.String |
getUserEmailAddress()
Returns the email address of the user that is set for this client.
|
java.util.Locale |
getUserLanguage()
Returns the language/region that is set for this client.
|
java.lang.String |
getVerificationToken()
Returns the verification token for the user that is set for this client.
|
void |
performTransfer(Transfer transfer,
IUploadProgressChangedHandler uploadProgressChangedCallback,
IUploadCompleteHandler uploadCompleteCallback,
IUploadInterruptedHandler uploadInterruptedCallback,
IUploadCancelledHandler uploadCancelledCallback,
int pollingTimer)
Performs a transfer synchronously in the current thread.
|
void |
performTransfer(Transfer transfer,
IUploadProgressChangedHandler uploadProgressChangedCallback,
IUploadCompleteHandler uploadCompleteCallback,
IUploadInterruptedHandler uploadInterruptedCallback,
IUploadCancelledHandler uploadCancelledCallback,
int pollingTimer,
IUploadFilesFinishedHandler uploadFilesFinishedHandler)
Performs a transfer synchronously in the current thread.
|
java.util.Map<java.lang.String,java.lang.String> |
requestActiveTransfers()
Requests all active transfers where this client's sender address is a recipient.
|
void |
requestClientVerification()
Requests a client verification.
|
java.util.Map<java.util.List<java.lang.String>,java.lang.String> |
requestEmailTemplate(java.lang.String templateName,
java.util.Map<java.util.Set<java.lang.String>,java.util.Set<TemplateReplacement>> replacements,
java.util.Locale language,
EmailFormat mailFormat)
Requests several resolved template content strings at once.
|
java.lang.String |
requestGeneratedPassword(int length)
Requests a generated password with the given length from the Cryptshare Server.
|
byte[] |
requestLanguagePackFile(java.lang.String path,
java.util.Locale locale)
Downloads a single language pack resource.
|
java.util.List<LanguagePack> |
requestLanguagePacks()
Requests info about the language packs that are available on the server.
|
LicenseInfo |
requestLicenseInfo()
Requests the license info for the Cryptshare server and this product.
|
PasswordPolicy |
requestPasswordPolicy()
Requests the password policy from the server.
|
Policy |
requestPolicy(java.util.Collection<java.lang.String> recipients)
Request the policy rules that applies to the combination of the current user as sender, and the specified recipients.
|
java.util.Map<java.lang.String,QuickConnectionState> |
requestQuickConnectionStates(java.util.List<java.lang.String> userEmailAddresses)
Requests the
QuickConnectionState for each of the specified recipients. |
RecipientQuickState |
requestRecipientQuickState(java.lang.String metaId)
Requests information about the QUICK state of a transfer recipient.
|
void |
requestSenderVerification()
Requests a sender verification.
|
ServerData |
requestServerData()
Requests the general server settings from the Cryptshare server.
|
TermsOfUse |
requestTermsOfUse()
Requests the Terms of Use from the server.
|
void |
resetQuickState()
Resets the QUICK state of the user on the Cryptshare server.
|
void |
revokeTransfer(java.lang.String trackingId)
Revokes the transfer with the given trackingId such that its files are no longer accessible.
|
void |
revokeTransfer(java.lang.String trackingId,
boolean notifyRecipient,
boolean notifySender)
Revokes the transfer with the given trackingId such that its files are no longer accessible.
|
void |
revokeTransfer(java.lang.String trackingId,
boolean notifyRecipient,
boolean notifySender,
java.lang.String message)
Revokes the transfer with the given trackingId such that its files are no longer accessible.
|
void |
revokeTransfer(java.lang.String trackingId,
java.lang.String message)
Revokes the transfer with the given trackingId such that its files are no longer accessible.
|
void |
setUserLanguage(java.util.Locale userLanguage)
Sets the language/region for this client.
|
void |
updateTransferError(java.lang.String trackingId,
TransferError transferError)
Updates the error status for the Transfer with the given tracking ID.
|
java.lang.String getClientId()
throws ClientException
ClientExceptionjava.lang.String getUserEmailAddress()
java.lang.String getVerificationToken()
java.lang.String getServerUrl()
java.util.Locale getUserLanguage()
Locale.void setUserLanguage(java.util.Locale userLanguage)
userLanguage - The language/region as Locale.void requestSenderVerification()
throws CryptshareServerException,
ClientException
confirmSenderVerification(String).CryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.void requestClientVerification()
throws CryptshareServerException,
ClientException
CryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.CheckVerificationResult checkVerification() throws CryptshareServerException, ClientException
CheckVerificationResult object that contains information about the verification state and configuration.CryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.void confirmSenderVerification(java.lang.String verificationCode)
throws CryptshareServerException,
ClientException
verificationCode - The verification code that has been received after calling requestSenderVerification()CryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.void applyQuickActivationCode(java.lang.String recoveryCode)
throws CryptshareServerException,
ClientException
recoveryCode - The activation code.CryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.java.lang.String generateQuickActivationCode()
throws CryptshareServerException,
ClientException
CryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.boolean checkCompatibility()
throws CryptshareServerException,
ClientException
true, if the configured Cryptshare server is compatible to this version of the API.CryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.boolean checkCompatibility(java.lang.String minimumServerVersion)
throws CryptshareServerException,
ClientException
checkCompatibility() instead.minimumServerVersion - The minimum server version.CryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.Policy requestPolicy(java.util.Collection<java.lang.String> recipients) throws CryptshareServerException, ClientException
recipients - The email addresses of the recipientsPolicy containing the policy rulesCryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.java.util.Map<java.lang.String,QuickConnectionState> requestQuickConnectionStates(java.util.List<java.lang.String> userEmailAddresses) throws CryptshareServerException, ClientException
QuickConnectionState for each of the specified recipients.userEmailAddresses - A collection of email addresses to request the QUICK connection state for.QuickConnectionState"/> as values.CryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.java.util.Map<java.util.List<java.lang.String>,java.lang.String> requestEmailTemplate(java.lang.String templateName,
java.util.Map<java.util.Set<java.lang.String>,java.util.Set<TemplateReplacement>> replacements,
java.util.Locale language,
EmailFormat mailFormat)
throws CryptshareServerException,
ClientException
Set with TemplateReplacements) has a corresponing
Set of identifiers (e.g. recipients), to which the replacements belong.
The result will return the distinct and (partially) resolved templates with all identifiers that led to
that certain template result.templateName - The name of the template, for example "recipient" or "sender"replacements - Associations between a list of identifiers (e.g. recipients) and replacements.language - The Locale for which the template is requestedmailFormat - The email format of the template as EmailFormat.Map containing the email template variants for each set of identifiers.CryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.java.util.List<LanguagePack> requestLanguagePacks() throws CryptshareServerException, ClientException
CryptshareConnection.CryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.byte[] requestLanguagePackFile(java.lang.String path,
java.util.Locale locale)
throws CryptshareServerException,
ClientException
CryptshareConnection.path - The path to the resource, relative to the language pack root.locale - The Locale of the requested language pack fileCryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.TermsOfUse requestTermsOfUse() throws CryptshareServerException, ClientException
TermsOfUse object containing a list of key/value entries where the key is the locale,
and the value is the actual text of the Terms of Use for that language.CryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.LicenseInfo requestLicenseInfo() throws CryptshareServerException, ClientException
LicenseInfo object containing the license informationCryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.java.util.Map<java.lang.String,java.lang.String> requestActiveTransfers()
throws CryptshareServerException,
ClientException
CryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.void updateTransferError(java.lang.String trackingId,
TransferError transferError)
throws CryptshareServerException,
ClientException
trackingId - The tracking ID of the transfer whose error status is to be updatedtransferError - The error information. For this webservice call, TransferError.isAllNotificationsFailed(),
TransferError.isEmlCreationFailed(),
TransferError.isSenderNotificationFailed() flags and TransferError.getFailedRecipients() is updated.CryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.java.lang.String requestGeneratedPassword(int length)
throws CryptshareServerException,
ClientException
length - The length of the password to generate.CryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.PasswordCheckResult checkPassword(java.lang.String password) throws CryptshareServerException, ClientException
password - String with password to checkPasswordPolicy object containing the password policy information and a security rating for the password.CryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.PasswordPolicy requestPasswordPolicy() throws CryptshareServerException, ClientException
PasswordPolicy with the current password policy from the server.CryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.ServerData requestServerData() throws CryptshareServerException, ClientException
ServerData object containing the server settings.CryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.void enableVerificationForQuick()
throws CryptshareServerException,
ClientException
CryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.void confirmQuickConnection(java.lang.String metaId,
java.lang.String password)
throws CryptshareServerException,
ClientException
metaId - The recipient's meta ID of the transfer.password - The password to retrieve the transfer.CryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.RecipientQuickState requestRecipientQuickState(java.lang.String metaId) throws CryptshareServerException, ClientException
metaId - The recipient's meta ID of the transfer.RecipientQuickState object with further information.CryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.void resetQuickState()
throws CryptshareServerException,
ClientException
CryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.void cancelTransfer()
void beginTransfer(Transfer transfer, IUploadProgressChangedHandler uploadProgressChangedCallback, IUploadCompleteHandler uploadCompleteCallback, IUploadInterruptedHandler uploadInterruptedCallback, IUploadCancelledHandler uploadCancelledCallback, int pollingTimer)
transfer - The transfer to be performed asynchronouslyuploadProgressChangedCallback - This callback is called regularly with current information about the progress.uploadCompleteCallback - This callback is called when the transfer completes without cancellation.uploadInterruptedCallback - This callback is called when the transfer is interrupted due to exceptions.uploadCancelledCallback - This callback is called when the user cancelled the transfer.pollingTimer - The time in milliseconds between two checks of transfer state during the pre-processing.void performTransfer(Transfer transfer, IUploadProgressChangedHandler uploadProgressChangedCallback, IUploadCompleteHandler uploadCompleteCallback, IUploadInterruptedHandler uploadInterruptedCallback, IUploadCancelledHandler uploadCancelledCallback, int pollingTimer) throws CryptshareServerException, ClientException
transfer - The transfer to be performed synchronouslyuploadProgressChangedCallback - This callback is called regularly with current information about the progress.uploadCompleteCallback - This callback is called when the transfer completes without cancellation.uploadInterruptedCallback - This callback is called when the transfer is interrupted due to exceptions.uploadCancelledCallback - This callback is called when the user cancelled the transfer.pollingTimer - The time in milliseconds between two checks of transfer state during the pre-processing.CryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.void performTransfer(Transfer transfer, IUploadProgressChangedHandler uploadProgressChangedCallback, IUploadCompleteHandler uploadCompleteCallback, IUploadInterruptedHandler uploadInterruptedCallback, IUploadCancelledHandler uploadCancelledCallback, int pollingTimer, IUploadFilesFinishedHandler uploadFilesFinishedHandler) throws CryptshareServerException, ClientException
transfer - The transfer to be performed synchronouslyuploadProgressChangedCallback - This callback is called regularly with current information about the progress.uploadCompleteCallback - This callback is called when the transfer completes without cancellation.uploadInterruptedCallback - This callback is called when the transfer is interrupted due to exceptions.uploadCancelledCallback - This callback is called when the user cancelled the transfer.pollingTimer - The time in milliseconds between two checks of transfer state during the pre-processing.uploadFilesFinishedHandler - This callback is called when the file upload is finished, but before they are processed by the server.CryptshareServerException - If the Cryptshare Server failed to process the request.ClientException - If the API failed to process the request.void revokeTransfer(java.lang.String trackingId)
throws ClientException,
CryptshareServerException
trackingId - The tracking ID of the transfer to revoke.CryptshareServerException - CryptshareServerException indicating:
Either no transfer matching the given trackingId was found,
The requesting user is not the sender of the transfer
Failed to delete transfer files.
Failed to send email notification to recipients.ClientException - If the API failed to process the request.void revokeTransfer(java.lang.String trackingId,
boolean notifyRecipient,
boolean notifySender)
throws ClientException,
CryptshareServerException
trackingId - The tracking ID of the transfer to revoke.notifyRecipient - Whether the recipient receives an email notification.notifySender - Whether the sender receives an email notification.CryptshareServerException - CryptshareServerException indicating:
ClientException - If the API failed to process the request.void revokeTransfer(java.lang.String trackingId,
java.lang.String message)
throws ClientException,
CryptshareServerException
trackingId - The tracking ID of the transfer to revoke.message - The email notification message. If a default message is set..CryptshareServerException - CryptshareServerException indicating:
ClientException - If the API failed to process the request.void revokeTransfer(java.lang.String trackingId,
boolean notifyRecipient,
boolean notifySender,
java.lang.String message)
throws ClientException,
CryptshareServerException
trackingId - The tracking ID of the transfer to revoke.notifyRecipient - Whether the recipient receives an email notification.notifySender - Whether the sender receives an email notification.message - The email notification message. If a default message is set..CryptshareServerException - CryptshareServerException indicating:
ClientException - If the API failed to process the request.