public class ApprovedAuthenticationIpsCache extends Object
Constructor and Description |
---|
ApprovedAuthenticationIpsCache(@NotNull Supplier<Collection<ImmutableRemoteAgentAuthentication>> approvedAuthenticationsSupplier,
@NotNull Duration agentHeartbeatInterval)
Creates a new cache wrapper.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAuthenticatedAgentIp(@NotNull InetAddress inetAddress)
Whether the given IP address matches one of already authenticated agent IP patterns.
|
void |
reset() |
public ApprovedAuthenticationIpsCache(@NotNull @NotNull Supplier<Collection<ImmutableRemoteAgentAuthentication>> approvedAuthenticationsSupplier, @NotNull @NotNull Duration agentHeartbeatInterval)
approvedAuthenticationsSupplier
- supplier of collection of approved agent authenticationsagentHeartbeatInterval
- interval of remote agent heartbeatpublic void reset()
public boolean isAuthenticatedAgentIp(@NotNull @NotNull InetAddress inetAddress)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.