Skip to content

Commit

Permalink
Update MinioAdminClient.java
Browse files Browse the repository at this point in the history
  • Loading branch information
dormanze committed Nov 6, 2023
1 parent 2807755 commit 23b6e7e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions adminapi/src/main/java/io/minio/admin/MinioAdminClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,7 @@ private Map<String, Object> buildServiceAccount(
* @param policy Policy as JSON string .
* @param name Service account name.
* @param expiryTime Expiry time , Example : 2023-12-02T15:04:05Z.
* @return Service account info for the specified accessKey.
* @throws NoSuchAlgorithmException thrown to indicate missing of MD5 or SHA-256 digest library.
* @throws InvalidKeyException thrown to indicate missing of HMAC SHA-256 library.
* @throws IOException thrown to indicate I/O error on MinIO REST operation.
Expand Down Expand Up @@ -754,12 +755,13 @@ public Credentials addServiceAccount(
* @param newName New service account name.
* @param newDescription New description.
* @param newExpiration New expiry time , Example : 2023-12-02T15:04:05Z.
* @return Service account info for the specified accessKey.
* @throws NoSuchAlgorithmException thrown to indicate missing of MD5 or SHA-256 digest library.
* @throws InvalidKeyException thrown to indicate missing of HMAC SHA-256 library.
* @throws IOException thrown to indicate I/O error on MinIO REST operation.
* @throws InvalidCipherTextException thrown to indicate data cannot be encrypted/decrypted.
*/
public void updateServiceAccount(
public Credentials updateServiceAccount(
@Nullable String newName,
@Nullable String newSecretKey,
@Nullable String accessKey,
Expand Down Expand Up @@ -800,7 +802,9 @@ public void updateServiceAccount(
newPolicy,
newDescription,
true,
newExpiration))))) {}
newExpiration))))) {
return new Credentials(accessKey, newSecretKey, null, ResponseDate.fromString(newExpiration));
}
}

/**
Expand Down

0 comments on commit 23b6e7e

Please sign in to comment.