forked from galaxydi/go-loghub
-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add credentialsProvider doc, add volatile (#130)
- Loading branch information
1 parent
83bde72
commit 8e55f76
Showing
2 changed files
with
6 additions
and
1 deletion.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
src/main/java/com/aliyun/openservices/log/common/auth/CredentialsProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
package com.aliyun.openservices.log.common.auth; | ||
|
||
public interface CredentialsProvider { | ||
/** | ||
* This method is called everytime AccessKeyId/AccessKeySecret/StsToken is needed by log client, | ||
* the {@link CredentialsProvider} should cache credentials to avoid update credentials too frequently. | ||
* @note This method must be thread safe to avoid data race. | ||
*/ | ||
Credentials getCredentials(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters