Package org.jclouds.digitalocean2.config
Class DigitalOceanParserModule.SshPublicKeyAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<PublicKey>
-
- org.jclouds.digitalocean2.config.DigitalOceanParserModule.SshPublicKeyAdapter
-
- Enclosing class:
- DigitalOceanParserModule
@Singleton public static class DigitalOceanParserModule.SshPublicKeyAdapter extends com.google.gson.TypeAdapter<PublicKey>
-
-
Constructor Summary
Constructors Constructor Description SshPublicKeyAdapter(com.google.common.base.Function<PublicKey,String> publicKeyToSshKey, com.google.common.base.Function<String,PublicKey> sshKeyToPublicKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PublicKey
read(com.google.gson.stream.JsonReader in)
void
write(com.google.gson.stream.JsonWriter out, PublicKey value)
-
-
-
Method Detail
-
write
public void write(com.google.gson.stream.JsonWriter out, PublicKey value) throws IOException
- Specified by:
write
in classcom.google.gson.TypeAdapter<PublicKey>
- Throws:
IOException
-
read
public PublicKey read(com.google.gson.stream.JsonReader in) throws IOException
- Specified by:
read
in classcom.google.gson.TypeAdapter<PublicKey>
- Throws:
IOException
-
-