Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
FANNG1 committed Oct 15, 2024
1 parent a2f76d3 commit 7a7a629
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@

/** Interface representing a credential with type, expiration time, and additional information. */
public interface Credential {
/** Credential type in the credential. */
String CREDENTIAL_TYPE = "credential-type";
/** Credential expire time in ms since the epoch. */
String EXPIRE_TIME_IN_MS = "expire-time-in-ms";

/**
* Returns the type of the credential. It should be the same with the credential type of the
* credential provider.
Expand Down Expand Up @@ -55,8 +60,8 @@ public interface Credential {
default Map<String, String> toProperties() {
return new ImmutableMap.Builder<String, String>()
.putAll(credentialInfo())
.put(CredentialConstants.CREDENTIAL_TYPE, credentialType())
.put(CredentialConstants.EXPIRE_TIME_AT_MS, String.valueOf(expireTimeInMs()))
.put(CREDENTIAL_TYPE, credentialType())
.put(EXPIRE_TIME_IN_MS, String.valueOf(expireTimeInMs()))
.build();
}
}

This file was deleted.

0 comments on commit 7a7a629

Please sign in to comment.