Interface SecureDataStorage
-
- All Superinterfaces:
SecureTokensProducer
- All Known Subinterfaces:
ProjectEx
- All Known Implementing Classes:
ProjectImpl
,SecuredProject
public interface SecureDataStorage extends SecureTokensProducer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getSecureValue(String token, String contextDescription)
Returns a secret (password, API key, etc) associated with this project and token, or the same token if there is no such secret.-
Methods inherited from interface jetbrains.buildServer.serverSide.impl.SecureTokensProducer
getOrCreateToken
-
-
-
-
Method Detail
-
getSecureValue
@NotNull String getSecureValue(@NotNull String token, @NotNull String contextDescription)
Returns a secret (password, API key, etc) associated with this project and token, or the same token if there is no such secret. In the latter case a health report will be raised for project administrators.- Parameters:
token
- tokencontextDescription
- human friendly description of context in which secret is accessed; this context is later used in health report, when secret cannot be restored by provided token- Returns:
- see above
- Since:
- 2017.1
-
-