public final class RemoteAgentAuthentications extends Object
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Function<RemoteAgentAuthenticationEntity,ImmutableRemoteAgentAuthentication> |
fromEntity() |
static Function<RemoteAgentAuthenticationEntity,ImmutableRemoteAgentAuthentication> |
fromEntityJdk() |
static com.google.common.base.Function<RemoteAgentAuthentication,String> |
getUuidAsString() |
static Set<String> |
ipStringToSet(String ip) |
static com.google.common.base.Predicate<RemoteAgentAuthentication> |
isApproved() |
static com.google.common.base.Predicate<RemoteAgentAuthentication> |
isPending() |
static com.google.common.base.Predicate<RemoteAgentAuthentication> |
matching(String requestIps)
Predicate checking if given authentication matches the ip.
|
static com.google.common.base.Predicate<RemoteAgentAuthentication> |
matching(UUID uuid)
Predicate checking if an authentication matches given uuid.
|
static com.google.common.base.Predicate<RemoteAgentAuthentication> |
matching(UUID uuid,
String ip)
A combination of
matching(String) and matching(java.util.UUID) . |
static com.google.common.base.Predicate<RemoteAgentAuthentication> |
matchingUuidOf(Iterable<RemoteAgentAuthentication> authentications) |
static com.google.common.base.Function<RemoteAgentAuthentication,RemoteAgentAuthenticationEntity> |
toEntity(RemoteAgentAuthenticationDao agentAuthenticationDao) |
public static com.google.common.base.Function<RemoteAgentAuthentication,String> getUuidAsString()
public static com.google.common.base.Predicate<RemoteAgentAuthentication> matching(@NotNull String requestIps)
Predicate checking if given authentication matches the ip.
For authentication pending approval this must be full match (equals), otherwise wildcard match will be attempted.
requestIps
- coma separated list of IP addresses to matchtrue
, if the verified authentication matches ippublic static com.google.common.base.Predicate<RemoteAgentAuthentication> matching(@NotNull UUID uuid)
true
.uuid
- UUID to check againstpublic static com.google.common.base.Predicate<RemoteAgentAuthentication> matching(@NotNull UUID uuid, @NotNull String ip)
matching(String)
and matching(java.util.UUID)
.uuid
- UUID to match againstip
- coma separated list of IP addresses to matchmatching(java.util.UUID)
,
matching(String)
public static com.google.common.base.Predicate<RemoteAgentAuthentication> matchingUuidOf(@NotNull Iterable<RemoteAgentAuthentication> authentications)
public static com.google.common.base.Predicate<RemoteAgentAuthentication> isApproved()
public static com.google.common.base.Predicate<RemoteAgentAuthentication> isPending()
public static com.google.common.base.Function<RemoteAgentAuthenticationEntity,ImmutableRemoteAgentAuthentication> fromEntity()
public static Function<RemoteAgentAuthenticationEntity,ImmutableRemoteAgentAuthentication> fromEntityJdk()
public static com.google.common.base.Function<RemoteAgentAuthentication,RemoteAgentAuthenticationEntity> toEntity(RemoteAgentAuthenticationDao agentAuthenticationDao)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.