Skip to content

Commit 7af5879

Browse files
committed
Rename method & make it private
1 parent a04e3b8 commit 7af5879

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/iexec/worker/sms/SmsService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public SmsService(CredentialsService credentialsService, SmsClient smsClient) {
3434
@Retryable(value = FeignException.class)
3535
public Optional<TaskSecrets> fetchTaskSecrets(ContributionAuthorization contributionAuth) {
3636
String chainTaskId = contributionAuth.getChainTaskId();
37-
String workerSignature = getSmsAuthorizationString(contributionAuth);
37+
String workerSignature = getAuthorizationString(contributionAuth);
3838
ResponseEntity<SmsSecretResponse> response = smsClient.getUnTeeSecrets(workerSignature, contributionAuth);
3939
if (!response.getStatusCode().is2xxSuccessful()) {
4040
return Optional.empty();
@@ -103,7 +103,7 @@ public void saveSecrets(String chainTaskId,
103103

104104
@Retryable(value = FeignException.class)
105105
public String createTeeSession(ContributionAuthorization contributionAuth) {
106-
String workerSignature = getSmsAuthorizationString(contributionAuth);
106+
String workerSignature = getAuthorizationString(contributionAuth);
107107
ResponseEntity<String> response = smsClient.createTeeSession(workerSignature, contributionAuth);
108108
return response.getStatusCode().is2xxSuccessful() ? response.getBody() : "";
109109
}
@@ -115,7 +115,7 @@ private String createTeeSession(FeignException e, ContributionAuthorization cont
115115
return "";
116116
}
117117

118-
public String getSmsAuthorizationString(ContributionAuthorization contributionAuth) {
118+
private String getAuthorizationString(ContributionAuthorization contributionAuth) {
119119
String challenge = contributionAuth.getHash();
120120
return credentialsService.hashAndSignMessage(challenge).getValue();
121121
}

0 commit comments

Comments
 (0)