Class OTXDataAdapter.Config
java.lang.Object
org.graylog.plugins.threatintel.adapters.otx.OTXDataAdapter.Config
- All Implemented Interfaces:
LookupDataAdapterConfiguration
- Enclosing class:
- OTXDataAdapter
public abstract static class OTXDataAdapter.Config
extends Object
implements LookupDataAdapterConfiguration
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.graylog2.plugin.lookup.LookupDataAdapterConfiguration
TYPE_FIELD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract StringapiKey()abstract @NotEmpty StringapiUrl()builder()abstract @javax.validation.constraints.Min(1L) longabstract @javax.validation.constraints.Min(1L) longabstract @NotEmpty Stringabstract @javax.validation.constraints.Min(1L) longabstract @NotEmpty Stringabstract OTXDataAdapter.Config.Buildervalidate()Override this method to check for logical errors in the configuration, such as missing files, or invalid combinations of options.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.graylog2.plugin.lookup.LookupDataAdapterConfiguration
isCloudCompatible, type, validate
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
indicator
-
apiKey
-
apiUrl
-
httpUserAgent
-
httpConnectTimeout
@Min(1L) public abstract @javax.validation.constraints.Min(1L) long httpConnectTimeout() -
httpWriteTimeout
@Min(1L) public abstract @javax.validation.constraints.Min(1L) long httpWriteTimeout() -
httpReadTimeout
@Min(1L) public abstract @javax.validation.constraints.Min(1L) long httpReadTimeout() -
builder
-
toBuilder
-
validate
Description copied from interface:LookupDataAdapterConfigurationOverride this method to check for logical errors in the configuration, such as missing files, or invalid combinations of options. Prefer validation annotations for simple per-property validations rules, such as min/max values, non-empty strings etc.
By default the configuration has no extra validation errors (i.e. the result of this method is
Optional.empty().Returning failing validations here does not prevent saving the configuration!
If your validation needs access to additional services, override
LookupDataAdapterConfiguration.validate(LookupDataAdapterValidationContext)instead.- Specified by:
validatein interfaceLookupDataAdapterConfiguration- Returns:
- optionally map of property name to error messages
-