GUACAMOLE-641: Allow vault implementations to automatically provide tokens based on connection parameters (without YAML mapping).
This commit is contained in:
1 parent
d0bd4b52d6
commit
30f24de808
4 files changed
+73
-16
No files matched your search
+10
@@ -23,9 +23,12 @@ import com.google.inject.Inject;
|
||||
import com.google.inject.Singleton;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLEncoder;
|
||||
import java.util.Collections;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.Future;
|
||||
|
||||
import org.apache.guacamole.GuacamoleException;
|
||||
import org.apache.guacamole.protocol.GuacamoleConfiguration;
|
||||
import org.apache.guacamole.vault.secret.VaultSecretService;
|
||||
|
||||
/**
|
||||
@@ -59,4 +62,11 @@ public class KsmSecretService implements VaultSecretService {
|
||||
return ksm.getSecret(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Future<String>> getTokens(GuacamoleConfiguration config)
|
||||
throws GuacamoleException {
|
||||
// STUB
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user