public class ImmutableRemoteAgentAuthentication extends Object implements Comparable<RemoteAgentAuthentication>, RemoteAgentAuthentication
Constructor and Description |
---|
ImmutableRemoteAgentAuthentication(RemoteAgentAuthenticationEntity entity) |
ImmutableRemoteAgentAuthentication(UUID uuid,
String ip) |
ImmutableRemoteAgentAuthentication(UUID uuid,
String ip,
boolean approved) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(RemoteAgentAuthentication other) |
boolean |
equals(Object o) |
long |
getId() |
String |
getIp()
IP address of the agent requesting approval.
|
Set<String> |
getIpPatterns() |
UUID |
getUuid()
UUID of this authentication request.
|
int |
hashCode() |
boolean |
isApproved()
Whether this request was approved, or is still pending approval
|
boolean |
matches(String ip)
For authentication pending approval this must be full match (equals), otherwise wildcard match will be
attempted.
|
boolean |
matches(UUID uuid,
String ip)
Check if matches given uuid and ip.
|
public ImmutableRemoteAgentAuthentication(@NotNull UUID uuid, @NotNull String ip)
public ImmutableRemoteAgentAuthentication(@NotNull UUID uuid, @NotNull String ip, boolean approved)
public ImmutableRemoteAgentAuthentication(RemoteAgentAuthenticationEntity entity)
public UUID getUuid()
RemoteAgentAuthentication
getUuid
in interface RemoteAgentAuthentication
public String getIp()
RemoteAgentAuthentication
getIp
in interface RemoteAgentAuthentication
public boolean isApproved()
RemoteAgentAuthentication
isApproved
in interface RemoteAgentAuthentication
true
, if this authentication request has been approvedpublic Set<String> getIpPatterns()
getIpPatterns
in interface RemoteAgentAuthentication
public boolean matches(@NotNull String ip)
ip
- IP address to matchtrue
, if this authentication matches ipRemoteAgentAuthentications.matching(String)
public boolean matches(UUID uuid, String ip)
matches(String)
.uuid
- UUIDip
- IPtrue
, if this authentication matches given uuid and ipRemoteAgentAuthentications.matching(java.util.UUID, String)
public int compareTo(RemoteAgentAuthentication other)
compareTo
in interface Comparable<RemoteAgentAuthentication>
public long getId()
getId
in interface BambooIdProvider
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.