Package cloud.dnation.hetznerclient
Class ClientFactory
- java.lang.Object
-
- cloud.dnation.hetznerclient.ClientFactory
-
public class ClientFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description ClientFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HetznerApicreate(Supplier<String> tokenProvider)Create new proxy ofHetznerApiusing token provider.
-
-
-
Method Detail
-
create
public static HetznerApi create(Supplier<String> tokenProvider)
Create new proxy ofHetznerApiusing token provider.- Parameters:
tokenProvider- supplier of Hetzner API token.- Returns:
- Proxy of
HetznerApi - Throws:
IllegalStateException- when credentialsId is not valid
-
-