Interface SecureTokensProducer

    • Method Detail

      • getOrCreateToken

        @NotNull
        String getOrCreateToken​(@NotNull
                                String secureValue,
                                @NotNull
                                String contextDescription)
        For a specified secret (password, API key, etc) creates a token which can be used in project settings instead. Token and secret are persisted in the internal storage, next time when this method is called for the same secret, the same token is returned.
        Parameters:
        secureValue - some secure value
        contextDescription - 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:
        token to use instead of secret
        Since:
        2017.1