Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package edu.uiuc.ncsa.myproxy.oa4mp.oauth2.servlet;
 
 
import static edu.uiuc.ncsa.security.core.util.DateUtils.checkTimestamp;

Created by Jeff Gaynor
on 2/20/14 at 12:50 PM

public class OA2CertServlet extends ACS2 {
    public ServiceTransaction verifyAndGet(IssuerResponse iResponsethrows IOException {
           PAResponse par = (PAResponseiResponse;
           AccessToken accessToken = par.getAccessToken();
           ServiceTransaction t = (ServiceTransactiongetTransactionStore().get(accessToken);
           if (t == null) {
               throw new GeneralException("Error: no transaction found for access token \"" + accessToken + "\"");
           }
           if (!t.isAccessTokenValid()) {
               throw new GeneralException("Error: invalid access token. Request refused");
           }
           checkClient(t.getClient());
           checkTimestamp(accessToken.getToken());
           return t;
       }
     @Override
     protected void doRealCertRequest(ServiceTransaction transString statusStringthrows Throwable {
         doCertRequest(transstatusString);
     }
New to GrepCode? Check out our FAQ X