public class AutoAuthComputeCloudClient extends ProxyComputeCloudClient
client
Constructor and Description |
---|
AutoAuthComputeCloudClient(ComputeCloudClient client) |
AutoAuthComputeCloudClient(ComputeCloudClient client,
Clock clock) |
Modifier and Type | Method and Description |
---|---|
void |
authenticate()
Authenticates the client and stores an authentication token to allow
other methods to be called.
|
void |
close()
Closes the client connection.
|
protected void |
preInvoke() |
createInstanceOrchestration, deleteOrchestration, getImageListEntries, getImageLists, getInstanceOrchestration, getSecurityLists, getShapes, getSSHKey, getSSHKeys, startOrchestration, stopOrchestration, toString
public AutoAuthComputeCloudClient(ComputeCloudClient client)
public AutoAuthComputeCloudClient(ComputeCloudClient client, Clock clock)
public void close()
ComputeCloudClient
close
in interface ComputeCloudClient
close
in interface AutoCloseable
close
in class ProxyComputeCloudClient
public void authenticate() throws ComputeCloudClientException
authenticate
in interface ComputeCloudClient
authenticate
in class ProxyComputeCloudClient
ComputeCloudClientUnauthorizedException
- if authentication failedComputeCloudClientException
- if an error occurs communicating with
the endpoint serverprotected void preInvoke() throws ComputeCloudClientException
preInvoke
in class ProxyComputeCloudClient
ComputeCloudClientException
Copyright © 2016–2018. All rights reserved.