org.jclouds.oauth.v2.json
Class ClaimSetTypeAdapter

java.lang.Object
  extended by com.google.gson.TypeAdapter<ClaimSet>
      extended by org.jclouds.oauth.v2.json.ClaimSetTypeAdapter

public class ClaimSetTypeAdapter
extends com.google.gson.TypeAdapter<ClaimSet>

JSON TypeAdapter for the ClaimSet type. Pull the claims maps to the root level and adds two properties for the expiration time and issuing time.

Author:
David Alves

Constructor Summary
ClaimSetTypeAdapter()
           
 
Method Summary
 ClaimSet read(com.google.gson.stream.JsonReader in)
           
 void write(com.google.gson.stream.JsonWriter out, ClaimSet value)
           
 
Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClaimSetTypeAdapter

public ClaimSetTypeAdapter()
Method Detail

write

public void write(com.google.gson.stream.JsonWriter out,
                  ClaimSet value)
           throws IOException
Specified by:
write in class com.google.gson.TypeAdapter<ClaimSet>
Throws:
IOException

read

public ClaimSet read(com.google.gson.stream.JsonReader in)
              throws IOException
Specified by:
read in class com.google.gson.TypeAdapter<ClaimSet>
Throws:
IOException


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.