|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.bamboo.buildqueue.manager.RemoteAgentAuthenticationManagerImpl
public class RemoteAgentAuthenticationManagerImpl
Default implementation of RemoteAgentAuthenticationManager.
| Constructor Summary | |
|---|---|
RemoteAgentAuthenticationManagerImpl(AdministrationConfigurationManager configManager,
RemoteAgentAuthenticationDao agentAuthenticationDao)
|
|
| Method Summary | |
|---|---|
void |
approveAuthentications(java.lang.Iterable<RemoteAgentAuthentication> authentications)
Approve all authentications from the list. |
java.lang.Iterable<RemoteAgentAuthentication> |
getAllAuthentications()
Get all agent authentications known to this Bamboo server. |
RemoteAgentAuthentication |
getAuthentication(java.util.UUID uuid)
Get first remote agent authentication matching the IP and UUID. |
RemoteAgentAuthentication |
getAuthentication(java.util.UUID uuid,
java.lang.String ip)
Get remote agent authentication matching the IP and UUID. |
java.lang.Iterable<RemoteAgentAuthentication> |
getAuthentications(com.google.common.base.Predicate<RemoteAgentAuthentication> filter)
Get authentication filtered by given filter. |
com.atlassian.fugue.Pair<RemoteAgentAuthentication,java.lang.Boolean> |
getOrCreatePendingAuthentication(java.util.UUID uuid,
java.lang.String ip)
Create a new pending authentication for given IP address and UUID. |
boolean |
isRemoteAgentAuthenticationEnabled()
Checks whether the remote agent authentication is currently enabled. |
void |
revokeAgentAuthentications(java.lang.Iterable<RemoteAgentAuthentication> authentications)
Revoke approval for given agent authentications. |
void |
setRemoteAgentAuthenticationEnabled(boolean isAuthenticationEnabled)
Sets the remote agent authentication to globally enabled/disabled. |
void |
updateIp(java.util.UUID uuid,
java.lang.String newIp)
Update IP of an approved authentication with given uuid. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteAgentAuthenticationManagerImpl(AdministrationConfigurationManager configManager,
RemoteAgentAuthenticationDao agentAuthenticationDao)
| Method Detail |
|---|
public boolean isRemoteAgentAuthenticationEnabled()
RemoteAgentAuthenticationManager
isRemoteAgentAuthenticationEnabled in interface RemoteAgentAuthenticationManagertrue, if remote agent authentication is enabled, false otherwise
public void setRemoteAgentAuthenticationEnabled(boolean isAuthenticationEnabled)
throws java.lang.Exception
RemoteAgentAuthenticationManager
setRemoteAgentAuthenticationEnabled in interface RemoteAgentAuthenticationManagerisAuthenticationEnabled - true if remote agent authentication should be enabled, false otherwise.
java.lang.Exception - on any error@NotNull public java.lang.Iterable<RemoteAgentAuthentication> getAllAuthentications()
RemoteAgentAuthenticationManager
getAllAuthentications in interface RemoteAgentAuthenticationManager@NotNull public java.lang.Iterable<RemoteAgentAuthentication> getAuthentications(com.google.common.base.Predicate<RemoteAgentAuthentication> filter)
RemoteAgentAuthenticationManager
getAuthentications in interface RemoteAgentAuthenticationManagerfilter - predicate to filter authentications
@Nullable
public RemoteAgentAuthentication getAuthentication(java.util.UUID uuid,
java.lang.String ip)
RemoteAgentAuthenticationManagernull will be returned.
The returned authentication (if found) will have UUID matching the uuid parameter and IP address
either equal to ip parameter or a wildcard mask that matches the ip parameter. Persisted
(approved) authentications will be queried in preference to the authentications pending approval.
getAuthentication in interface RemoteAgentAuthenticationManageruuid - UUIDip - IP address
nullpublic RemoteAgentAuthentication getAuthentication(java.util.UUID uuid)
RemoteAgentAuthenticationManagernull will be returned.
The returned authentication (if found) will have UUID matching the uuid parameter. Persisted
(approved) authentications will be queried in preference to the authentications pending approval.
getAuthentication in interface RemoteAgentAuthenticationManageruuid - UUID
null
@NotNull
public com.atlassian.fugue.Pair<RemoteAgentAuthentication,java.lang.Boolean> getOrCreatePendingAuthentication(@NotNull
java.util.UUID uuid,
@NotNull
java.lang.String ip)
RemoteAgentAuthenticationManager
getOrCreatePendingAuthentication in interface RemoteAgentAuthenticationManageruuid - UUIDip - IP address
true if an existing authentication (pending or approved) with the same UUID and matching IP was
found, and false otherwise (meaning new authentication created)RemoteAgentAuthentications.matching(java.util.UUID, String)
public void approveAuthentications(@NotNull
java.lang.Iterable<RemoteAgentAuthentication> authentications)
RemoteAgentAuthenticationManager
approveAuthentications in interface RemoteAgentAuthenticationManagerauthentications - authentications to approve
public void revokeAgentAuthentications(@NotNull
java.lang.Iterable<RemoteAgentAuthentication> authentications)
RemoteAgentAuthenticationManager
revokeAgentAuthentications in interface RemoteAgentAuthenticationManagerauthentications - authentications to disapprove
public void updateIp(@NotNull
java.util.UUID uuid,
@NotNull
java.lang.String newIp)
RemoteAgentAuthenticationManager
updateIp in interface RemoteAgentAuthenticationManageruuid - UUID of an approved authentication to updatenewIp - new IP address of the authentication
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||