22
33import com .devsu .push .sender .callback .PushCallback ;
44import com .devsu .push .sender .service .sync .SyncApplePushService ;
5+ import com .notnoop .exceptions .InvalidSSLConfig ;
6+ import com .notnoop .exceptions .RuntimeIOException ;
57
68/**
79 * The async push service for iOS (APNS).
@@ -11,7 +13,8 @@ public class AsyncApplePushService extends AsyncPushServiceBase {
1113 /**
1214 * @see com.devsu.push.sender.service.sync.SyncApplePushService#ApplePushService(String, String, boolean)
1315 */
14- public AsyncApplePushService (String certificatePath , String certificatePassword , boolean useProductionServer ){
16+ public AsyncApplePushService (String certificatePath , String certificatePassword , boolean useProductionServer )
17+ throws RuntimeIOException , InvalidSSLConfig {
1518 super (new SyncApplePushService (certificatePath , certificatePassword , useProductionServer ), null );
1619 }
1720
@@ -21,22 +24,25 @@ public AsyncApplePushService(String certificatePath, String certificatePassword,
2124 * @param certificatePassword The password for the p12 certificate.
2225 * @param useProductionServer Indicates if the services uses a Production environment or a Sandbox environment.
2326 * @param pushCallback The push callback.
27+ * @throws RuntimeIOException
28+ * @throws InvalidSSLConfig
2429 */
25- public AsyncApplePushService (String certificatePath , String certificatePassword , boolean useProductionServer , PushCallback pushCallback ) {
30+ public AsyncApplePushService (String certificatePath , String certificatePassword , boolean useProductionServer , PushCallback pushCallback )
31+ throws RuntimeIOException , InvalidSSLConfig {
2632 super (new SyncApplePushService (certificatePath , certificatePassword , useProductionServer ), pushCallback );
2733 }
2834
2935 /**
3036 * @see com.devsu.push.sender.service.sync.SyncApplePushService#setupDevelopmentServer(java.lang.String, java.lang.String)
3137 */
32- public void setupDevelopmentServer (String certificatePath , String certificatePassword ) {
38+ public void setupDevelopmentServer (String certificatePath , String certificatePassword ) throws RuntimeIOException , InvalidSSLConfig {
3339 ((SyncApplePushService )pushService ).setupDevelopmentServer (certificatePath , certificatePassword );
3440 }
3541
3642 /**
3743 * @see com.devsu.push.sender.service.sync.SyncApplePushService#setupProductionServer(java.lang.String, java.lang.String)
3844 */
39- public void setupProductionServer (String certificatePath , String certificatePassword ) {
45+ public void setupProductionServer (String certificatePath , String certificatePassword ) throws RuntimeIOException , InvalidSSLConfig {
4046 ((SyncApplePushService )pushService ).setupProductionServer (certificatePath , certificatePassword );
4147 }
4248
0 commit comments