Sitelet https://github.com/biddyweb/java/commit/89b32c11883b78c3e73d2b1c01d9ef9245b5b879
Skip to content

Commit 89b32c1

Browse files
author
Devendra
committed
adding iv constructor to Pubnub class
1 parent e672d5b commit 89b32c1

34 files changed

Lines changed: 122 additions & 39 deletions

‎android/Pubnub-Android-3.5.2.jar‎

23 Bytes
Binary file not shown.
23 Bytes
Binary file not shown.
23 Bytes
Binary file not shown.

‎android/src/com/pubnub/api/Pubnub.java‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,29 @@ public Pubnub(String publish_key, String subscribe_key, String secret_key) {
7979
super(publish_key, subscribe_key, secret_key, "", false);
8080
}
8181

82+
/**
83+
*
84+
* Constructor for Pubnub Class
85+
*
86+
* @param publish_key
87+
* Publish Key
88+
* @param subscribe_key
89+
* Subscribe Key
90+
* @param secret_key
91+
* Secret Key
92+
* @param cipher_key
93+
* Cipher Key
94+
* @param ssl_on
95+
* SSL enabled ?
96+
* @param initialization_vector
97+
* Initialization vector
98+
*/
99+
100+
public Pubnub(String publish_key, String subscribe_key,
101+
String secret_key, String cipher_key, boolean ssl_on, String initialization_vector) {
102+
super(publish_key, subscribe_key, secret_key, cipher_key, ssl_on, initialization_vector);
103+
}
104+
82105
/**
83106
* Sets value for UUID
84107
*
31 Bytes
Binary file not shown.

‎blackberry/src/com/pubnub/api/Pubnub.java‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ public Pubnub(String publish_key, String subscribe_key, String secret_key) {
2828
super(publish_key, subscribe_key, secret_key, "", false);
2929
}
3030

31+
public Pubnub(String publish_key, String subscribe_key,
32+
String secret_key, String cipher_key, boolean ssl_on, String initialization_vector) {
33+
super(publish_key, subscribe_key, secret_key, cipher_key, ssl_on, initialization_vector);
34+
}
35+
3136
/**
3237
* UUID
3338
*
0 Bytes
Binary file not shown.

‎j2me/Pubnub-MicroEdition-3.5.2.jar‎

0 Bytes
Binary file not shown.

‎j2me/examples/PubnubExample/src/com/pubnub/examples/me/PubnubMenu.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public Form getMenu() {
8787
menu.addCommand(exitCommand);
8888
authKeyConfigCommand = new Command("Set Auth Key", Command.ITEM, 0);
8989
menu.addCommand(authKeyConfigCommand);
90-
90+
9191
menu.setCommandListener(new CommandListener() {
9292

9393
public void commandAction(Command command, Displayable displayable) {

‎j2me/src1/com/pubnub/api/SubscribeWorker.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ void process(HttpRequest hreq) {
1919
log.verbose("disconnectAndResubscribe is " + hreq.isDar());
2020
boolean sleep = false;
2121
while (!_die && currentRetryAttempt <= maxRetries) {
22-
if (sleep) {
22+
if (sleep) {
2323
try {
2424
Thread.sleep(retryInterval);
2525
} catch (InterruptedException e) {
2626
}
2727
sleep = true;
28-
}
28+
}
2929
try {
3030
log.debug(hreq.getUrl());
3131
hresp = httpclient.fetch(hreq.getUrl(), hreq.getHeaders());

0 commit comments

Comments
 (0)