Skip to content

Commit

Permalink
Add deprecations for client methods without all crypto 3.3 parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
romanstrobl committed Oct 14, 2024
1 parent ad38ad1 commit 35ce842
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ InitActivationResponse initActivation(String userId, String applicationId, Long

/**
* Call the prepareActivation method of the PowerAuth 3.0 Server interface.
*
* @deprecated use {@link #prepareActivation(PrepareActivationRequest)}
*
* @param activationCode Activation code.
* @param applicationKey Application key.
Expand All @@ -207,6 +209,7 @@ InitActivationResponse initActivation(String userId, String applicationId, Long
* @return {@link PrepareActivationResponse}
* @throws PowerAuthClientException In case REST API call fails.
*/
@Deprecated
PrepareActivationResponse prepareActivation(String activationCode, String applicationKey, boolean shouldGenerateRecoveryCodes, String ephemeralPublicKey,
String encryptedData, String mac, String nonce, String protocolVersion, Long timestamp) throws PowerAuthClientException;

Expand Down Expand Up @@ -255,6 +258,8 @@ PrepareActivationResponse prepareActivation(String activationCode, String applic
/**
* Call the createActivation method of the PowerAuth 3.0 Server interface.
*
* @deprecated use {@link #createActivation(CreateActivationRequest)}
*
* @param userId User ID.
* @param timestampActivationExpire Expiration timestamp for activation (optional).
* @param maxFailureCount Maximum failure count (optional).
Expand All @@ -268,6 +273,7 @@ PrepareActivationResponse prepareActivation(String activationCode, String applic
* @return {@link CreateActivationResponse}
* @throws PowerAuthClientException In case REST API call fails.
*/
@Deprecated
CreateActivationResponse createActivation(String userId, Date timestampActivationExpire, Long maxFailureCount,
String applicationKey, String ephemeralPublicKey, String encryptedData,
String mac, String nonce, String protocolVersion, Long timestamp) throws PowerAuthClientException;
Expand Down Expand Up @@ -674,6 +680,8 @@ CreateActivationResponse createActivation(String userId, Date timestampActivatio
/**
* Call the vaultUnlock method of the PowerAuth 3.0 Server interface.
*
* @deprecated use {@link #unlockVault(VaultUnlockRequest)}
*
* @param activationId Activation Id of an activation to be used for authentication.
* @param applicationKey Application Key of an application related to the activation.
* @param signedData Data to be signed encoded in format as specified by PowerAuth data normalization.
Expand All @@ -688,6 +696,7 @@ CreateActivationResponse createActivation(String userId, Date timestampActivatio
* @return {@link VaultUnlockResponse}
* @throws PowerAuthClientException In case REST API call fails.
*/
@Deprecated
VaultUnlockResponse unlockVault(String activationId, String applicationKey, String signature,
SignatureType signatureType, String signatureVersion, String signedData,
String ephemeralPublicKey, String encryptedData, String mac, String nonce,
Expand Down Expand Up @@ -1280,6 +1289,8 @@ VaultUnlockResponse unlockVault(String activationId, String applicationKey, Stri
/**
* Create a new token for basic token-based authentication.
*
* @deprecated use {@link #createToken(CreateTokenRequest)}
*
* @param activationId Activation ID for the activation that is associated with the token.
* @param applicationKey Application key.
* @param ephemeralPublicKey Ephemeral key used for response encryption.
Expand All @@ -1292,6 +1303,7 @@ VaultUnlockResponse unlockVault(String activationId, String applicationKey, Stri
* @return Response with created token.
* @throws PowerAuthClientException In case REST API call fails.
*/
@Deprecated
CreateTokenResponse createToken(String activationId, String applicationKey, String ephemeralPublicKey,
String encryptedData, String mac, String nonce, String protocolVersion,
Long timestamp, SignatureType signatureType) throws PowerAuthClientException;
Expand Down Expand Up @@ -1418,6 +1430,8 @@ GetEciesDecryptorResponse getEciesDecryptor(String activationId, String applicat
/**
* Start upgrade of activations to version 3.
*
* @deprecated use {@link #startUpgrade(StartUpgradeRequest)}
*
* @param activationId Activation ID.
* @param applicationKey Application key.
* @param ephemeralPublicKey Ephemeral key used for response encryption.
Expand All @@ -1429,6 +1443,7 @@ GetEciesDecryptorResponse getEciesDecryptor(String activationId, String applicat
* @return Start upgrade response.
* @throws PowerAuthClientException In case REST API call fails.
*/
@Deprecated
StartUpgradeResponse startUpgrade(String activationId, String applicationKey, String ephemeralPublicKey,
String encryptedData, String mac, String nonce,
String protocolVersion, Long timestamp) throws PowerAuthClientException;
Expand Down Expand Up @@ -1515,6 +1530,8 @@ StartUpgradeResponse startUpgrade(String activationId, String applicationKey, St
/**
* Confirm recovery code.
*
* @deprecated use {@link #confirmRecoveryCode(ConfirmRecoveryCodeRequest)}
*
* @param activationId Activation ID.
* @param applicationKey Application key.
* @param ephemeralPublicKey Ephemeral key for ECIES.
Expand All @@ -1526,6 +1543,7 @@ StartUpgradeResponse startUpgrade(String activationId, String applicationKey, St
* @return Confirm recovery code response.
* @throws PowerAuthClientException In case REST API call fails.
*/
@Deprecated
ConfirmRecoveryCodeResponse confirmRecoveryCode(String activationId, String applicationKey, String ephemeralPublicKey,
String encryptedData, String mac, String nonce,
String protocolVersion, Long timestamp) throws PowerAuthClientException;
Expand Down Expand Up @@ -1614,6 +1632,8 @@ LookupRecoveryCodesResponse lookupRecoveryCodes(String userId, String activation
/**
* Create activation using recovery code.
*
* @deprecated use {@link #createActivationUsingRecoveryCode(RecoveryCodeActivationRequest)}
*
* @param recoveryCode Recovery code.
* @param puk Recovery PUK.
* @param applicationKey Application key.
Expand All @@ -1627,6 +1647,7 @@ LookupRecoveryCodesResponse lookupRecoveryCodes(String userId, String activation
* @return Create activation using recovery code response.
* @throws PowerAuthClientException In case REST API call fails.
*/
@Deprecated
RecoveryCodeActivationResponse createActivationUsingRecoveryCode(String recoveryCode, String puk, String applicationKey, Long maxFailureCount,
String ephemeralPublicKey, String encryptedData, String mac, String nonce,
String protocolVersion, Long timestamp) throws PowerAuthClientException;
Expand Down

0 comments on commit 35ce842

Please sign in to comment.