Created
December 18, 2013 22:29
-
-
Save vaskaloidis/8030994 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package edu.hartford.cs375.digsig.web; | |
| import java.util.List; | |
| import javax.ejb.EJB; | |
| import javax.jws.WebService; | |
| import edu.hartford.cs375.digsig.ejb.DigitalSignatureService; | |
| import edu.hartford.cs375.digsig.ejb.DigitallySignedString; | |
| @WebService( | |
| name="DigitalSignatureService", | |
| serviceName="DigitalSignatureService", | |
| targetNamespace="http://cs375.hartford.edu/digsig/1.0.1", | |
| endpointInterface="edu.hartford.cs375.digsig.web.DigitalSignatureWebService" | |
| ) | |
| public class DigitalSignatureWebServiceImpl { | |
| @EJB | |
| private DigitalSignatureService ejb; | |
| public DigitallySignedString sign(String input){ | |
| return ejb.sign(input); | |
| } | |
| public boolean verify(String text, String signature){ | |
| return ejb.verify(text, signature); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment