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