public class AllowedAndBlockedHosts
extends java.lang.Object
| Constructor and Description |
|---|
AllowedAndBlockedHosts(@Nullable java.util.Set<java.lang.String> allowedHostIds,
@Nullable java.util.Set<java.lang.String> blockedHostIds)
Constructs an AllowedAndBlockedHosts instance with the specified allowed and blocked host IDs.
|
| Modifier and Type | Method and Description |
|---|---|
@Nullable java.util.Set<java.lang.String> |
getAllowedHostIds()
Returns the set of allowed host IDs for connections.
|
@Nullable java.util.Set<java.lang.String> |
getBlockedHostIds()
Returns the set of blocked host IDs for connections.
|
public AllowedAndBlockedHosts(@Nullable java.util.Set<java.lang.String> allowedHostIds,
@Nullable java.util.Set<java.lang.String> blockedHostIds)
allowedHostIds - The set of allowed host IDs for connections. If null or empty, all host IDs that are not in
blockedHostIds are allowed.blockedHostIds - The set of blocked host IDs for connections. If null or empty, all host IDs in
allowedHostIds are allowed. If allowedHostIds is also null or empty, there
are no restrictions on which hosts are allowed.public @Nullable java.util.Set<java.lang.String> getAllowedHostIds()
blockedHostIds are allowed.public @Nullable java.util.Set<java.lang.String> getBlockedHostIds()
allowedHostIds are
allowed. If allowedHostIds is also null or empty, there are no restrictions on which hosts are allowed.