playn.payments.server
Class JWTEncodedServiceImp

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
              extended by com.google.gwt.user.server.rpc.RemoteServiceServlet
                  extended by playn.payments.server.JWTEncodedServiceImp
All Implemented Interfaces:
com.google.gwt.user.client.rpc.RemoteService, com.google.gwt.user.server.rpc.SerializationPolicyProvider, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, JWTEncodedService

public class JWTEncodedServiceImp
extends com.google.gwt.user.server.rpc.RemoteServiceServlet
implements JWTEncodedService

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface playn.payments.client.JWTEncodedService
JWTEncodedService.NullPurchaseMetaDataException
 
Field Summary
 
Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
perThreadRequest, perThreadResponse
 
Constructor Summary
JWTEncodedServiceImp()
           
 
Method Summary
 String encodeJWT(String iat, String exp, InAppPayments.PurchaseRequest.Serialized request)
           
 
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse
 
Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JWTEncodedServiceImp

public JWTEncodedServiceImp()
Method Detail

encodeJWT

public String encodeJWT(String iat,
                        String exp,
                        InAppPayments.PurchaseRequest.Serialized request)
                 throws IllegalArgumentException,
                        JWTEncodedService.NullPurchaseMetaDataException
Specified by:
encodeJWT in interface JWTEncodedService
Parameters:
iat. - The time when the JWT was issued, specified in seconds since the epoch.
exp. - The time when the purchase will expire, specified in seconds since the epoch. This is a standard JWT field.
request. - The item being purchased.
Throws:
NullPurchaseMetaDataException
IllegalArgumentException
JWTEncodedService.NullPurchaseMetaDataException


Copyright © 2012. All Rights Reserved.