use of com.thoughtworks.go.domain.config.SecureKeyInfoProvider in project gocd by gocd.
the class PackageDefinition method getSecureKeyInfoProvider.
private SecureKeyInfoProvider getSecureKeyInfoProvider() {
PackageMetadataStore packageMetadataStore = PackageMetadataStore.getInstance();
final PackageConfigurations metadata = packageMetadataStore.getMetadata(pluginId());
if (metadata == null) {
return null;
}
return new SecureKeyInfoProvider() {
@Override
public boolean isSecure(String key) {
PackageConfiguration packageConfiguration = metadata.get(key);
return packageConfiguration.getOption(PackageConfiguration.SECURE);
}
};
}
use of com.thoughtworks.go.domain.config.SecureKeyInfoProvider in project gocd by gocd.
the class PackageRepository method getSecureKeyInfoProvider.
private SecureKeyInfoProvider getSecureKeyInfoProvider() {
final RepositoryMetadataStore repositoryMetadataStore = RepositoryMetadataStore.getInstance();
final PackageConfigurations metadata = repositoryMetadataStore.getMetadata(pluginConfiguration.getId());
if (metadata == null) {
return null;
}
return new SecureKeyInfoProvider() {
@Override
public boolean isSecure(String key) {
PackageConfiguration packageConfiguration = metadata.get(key);
return packageConfiguration.getOption(PackageConfiguration.SECURE);
}
};
}
Aggregations