diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/asn1/package.html b/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/asn1/package.html deleted file mode 100644 index 1ac16a553..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/asn1/package.html +++ /dev/null @@ -1,5 +0,0 @@ - -
-A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - - diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/asn1/pkcs/package.html b/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/asn1/pkcs/package.html deleted file mode 100644 index ab800f446..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/asn1/pkcs/package.html +++ /dev/null @@ -1,5 +0,0 @@ - - -Support classes useful for encoding and supporting the various RSA PKCS documents. - - diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/asn1/sec/package.html b/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/asn1/sec/package.html deleted file mode 100644 index 5e34dec46..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/asn1/sec/package.html +++ /dev/null @@ -1,5 +0,0 @@ - - -Classes for support of the SEC standard for Elliptic Curve. - - diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/asn1/util/package.html b/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/asn1/util/package.html deleted file mode 100644 index 1db893d19..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/asn1/util/package.html +++ /dev/null @@ -1,5 +0,0 @@ - - -An ASN.1 dump utility. - - diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/asn1/x509/package.html b/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/asn1/x509/package.html deleted file mode 100644 index 728921a1d..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/asn1/x509/package.html +++ /dev/null @@ -1,5 +0,0 @@ - - -Support classes useful for encoding and processing X.509 certificates. - - diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/asn1/x509/qualified/package.html b/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/asn1/x509/qualified/package.html deleted file mode 100644 index 28cfef900..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/asn1/x509/qualified/package.html +++ /dev/null @@ -1,5 +0,0 @@ - - -Support classes useful for encoding and processing messages based around RFC3739 - - diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/asn1/x9/package.html b/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/asn1/x9/package.html deleted file mode 100644 index 42fc97c79..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/asn1/x9/package.html +++ /dev/null @@ -1,5 +0,0 @@ - - -Support classes useful for encoding and supporting X9.62 elliptic curve. - - diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/agreement/package.html b/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/agreement/package.html deleted file mode 100644 index 4b49331c7..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/agreement/package.html +++ /dev/null @@ -1,5 +0,0 @@ - - -Basic key agreement classes. - - diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/digests/package.html b/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/digests/package.html deleted file mode 100644 index 0a0d95cea..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/digests/package.html +++ /dev/null @@ -1,5 +0,0 @@ - - -Message digest classes. - - diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/encodings/package.html b/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/encodings/package.html deleted file mode 100644 index fc56f634c..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/encodings/package.html +++ /dev/null @@ -1,5 +0,0 @@ - - -Block encodings for asymmetric ciphers. - - diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/engines/package.html b/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/engines/package.html deleted file mode 100644 index e945dac00..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/engines/package.html +++ /dev/null @@ -1,5 +0,0 @@ - - -Basic cipher classes. - - diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/generators/package.html b/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/generators/package.html deleted file mode 100644 index 9d73ce3e8..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/generators/package.html +++ /dev/null @@ -1,5 +0,0 @@ - - -Generators for keys, key pairs and password based encryption algorithms. - - diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/io/package.html b/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/io/package.html deleted file mode 100644 index f2c9e406e..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/io/package.html +++ /dev/null @@ -1,5 +0,0 @@ - - -Classes for doing "enhanced" I/O with Digests and MACs. - - diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/macs/package.html b/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/macs/package.html deleted file mode 100644 index 0b1f86dd3..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/macs/package.html +++ /dev/null @@ -1,5 +0,0 @@ - - -Classes for creating MACs and HMACs. - - diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/modes/package.html b/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/modes/package.html deleted file mode 100644 index 5402df449..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/modes/package.html +++ /dev/null @@ -1,5 +0,0 @@ - - -Modes for symmetric ciphers. - - diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/package.html b/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/package.html deleted file mode 100644 index ee5487ffa..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/package.html +++ /dev/null @@ -1,5 +0,0 @@ - - -Base classes for the lightweight API. - - diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/paddings/package.html b/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/paddings/package.html deleted file mode 100644 index 2b82e60f1..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/paddings/package.html +++ /dev/null @@ -1,5 +0,0 @@ - - -Paddings for symmetric ciphers. - - diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/params/package.html b/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/params/package.html deleted file mode 100644 index 4e00a7548..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/params/package.html +++ /dev/null @@ -1,5 +0,0 @@ - - -Classes for parameter objects for ciphers and generators. - - diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/prng/package.html b/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/prng/package.html deleted file mode 100644 index 99525fbf0..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/prng/package.html +++ /dev/null @@ -1,5 +0,0 @@ - - -Lightweight psuedo-random number generators. - - diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/signers/package.html b/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/signers/package.html deleted file mode 100644 index 151d3d5e8..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/signers/package.html +++ /dev/null @@ -1,5 +0,0 @@ - - -Basic signers. - - diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/tls/package.html b/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/tls/package.html deleted file mode 100644 index ee59f8afb..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/tls/package.html +++ /dev/null @@ -1,5 +0,0 @@ - - -A lightweight TLS API. - - diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/util/package.html b/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/util/package.html deleted file mode 100644 index 787b892e9..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/crypto/util/package.html +++ /dev/null @@ -1,5 +0,0 @@ - - -Some general utility/conversion classes. - - diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/math/ec/package.html b/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/math/ec/package.html deleted file mode 100644 index a02605ba3..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/math/ec/package.html +++ /dev/null @@ -1,5 +0,0 @@ - - -Math support for Elliptic Curve. - - diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/oiw/package.html b/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/oiw/package.html deleted file mode 100644 index 44eb2fe84..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/oiw/package.html +++ /dev/null @@ -1,5 +0,0 @@ - - -Objects and OID for the support of ISO OIW. - - diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/util/encoders/package.html b/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/util/encoders/package.html deleted file mode 100644 index 3be222b29..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/cls/org/bouncycastle/util/encoders/package.html +++ /dev/null @@ -1,5 +0,0 @@ - - -Classes for producing and reading Base64 and Hex strings. - - diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/com/codename1/io/PubnubCn1Connection.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/com/codename1/io/PubnubCn1Connection.java deleted file mode 100644 index a17ea7206..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/com/codename1/io/PubnubCn1Connection.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.codename1.io; - - -public class PubnubCn1Connection { - - public PubnubCn1Connection() { - } - - public PubnubCn1Response fetch(String url, int timeout, java.util.Hashtable _headers) { - } - - public void disconnect() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/com/codename1/io/PubnubCn1Response.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/com/codename1/io/PubnubCn1Response.java deleted file mode 100644 index 7a6e914e4..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/com/codename1/io/PubnubCn1Response.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.codename1.io; - - -public class PubnubCn1Response { - - public PubnubCn1Response(int responseStatusCode, String response) { - } - - public String getResponse() { - } - - public int getResponseStatusCode() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/com/pubnub/api/Callback.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/com/pubnub/api/Callback.java deleted file mode 100644 index 4c4c62b63..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/com/pubnub/api/Callback.java +++ /dev/null @@ -1,77 +0,0 @@ -package com.pubnub.api; - - -/** - * Abstract class to be subclassed by objects being passed as callbacks to - * Pubnub APIs Default implementation for all methods is blank - * - * @author Pubnub - */ -public abstract class Callback { - - public Callback() { - } - - /** - * This callback will be invoked when a message is received on the channel - * - * @param channel - * Channel Name - * @param message - * Message - */ - public abstract void successCallback(String channel, Object message) { - } - - /** - * This callback will be invoked when an error occurs - * - * @param channel - * Channel Name - * @param error - * error - */ - public void errorCallback(String channel, PubnubError error) { - } - - /** - * This callback will be invoked when an error occurs - * - * @param channel - * Channel Name - * @param message - * Message - * @deprecated as of version 3.5.2 and will be removed with 3.6.0 . - * Replaced by {@link #errorCallback(String channel, PubnubError error)} - */ - public void errorCallback(String channel, Object message) { - } - - /** - * This callback will be invoked on getting connected to a channel - * - * @param channel - * Channel Name - */ - public void connectCallback(String channel, Object message) { - } - - /** - * This callback is invoked on getting reconnected to a channel after - * getting disconnected - * - * @param channel - * Channel Name - */ - public void reconnectCallback(String channel, Object message) { - } - - /** - * This callback is invoked on getting disconnected from a channel - * - * @param channel - * Channel Name - */ - public void disconnectCallback(String channel, Object message) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/com/pubnub/api/HttpUtil.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/com/pubnub/api/HttpUtil.java deleted file mode 100644 index 32fd37618..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/com/pubnub/api/HttpUtil.java +++ /dev/null @@ -1,42 +0,0 @@ -package com.pubnub.api; - - -public class HttpUtil { - - public static final int HTTP_MOVED_PERM = 301; - - public static final int HTTP_MOVED_TEMP = 302; - - public static final int HTTP_SEE_OTHER = 303; - - public static final int HTTP_OK = 200; - - public static final int HTTP_FORBIDDEN = 403; - - public static final int HTTP_UNAUTHORIZED = 401; - - public static final int HTTP_BAD_REQUEST = 400; - - public static final int HTTP_BAD_GATEWAY = 502; - - public static final int HTTP_CLIENT_TIMEOUT = 408; - - public static final int HTTP_GATEWAY_TIMEOUT = 504; - - public static final int HTTP_INTERNAL_ERROR = 500; - - public HttpUtil() { - } - - public static boolean isRedirect(int rc) { - } - - public static boolean isOk(int rc) { - } - - public static boolean checkResponse(int rc) { - } - - public static boolean checkResponseSuccess(int rc) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/com/pubnub/api/Pubnub.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/com/pubnub/api/Pubnub.java deleted file mode 100644 index feed9f388..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/com/pubnub/api/Pubnub.java +++ /dev/null @@ -1,457 +0,0 @@ -package com.pubnub.api; - - -/** - * Pubnub object facilitates querying channels for messages and listening on - * channels for presence/message events - * - * @author Pubnub - */ -public class Pubnub extends PubnubCore { - - /** - * Pubnub Constructor - * - * @param publish_key - * Publish Key - * @param subscribe_key - * Subscribe Key - * @param secret_key - * Secret Key - * @param cipher_key - * Cipher Key - * @param ssl_on - * SSL on ? - */ - public Pubnub(String publish_key, String subscribe_key, String secret_key, String cipher_key, boolean ssl_on) { - } - - /** - * Pubnub Constructor - * - * @param publish_key - * Publish key - * @param subscribe_key - * Subscribe Key - * @param secret_key - * Secret Key - * @param ssl_on - * SSL on ? - */ - public Pubnub(String publish_key, String subscribe_key, String secret_key, boolean ssl_on) { - } - - /** - * Pubnub Constructor - * - * @param publish_key - * Publish Key - * @param subscribe_key - * Subscribe Key - */ - public Pubnub(String publish_key, String subscribe_key) { - } - - /** - * @param publish_key - * Publish Key - * @param subscribe_key - * Subscribe Key - * @param ssl - */ - public Pubnub(String publish_key, String subscribe_key, boolean ssl) { - } - - /** - * @param publish_key - * @param subscribe_key - * @param secret_key - */ - public Pubnub(String publish_key, String subscribe_key, String secret_key) { - } - - /** - * Sets value for UUID - * - * @param uuid - * UUID value for Pubnub client - */ - public void setUUID(String uuid) { - } - - protected String uuid() { - } - - /** - * This method sets timeout value for subscribe/presence. Default value is - * 310000 milliseconds i.e. 310 seconds - * - * @param timeout - * Timeout value in milliseconds for subscribe/presence - */ - public void setSubscribeTimeout(int timeout) { - } - - /** - * This method returns timeout value for subscribe/presence. - * - * @return Timeout value in milliseconds for subscribe/presence - */ - public int getSubscribeTimeout() { - } - - /** - * This method set timeout value for non subscribe operations like publish, - * history, hereNow. Default value is 15000 milliseconds i.e. 15 seconds. - * - * @param timeout - * Timeout value in milliseconds for Non subscribe operations - * like publish, history, hereNow - */ - public void setNonSubscribeTimeout(int timeout) { - } - - /** - * This method returns timeout value for non subscribe operations like publish, history, hereNow - * - * @return Timeout value in milliseconds for for Non subscribe operations like publish, history, hereNow - */ - public int getNonSubscribeTimeout() { - } - - protected String getUserAgent() { - } - - /** - * Send a message to a channel. - * - * @param args - * Hashtable containing channel name, message. - * @param callback - * object of sub class of Callback class - * @deprecated as of version 3.5.2 and will be removed with 3.6.0 . Methods - * accepting Hashtable as arguments have been deprecated. - */ - @java.lang.Deprecated - @java.lang.Override - public void publish(java.util.Hashtable args, Callback callback) { - } - - /** - * Send a message to a channel. - * - * @param args - * Hashtable containing channel name, message, callback - * @deprecated As of version 3.5.2 . Will be removed in 3.6.0 . Methods - * accepting Hashtable as arguments have been deprecated. - */ - @java.lang.Deprecated - @java.lang.Override - public void publish(java.util.Hashtable args) { - } - - /** - * - * Read DetailedHistory for a channel. - * - * @param channel - * Channel name for which detailed history is required - * @param start - * Start time - * @param end - * End time - * @param count - * Upper limit on number of messages to be returned - * @param reverse - * True if messages need to be in reverse order - * @param callback - * Callback - * @deprecated as of version 3.5.2 and will be removed with 3.6.0 . Replaced - * by - * {@link #history(String channel, long start, long end, int count, boolean reverse, Callback callback)} - */ - @java.lang.Deprecated - @java.lang.Override - public void detailedHistory(String channel, long start, long end, int count, boolean reverse, Callback callback) { - } - - /** - * - * Read History for a channel. - * - * @param channel - * Channel name for which detailed history is required - * @param start - * Start time - * @param end - * End time - * @param count - * Upper limit on number of messages to be returned - * @param reverse - * True if messages need to be in reverse order - * @param callback - * Callback - */ - public void history(String channel, long start, long end, int count, boolean reverse, Callback callback) { - } - - /** - * - * Read DetailedHistory for a channel. - * - * @param channel - * Channel name for which detailed history is required - * @param start - * Start time - * @param reverse - * True if messages need to be in reverse order - * @param callback - * Callback - * @deprecated as of version 3.5.2 and will be removed with 3.6.0 . Replaced - * by - * {@link #history(String channel, long start, boolean reverse, Callback callback)} - */ - @java.lang.Deprecated - @java.lang.Override - public void detailedHistory(String channel, long start, boolean reverse, Callback callback) { - } - - /** - * - * Read history for a channel. - * - * @param channel - * Channel name for which detailed history is required - * @param start - * Start time - * @param reverse - * True if messages need to be in reverse order - * @param callback - * Callback - */ - public void history(String channel, long start, boolean reverse, Callback callback) { - } - - /** - * - * Read DetailedHistory for a channel. - * - * @param channel - * Channel name for which detailed history is required - * @param start - * Start time - * @param end - * End time - * @param callback - * Callback - * @deprecated as of version 3.5.2 and will be removed with 3.6.0 . Replaced - * by - * {@link #history(String channel, long start, long end, Callback callback)} - */ - @java.lang.Deprecated - @java.lang.Override - public void detailedHistory(String channel, long start, long end, Callback callback) { - } - - /** - * - * Read History for a channel. - * - * @param channel - * Channel name for which detailed history is required - * @param start - * Start time - * @param end - * End time - * @param callback - * Callback - */ - public void history(String channel, long start, long end, Callback callback) { - } - - /** - * - * Read DetailedHistory for a channel. - * - * @param channel - * Channel name for which detailed history is required - * @param start - * Start time - * @param end - * End time - * @param reverse - * True if messages need to be in reverse order - * @param callback - * Callback - * @deprecated as of version 3.5.2 and will be removed with 3.6.0 . Replaced - * by - * {@link #history(String channel, long start, long end, boolean reverse, Callback callback)} - */ - @java.lang.Deprecated - @java.lang.Override - public void detailedHistory(String channel, long start, long end, boolean reverse, Callback callback) { - } - - /** - * - * Read History for a channel. - * - * @param channel - * Channel name for which detailed history is required - * @param start - * Start time - * @param end - * End time - * @param reverse - * True if messages need to be in reverse order - * @param callback - * Callback - */ - public void history(String channel, long start, long end, boolean reverse, Callback callback) { - } - - /** - * - * Read DetailedHistory for a channel. - * - * @param channel - * Channel name for which detailed history is required - * @param count - * Upper limit on number of messages to be returned - * @param reverse - * True if messages need to be in reverse order - * @param callback - * Callback - * @deprecated as of version 3.5.2 and will be removed with 3.6.0 . Replaced - * by - * {@link #history(String channel, int count, boolean reverse, Callback callback)} - */ - @java.lang.Deprecated - @java.lang.Override - public void detailedHistory(String channel, int count, boolean reverse, Callback callback) { - } - - /** - * - * Read History for a channel. - * - * @param channel - * Channel name for which detailed history is required - * @param count - * Upper limit on number of messages to be returned - * @param reverse - * True if messages need to be in reverse order - * @param callback - * Callback - */ - public void history(String channel, int count, boolean reverse, Callback callback) { - } - - /** - * - * Read DetailedHistory for a channel. - * - * @param channel - * Channel name for which detailed history is required - * @param reverse - * True if messages need to be in reverse order - * @param callback - * Callback - * @deprecated as of version 3.5.2 and will be removed with 3.6.0 . Replaced - * by - * {@link #history(String channel, boolean reverse, Callback callback)} - */ - @java.lang.Deprecated - public void detailedHistory(String channel, boolean reverse, Callback callback) { - } - - /** - * - * Read History for a channel. - * - * @param channel - * Channel name for which detailed history is required - * @param reverse - * True if messages need to be in reverse order - * @param callback - * Callback - */ - public void history(String channel, boolean reverse, Callback callback) { - } - - /** - * - * Read DetailedHistory for a channel. - * - * @param channel - * Channel name for which detailed history is required - * @param count - * Maximum number of messages - * @param callback - * Callback object - * @deprecated as of version 3.5.2 and will be removed with 3.6.0 . Replaced - * by - * {@link #history(String channel, int count, Callback callback)} - */ - @java.lang.Deprecated - public void detailedHistory(String channel, int count, Callback callback) { - } - - /** - * - * Read History for a channel. - * - * @param channel - * Channel name for which detailed history is required - * @param count - * Maximum number of messages - * @param callback - * Callback object - */ - @java.lang.Override - public void history(String channel, int count, Callback callback) { - } - - /** - * Unsubscribe/Disconnect from channel. - * - * @param args - * Hashtable containing channel name. - * @deprecated as of version 3.5.2 and will be removed with 3.6.0 . Methods - * accepting Hashtable as arguments have been deprecated. - */ - @java.lang.Deprecated - public void unsubscribe(java.util.Hashtable args) { - } - - /** - * - * Listen for a message on a channel. - * - * @param args - * Hashtable containing channel name - * @param callback - * Callback - * @exception PubnubException - * Throws PubnubException if Callback is null - * @deprecated as of version 3.5.2 and will be removed with 3.6.0 . - */ - @java.lang.Deprecated - public void subscribe(java.util.Hashtable args, Callback callback) { - } - - /** - * - * Listen for a message on a channel. - * - * @param args - * Hashtable containing channel name, callback - * @exception PubnubException - * Throws PubnubException if Callback is null - * @deprecated as of version 3.5.2 and will be removed with 3.6.0 . Methods - * accepting Hashtable as arguments have been deprecated. - */ - @java.lang.Deprecated - public void subscribe(java.util.Hashtable args) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/com/pubnub/api/PubnubError.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/com/pubnub/api/PubnubError.java deleted file mode 100644 index ba510a4e1..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/com/pubnub/api/PubnubError.java +++ /dev/null @@ -1,116 +0,0 @@ -package com.pubnub.api; - - -/** - * PubnubError object is passed to errorCallback. It contains details of error, like - * error code, error string, and optional message - * - * @author Pubnub - */ -public class PubnubError { - - /** - * Timeout Error . - */ - public static final int PNERR_TIMEOUT = 100; - - /** - */ - public static final int PNERR_PUBNUB_ERROR = 101; - - /** - * Connect Exception . - * Network Unreachable. - */ - public static final int PNERR_CONNECT_EXCEPTION = 102; - - /** - * Please check network connectivity. - * Please contact support with error details if issue persists. - */ - public static final int PNERR_HTTP_ERROR = 103; - - /** - * Client Timeout . - */ - public static final int PNERR_CLIENT_TIMEOUT = 104; - - /** - * Please verify if network is reachable - */ - public static final int PNERR_NETWORK_ERROR = 106; - - /** - * Pubnub Exception . - */ - public static final int PNERR_PUBNUB_EXCEPTION = 108; - - /** - * Disconnect . - */ - public static final int PNERR_DISCONNECT = 109; - - /** - * Disconnect and Resubscribe Received . - */ - public static final int PNERR_DISCONN_AND_RESUB = 110; - - /** - * Gateway Timeout - */ - public static final int PNERR_GATEWAY_TIMEOUT = 111; - - /** - * Pubnub server returned HTTP 403 forbidden status code. - * Happens when wrong authentication key is used . - */ - public static final int PNERR_FORBIDDEN = 112; - - /** - * Pubnub server returned HTTP 401 unauthorized status code - * Happens when authentication key is missing . - */ - public static final int PNERR_UNAUTHORIZED = 113; - - /** - * Secret key not configured - */ - public static final int PNERR_SECRET_KEY_MISSING = 114; - - /** - * Error while encrypting message to be published to Pubnub Cloud . - * Please contact support with error details. - */ - public static final int PNERR_ENCRYPTION_ERROR = 115; - - /** - * Decryption Error . - * Please contact support with error details. - */ - public static final int PNERR_DECRYPTION_ERROR = 116; - - /** - * Invalid Json . - * Please contact support with error details. - */ - public static final int PNERR_INVALID_JSON = 117; - - /** - * Error in opening URL . - * Please contact support with error details. - */ - public static final int PNERR_URL_OPEN = 120; - - public final int errorCode; - - public final int errorCodeExtended; - - public PubnubError(PubnubError error, String message) { - } - - public String toString() { - } - - public String getErrorString() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/com/pubnub/api/PubnubException.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/com/pubnub/api/PubnubException.java deleted file mode 100644 index 1f227cb26..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/com/pubnub/api/PubnubException.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.pubnub.api; - - -/** - * PubnubException is thrown by various Pubnub APIs - * - * @author PubnubCore - */ -public class PubnubException extends Exception { - - /** - * Constructor for PubnubException Class with error message as argument - * - * @param s - * Error message - */ - public PubnubException(String s) { - } - - /** - * Constructor for PubnubException Class with error message as argument - * - * @param pubnubError - * Error message - */ - public PubnubException(PubnubError pubnubError) { - } - - /** - * Constructor for PubnubException Class with error message as argument - * - * @param s - * Error message - */ - public PubnubException(PubnubError pubnubError, String s) { - } - - /** - * Read the exception error message - * - * @return String - */ - public String toString() { - } - - public PubnubError getPubnubError() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/com/pubnub/api/PubnubUtil.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/com/pubnub/api/PubnubUtil.java deleted file mode 100644 index 4e782cf48..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/com/pubnub/api/PubnubUtil.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.pubnub.api; - - -/** - * PubnubUtil class provides utility methods like urlEncode etc - * @author Pubnub - */ -public class PubnubUtil extends PubnubUtilCore { - - public PubnubUtil() { - } - - /** - * Returns encoded String - * - * @param sUrl - * , input string - * @return , encoded string - */ - public static String urlEncode(String sUrl) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/javabc/BigInteger.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/javabc/BigInteger.java deleted file mode 100644 index 862466952..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/javabc/BigInteger.java +++ /dev/null @@ -1,162 +0,0 @@ -package javabc; - - -public class BigInteger { - - public static final BigInteger ZERO; - - public static final BigInteger ONE; - - public BigInteger(String sval) { - } - - public BigInteger(String sval, int rdx) { - } - - public BigInteger(byte[] bval) { - } - - public BigInteger(int sign, byte[] mag) { - } - - public BigInteger(int numBits, java.util.Random rnd) { - } - - public BigInteger(int bitLength, int certainty, java.util.Random rnd) { - } - - public BigInteger abs() { - } - - public BigInteger add(BigInteger val) { - } - - public BigInteger and(BigInteger value) { - } - - public BigInteger andNot(BigInteger value) { - } - - public int bitCount() { - } - - public int bitLength() { - } - - public int compareTo(Object o) { - } - - public int compareTo(BigInteger val) { - } - - public BigInteger divide(BigInteger val) { - } - - public BigInteger[] divideAndRemainder(BigInteger val) { - } - - public boolean equals(Object val) { - } - - public BigInteger gcd(BigInteger val) { - } - - public int hashCode() { - } - - public int intValue() { - } - - public byte byteValue() { - } - - /** - * return whether or not a BigInteger is probably prime with a - * probability of 1 - (1/2)**certainty. - *- * From Knuth Vol 2, pg 395. - */ - public boolean isProbablePrime(int certainty) { - } - - public long longValue() { - } - - public BigInteger max(BigInteger val) { - } - - public BigInteger min(BigInteger val) { - } - - public BigInteger mod(BigInteger m) { - } - - public BigInteger modInverse(BigInteger m) { - } - - public BigInteger modPow(BigInteger exponent, BigInteger m) { - } - - public BigInteger multiply(BigInteger val) { - } - - public BigInteger negate() { - } - - public BigInteger not() { - } - - public BigInteger pow(int exp) { - } - - public static BigInteger probablePrime(int bitLength, java.util.Random random) { - } - - public BigInteger remainder(BigInteger n) { - } - - public BigInteger shiftLeft(int n) { - } - - public BigInteger shiftRight(int n) { - } - - public int signum() { - } - - public BigInteger subtract(BigInteger val) { - } - - public byte[] toByteArray() { - } - - public BigInteger xor(BigInteger val) { - } - - public BigInteger or(BigInteger value) { - } - - public BigInteger setBit(int n) { - } - - public BigInteger clearBit(int n) { - } - - public BigInteger flipBit(int n) { - } - - public String toString() { - } - - public String toString(int rdx) { - } - - public static BigInteger valueOf(long val) { - } - - public int getLowestSetBit() { - } - - public boolean testBit(int n) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/javabc/FilterInputStream.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/javabc/FilterInputStream.java deleted file mode 100644 index b55ba2819..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/javabc/FilterInputStream.java +++ /dev/null @@ -1,37 +0,0 @@ -package javabc; - - -public class FilterInputStream extends java.io.InputStream { - - protected java.io.InputStream in; - - protected FilterInputStream(java.io.InputStream underlying) { - } - - public int read() { - } - - public int read(byte[] b) { - } - - public int read(byte[] b, int offset, int length) { - } - - public long skip(long n) { - } - - public int available() { - } - - public void close() { - } - - public void mark(int readlimit) { - } - - public void reset() { - } - - public boolean markSupported() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/javabc/FilterOutputStream.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/javabc/FilterOutputStream.java deleted file mode 100644 index 12e089057..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/javabc/FilterOutputStream.java +++ /dev/null @@ -1,25 +0,0 @@ -package javabc; - - -public class FilterOutputStream extends java.io.OutputStream { - - protected java.io.OutputStream out; - - protected FilterOutputStream(java.io.OutputStream underlying) { - } - - public void write(int b) { - } - - public void write(byte[] b) { - } - - public void write(byte[] b, int offset, int length) { - } - - public void flush() { - } - - public void close() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/javabc/SecureRandom.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/javabc/SecureRandom.java deleted file mode 100644 index 9121f05a2..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/javabc/SecureRandom.java +++ /dev/null @@ -1,51 +0,0 @@ -package javabc; - - -/** - * An implementation of SecureRandom specifically for the light-weight API, JDK - * 1.0, and the J2ME. Random generation is based on the traditional SHA1 with - * counter. Calling setSeed will always increase the entropy of the hash. - *
- * Do not use this class without calling setSeed at least once! There - * are some example seed generators in the org.bouncycastle.prng package. - */ -public class SecureRandom extends java.util.Random { - - protected org.bouncycastle.crypto.prng.RandomGenerator generator; - - public SecureRandom() { - } - - public SecureRandom(byte[] inSeed) { - } - - protected SecureRandom(org.bouncycastle.crypto.prng.RandomGenerator generator) { - } - - public static SecureRandom getInstance(String algorithm) { - } - - public static SecureRandom getInstance(String algorithm, String provider) { - } - - public static byte[] getSeed(int numBytes) { - } - - public byte[] generateSeed(int numBytes) { - } - - public void setSeed(byte[] inSeed) { - } - - public void nextBytes(byte[] bytes) { - } - - public void setSeed(long rSeed) { - } - - public int nextInt() { - } - - protected final int next(int numBits) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/LICENSE.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/LICENSE.java deleted file mode 100644 index 767571b0d..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/LICENSE.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.bouncycastle; - - -/** - * The Bouncy Castle License - * - * Copyright (c) 2000-2012 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) - *
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software - * and associated documentation files (the "Software"), to deal in the Software without restriction, - * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, - * subject to the following conditions: - *
- * The above copyright notice and this permission notice shall be included in all copies or substantial - * portions of the Software. - *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, - * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR - * PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE - * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR - * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. - */ -public class LICENSE { - - public static String licenseText; - - public LICENSE() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1ApplicationSpecificParser.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1ApplicationSpecificParser.java deleted file mode 100644 index 4ca4499a7..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1ApplicationSpecificParser.java +++ /dev/null @@ -1,11 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public interface ASN1ApplicationSpecificParser extends ASN1Encodable, InMemoryRepresentable { - - public ASN1Encodable readObject(); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Boolean.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Boolean.java deleted file mode 100644 index f36eef1e9..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Boolean.java +++ /dev/null @@ -1,12 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public class ASN1Boolean extends DERBoolean { - - public ASN1Boolean(boolean value) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Choice.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Choice.java deleted file mode 100644 index 8d32c0dc2..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Choice.java +++ /dev/null @@ -1,17 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -/** - * Marker interface for CHOICE objects - if you implement this in a role your - * own object any attempt to tag the object implicitly will convert the tag to - * an explicit one as the encoding rules require. - *
- * If you use this interface your class should also implement the getInstance - * pattern which takes a tag object and the tagging mode used. - */ -public interface ASN1Choice { -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Encodable.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Encodable.java deleted file mode 100644 index 290edcfc6..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Encodable.java +++ /dev/null @@ -1,11 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public interface ASN1Encodable { - - public ASN1Primitive toASN1Primitive(); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1EncodableVector.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1EncodableVector.java deleted file mode 100644 index 0ce8674e6..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1EncodableVector.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public class ASN1EncodableVector { - - public ASN1EncodableVector() { - } - - public void add(ASN1Encodable obj) { - } - - public ASN1Encodable get(int i) { - } - - public int size() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Encoding.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Encoding.java deleted file mode 100644 index 663bcf813..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Encoding.java +++ /dev/null @@ -1,15 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public interface ASN1Encoding { - - public static final String DER = "DER"; - - public static final String DL = "DL"; - - public static final String BER = "BER"; -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Enumerated.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Enumerated.java deleted file mode 100644 index 26c487f33..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Enumerated.java +++ /dev/null @@ -1,15 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public class ASN1Enumerated extends DEREnumerated { - - public ASN1Enumerated(javabc.BigInteger value) { - } - - public ASN1Enumerated(int value) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Exception.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Exception.java deleted file mode 100644 index 1bef586c3..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Exception.java +++ /dev/null @@ -1,12 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public class ASN1Exception extends java.io.IOException { - - public Throwable getCause() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1GeneralizedTime.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1GeneralizedTime.java deleted file mode 100644 index bdb795f39..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1GeneralizedTime.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public class ASN1GeneralizedTime extends DERGeneralizedTime { - - public ASN1GeneralizedTime(java.util.Date date) { - } - - public ASN1GeneralizedTime(java.util.Date date, boolean includeMillis) { - } - - public ASN1GeneralizedTime(String time) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Generator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Generator.java deleted file mode 100644 index 0937fa4b1..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Generator.java +++ /dev/null @@ -1,17 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public abstract class ASN1Generator { - - protected java.io.OutputStream _out; - - public ASN1Generator(java.io.OutputStream out) { - } - - public abstract java.io.OutputStream getRawOutputStream() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1InputStream.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1InputStream.java deleted file mode 100644 index 65016d12f..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1InputStream.java +++ /dev/null @@ -1,82 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -/** - * a general purpose ASN.1 decoder - note: this class differs from the - * others in that it returns null after it has read the last object in - * the stream. If an ASN.1 NULL is encountered a DER/BER Null object is - * returned. - */ -public class ASN1InputStream extends javabc.FilterInputStream implements BERTags { - - public ASN1InputStream(java.io.InputStream is) { - } - - /** - * Create an ASN1InputStream based on the input byte array. The length of DER objects in - * the stream is automatically limited to the length of the input array. - * - * @param input array containing ASN.1 encoded data. - */ - public ASN1InputStream(byte[] input) { - } - - /** - * Create an ASN1InputStream based on the input byte array. The length of DER objects in - * the stream is automatically limited to the length of the input array. - * - * @param input array containing ASN.1 encoded data. - * @param lazyEvaluate true if parsing inside constructed objects can be delayed. - */ - public ASN1InputStream(byte[] input, boolean lazyEvaluate) { - } - - /** - * Create an ASN1InputStream where no DER object will be longer than limit. - * - * @param input stream containing ASN.1 encoded data. - * @param limit maximum size of a DER encoded object. - */ - public ASN1InputStream(java.io.InputStream input, int limit) { - } - - /** - * Create an ASN1InputStream where no DER object will be longer than limit, and constructed - * objects such as sequences will be parsed lazily. - * - * @param input stream containing ASN.1 encoded data. - * @param lazyEvaluate true if parsing inside constructed objects can be delayed. - */ - public ASN1InputStream(java.io.InputStream input, boolean lazyEvaluate) { - } - - /** - * Create an ASN1InputStream where no DER object will be longer than limit, and constructed - * objects such as sequences will be parsed lazily. - * - * @param input stream containing ASN.1 encoded data. - * @param limit maximum size of a DER encoded object. - * @param lazyEvaluate true if parsing inside constructed objects can be delayed. - */ - public ASN1InputStream(java.io.InputStream input, int limit, boolean lazyEvaluate) { - } - - protected int readLength() { - } - - protected void readFully(byte[] bytes) { - } - - /** - * build an object given its tag and the number of bytes to construct it from. - */ - protected ASN1Primitive buildObject(int tag, int tagNo, int length) { - } - - public ASN1Primitive readObject() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Integer.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Integer.java deleted file mode 100644 index 9a0ef0550..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Integer.java +++ /dev/null @@ -1,15 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public class ASN1Integer extends DERInteger { - - public ASN1Integer(javabc.BigInteger value) { - } - - public ASN1Integer(int value) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Null.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Null.java deleted file mode 100644 index db3f86617..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Null.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -/** - * A NULL object. - */ -public abstract class ASN1Null extends ASN1Primitive { - - public ASN1Null() { - } - - public static ASN1Null getInstance(Object o) { - } - - public int hashCode() { - } - - public String toString() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Object.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Object.java deleted file mode 100644 index 3677bb134..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Object.java +++ /dev/null @@ -1,50 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public abstract class ASN1Object implements ASN1Encodable { - - public ASN1Object() { - } - - /** - * Return the default BER or DER encoding for this object. - * - * @return BER/DER byte encoded object. - * @throws java.io.IOException on encoding error. - */ - public byte[] getEncoded() { - } - - /** - * Return either the default for "BER" or a DER encoding if "DER" is specified. - * - * @param encoding name of encoding to use. - * @return byte encoded object. - * @throws IOException on encoding error. - */ - public byte[] getEncoded(String encoding) { - } - - public int hashCode() { - } - - public boolean equals(Object o) { - } - - /** - * @deprecated use toASN1Primitive() - * @return the underlying primitive type. - */ - public ASN1Primitive toASN1Object() { - } - - protected static boolean hasEncodedTagValue(Object obj, int tagValue) { - } - - public abstract ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1ObjectIdentifier.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1ObjectIdentifier.java deleted file mode 100644 index 49f48baed..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1ObjectIdentifier.java +++ /dev/null @@ -1,29 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public class ASN1ObjectIdentifier extends DERObjectIdentifier { - - public ASN1ObjectIdentifier(String identifier) { - } - - /** - * Return an OID that creates a branch under the current one. - * - * @param branchID node numbers for the new branch. - * @return the OID for the new created branch. - */ - public ASN1ObjectIdentifier branch(String branchID) { - } - - /** - * Return true if this oid is an extension of the passed in branch, stem. - * @param stem the arc or branch that is a possible parent. - * @return true if the branch is on the passed in stem, false otherwise. - */ - public boolean on(ASN1ObjectIdentifier stem) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1OctetString.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1OctetString.java deleted file mode 100644 index e95b62665..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1OctetString.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public abstract class ASN1OctetString extends ASN1Primitive implements ASN1OctetStringParser { - - /** - * @param string the octets making up the octet string. - */ - public ASN1OctetString(byte[] string) { - } - - /** - * return an Octet String from a tagged object. - * - * @param obj the tagged object holding the object we want. - * @param explicit true if the object is meant to be explicitly - * tagged false otherwise. - * @exception IllegalArgumentException if the tagged object cannot - * be converted. - */ - public static ASN1OctetString getInstance(ASN1TaggedObject obj, boolean explicit) { - } - - /** - * return an Octet String from the given object. - * - * @param obj the object we want converted. - * @exception IllegalArgumentException if the object cannot be converted. - */ - public static ASN1OctetString getInstance(Object obj) { - } - - public java.io.InputStream getOctetStream() { - } - - public ASN1OctetStringParser parser() { - } - - public byte[] getOctets() { - } - - public int hashCode() { - } - - public ASN1Primitive getLoadedObject() { - } - - public String toString() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1OctetStringParser.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1OctetStringParser.java deleted file mode 100644 index 6884b7ea5..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1OctetStringParser.java +++ /dev/null @@ -1,11 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public interface ASN1OctetStringParser extends ASN1Encodable, InMemoryRepresentable { - - public java.io.InputStream getOctetStream(); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1OutputStream.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1OutputStream.java deleted file mode 100644 index c2fa5fb71..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1OutputStream.java +++ /dev/null @@ -1,27 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -/** - * Stream that produces output based on the default encoding for the passed in objects. - */ -public class ASN1OutputStream { - - public ASN1OutputStream(java.io.OutputStream os) { - } - - protected void writeNull() { - } - - public void writeObject(ASN1Encodable obj) { - } - - public void close() { - } - - public void flush() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1ParsingException.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1ParsingException.java deleted file mode 100644 index f8d5aeab3..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1ParsingException.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public class ASN1ParsingException extends IllegalStateException { - - public ASN1ParsingException(String message) { - } - - public ASN1ParsingException(String message, Throwable cause) { - } - - public Throwable getCause() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Primitive.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Primitive.java deleted file mode 100644 index 8246990aa..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Primitive.java +++ /dev/null @@ -1,28 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public abstract class ASN1Primitive extends ASN1Object { - - /** - * Create a base ASN.1 object from a byte stream. - * - * @param data the byte stream to parse. - * @return the base ASN.1 object represented by the byte stream. - * @exception IOException if there is a problem parsing the data. - */ - public static ASN1Primitive fromByteArray(byte[] data) { - } - - public final boolean equals(Object o) { - } - - public ASN1Primitive toASN1Primitive() { - } - - public abstract int hashCode() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Sequence.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Sequence.java deleted file mode 100644 index e7129d279..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Sequence.java +++ /dev/null @@ -1,95 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public abstract class ASN1Sequence extends ASN1Primitive { - - protected java.util.Vector seq; - - /** - * create an empty sequence - */ - protected ASN1Sequence() { - } - - /** - * create a sequence containing one object - */ - protected ASN1Sequence(ASN1Encodable obj) { - } - - /** - * create a sequence containing a vector of objects. - */ - protected ASN1Sequence(ASN1EncodableVector v) { - } - - /** - * create a sequence containing a vector of objects. - */ - protected ASN1Sequence(ASN1Encodable[] array) { - } - - /** - * return an ASN1Sequence from the given object. - * - * @param obj the object we want converted. - * @exception IllegalArgumentException if the object cannot be converted. - */ - public static ASN1Sequence getInstance(Object obj) { - } - - /** - * Return an ASN1 sequence from a tagged object. There is a special - * case here, if an object appears to have been explicitly tagged on - * reading but we were expecting it to be implicitly tagged in the - * normal course of events it indicates that we lost the surrounding - * sequence - so we need to add it back (this will happen if the tagged - * object is a sequence that contains other sequences). If you are - * dealing with implicitly tagged sequences you really should - * be using this method. - * - * @param obj the tagged object. - * @param explicit true if the object is meant to be explicitly tagged, - * false otherwise. - * @exception IllegalArgumentException if the tagged object cannot - * be converted. - */ - public static ASN1Sequence getInstance(ASN1TaggedObject obj, boolean explicit) { - } - - public ASN1Encodable[] toArray() { - } - - public java.util.Enumeration getObjects() { - } - - public ASN1SequenceParser parser() { - } - - /** - * return the object at the sequence position indicated by index. - * - * @param index the sequence number (starting at zero) of the object - * @return the object at the sequence position indicated by index. - */ - public ASN1Encodable getObjectAt(int index) { - } - - /** - * return the number of objects in this sequence. - * - * @return the number of objects in this sequence. - */ - public int size() { - } - - public int hashCode() { - } - - public String toString() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1SequenceParser.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1SequenceParser.java deleted file mode 100644 index cfeb1b0f5..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1SequenceParser.java +++ /dev/null @@ -1,11 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public interface ASN1SequenceParser extends ASN1Encodable, InMemoryRepresentable { - - public ASN1Encodable readObject(); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Set.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Set.java deleted file mode 100644 index 27e1314a5..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1Set.java +++ /dev/null @@ -1,93 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public abstract class ASN1Set extends ASN1Primitive { - - protected ASN1Set() { - } - - /** - * create a sequence containing one object - */ - protected ASN1Set(ASN1Encodable obj) { - } - - /** - * create a sequence containing a vector of objects. - */ - protected ASN1Set(ASN1EncodableVector v, boolean doSort) { - } - - /** - * create a sequence containing a vector of objects. - */ - protected ASN1Set(ASN1Encodable[] array, boolean doSort) { - } - - /** - * return an ASN1Set from the given object. - * - * @param obj the object we want converted. - * @exception IllegalArgumentException if the object cannot be converted. - */ - public static ASN1Set getInstance(Object obj) { - } - - /** - * Return an ASN1 set from a tagged object. There is a special - * case here, if an object appears to have been explicitly tagged on - * reading but we were expecting it to be implicitly tagged in the - * normal course of events it indicates that we lost the surrounding - * set - so we need to add it back (this will happen if the tagged - * object is a sequence that contains other sequences). If you are - * dealing with implicitly tagged sets you really should - * be using this method. - * - * @param obj the tagged object. - * @param explicit true if the object is meant to be explicitly tagged - * false otherwise. - * @exception IllegalArgumentException if the tagged object cannot - * be converted. - */ - public static ASN1Set getInstance(ASN1TaggedObject obj, boolean explicit) { - } - - public java.util.Enumeration getObjects() { - } - - /** - * return the object at the set position indicated by index. - * - * @param index the set number (starting at zero) of the object - * @return the object at the set position indicated by index. - */ - public ASN1Encodable getObjectAt(int index) { - } - - /** - * return the number of objects in this set. - * - * @return the number of objects in this set. - */ - public int size() { - } - - public ASN1Encodable[] toArray() { - } - - public ASN1SetParser parser() { - } - - public int hashCode() { - } - - protected void sort() { - } - - public String toString() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1SetParser.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1SetParser.java deleted file mode 100644 index af8de3fcc..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1SetParser.java +++ /dev/null @@ -1,11 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public interface ASN1SetParser extends ASN1Encodable, InMemoryRepresentable { - - public ASN1Encodable readObject(); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1StreamParser.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1StreamParser.java deleted file mode 100644 index 4b5d0c837..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1StreamParser.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public class ASN1StreamParser { - - public ASN1StreamParser(java.io.InputStream in) { - } - - public ASN1StreamParser(java.io.InputStream in, int limit) { - } - - public ASN1StreamParser(byte[] encoding) { - } - - public ASN1Encodable readObject() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1String.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1String.java deleted file mode 100644 index 115e55350..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1String.java +++ /dev/null @@ -1,11 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public interface ASN1String { - - public String getString(); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1TaggedObject.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1TaggedObject.java deleted file mode 100644 index 1f00b3cb3..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1TaggedObject.java +++ /dev/null @@ -1,78 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -/** - * ASN.1 TaggedObject - in ASN.1 notation this is any object preceded by - * a [n] where n is some number - these are assumed to follow the construction - * rules (as with sequences). - */ -public abstract class ASN1TaggedObject extends ASN1Primitive implements ASN1TaggedObjectParser { - - /** - * Create a tagged object with the style given by the value of explicit. - *
- * If the object implements ASN1Choice the tag style will always be changed - * to explicit in accordance with the ASN.1 encoding rules. - *
- * @param explicit true if the object is explicitly tagged. - * @param tagNo the tag number for this object. - * @param obj the tagged object. - */ - public ASN1TaggedObject(boolean explicit, int tagNo, ASN1Encodable obj) { - } - - public static ASN1TaggedObject getInstance(ASN1TaggedObject obj, boolean explicit) { - } - - public static ASN1TaggedObject getInstance(Object obj) { - } - - public int hashCode() { - } - - public int getTagNo() { - } - - /** - * return whether or not the object may be explicitly tagged. - *- * Note: if the object has been read from an input stream, the only - * time you can be sure if isExplicit is returning the true state of - * affairs is if it returns false. An implicitly tagged object may appear - * to be explicitly tagged, so you need to understand the context under - * which the reading was done as well, see getObject below. - */ - public boolean isExplicit() { - } - - public boolean isEmpty() { - } - - /** - * return whatever was following the tag. - *
- * Note: tagged objects are generally context dependent if you're
- * trying to extract a tagged object you should be going via the
- * appropriate getInstance method.
- */
- public ASN1Primitive getObject() {
- }
-
- /**
- * Return the object held in this tagged object as a parser assuming it has
- * the type of the passed in tag. If the object doesn't have a parser
- * associated with it, the base object is returned.
- */
- public ASN1Encodable getObjectParser(int tag, boolean isExplicit) {
- }
-
- public ASN1Primitive getLoadedObject() {
- }
-
- public String toString() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1TaggedObjectParser.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1TaggedObjectParser.java
deleted file mode 100644
index 25d650220..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1TaggedObjectParser.java
+++ /dev/null
@@ -1,13 +0,0 @@
-/**
- *
- * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
- */
-package org.bouncycastle.asn1;
-
-
-public interface ASN1TaggedObjectParser extends ASN1Encodable, InMemoryRepresentable {
-
- public int getTagNo();
-
- public ASN1Encodable getObjectParser(int tag, boolean isExplicit);
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1UTCTime.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1UTCTime.java
deleted file mode 100644
index 11048e85a..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/ASN1UTCTime.java
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- *
- * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
- */
-package org.bouncycastle.asn1;
-
-
-public class ASN1UTCTime extends DERUTCTime {
-
- public ASN1UTCTime(java.util.Date date) {
- }
-
- public ASN1UTCTime(String time) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERApplicationSpecific.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERApplicationSpecific.java
deleted file mode 100644
index f81244f55..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERApplicationSpecific.java
+++ /dev/null
@@ -1,12 +0,0 @@
-/**
- *
- * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
- */
-package org.bouncycastle.asn1;
-
-
-public class BERApplicationSpecific extends DERApplicationSpecific {
-
- public BERApplicationSpecific(int tagNo, ASN1EncodableVector vec) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERApplicationSpecificParser.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERApplicationSpecificParser.java
deleted file mode 100644
index 7da5f6c64..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERApplicationSpecificParser.java
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- *
- * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
- */
-package org.bouncycastle.asn1;
-
-
-public class BERApplicationSpecificParser implements ASN1ApplicationSpecificParser {
-
- public ASN1Encodable readObject() {
- }
-
- public ASN1Primitive getLoadedObject() {
- }
-
- public ASN1Primitive toASN1Primitive() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERConstructedOctetString.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERConstructedOctetString.java
deleted file mode 100644
index 75c6ec2c5..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERConstructedOctetString.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/**
- *
- * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
- */
-package org.bouncycastle.asn1;
-
-
-/**
- * @deprecated use BEROctetString
- */
-public class BERConstructedOctetString extends BEROctetString {
-
- /**
- * @param string the octets making up the octet string.
- */
- public BERConstructedOctetString(byte[] string) {
- }
-
- public BERConstructedOctetString(java.util.Vector octs) {
- }
-
- public BERConstructedOctetString(ASN1Primitive obj) {
- }
-
- public BERConstructedOctetString(ASN1Encodable obj) {
- }
-
- public byte[] getOctets() {
- }
-
- /**
- * return the DER octets that make up this string.
- */
- public java.util.Enumeration getObjects() {
- }
-
- public static BEROctetString fromSequence(ASN1Sequence seq) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERGenerator.java
deleted file mode 100644
index c8cd53809..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERGenerator.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/**
- *
- * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
- */
-package org.bouncycastle.asn1;
-
-
-public class BERGenerator extends ASN1Generator {
-
- protected BERGenerator(java.io.OutputStream out) {
- }
-
- public BERGenerator(java.io.OutputStream out, int tagNo, boolean isExplicit) {
- }
-
- public java.io.OutputStream getRawOutputStream() {
- }
-
- protected void writeBERHeader(int tag) {
- }
-
- protected void writeBERBody(java.io.InputStream contentStream) {
- }
-
- protected void writeBEREnd() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BEROctetString.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BEROctetString.java
deleted file mode 100644
index c630b441f..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BEROctetString.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- *
- * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
- */
-package org.bouncycastle.asn1;
-
-
-public class BEROctetString extends ASN1OctetString {
-
- /**
- * @param string the octets making up the octet string.
- */
- public BEROctetString(byte[] string) {
- }
-
- public BEROctetString(ASN1OctetString[] octs) {
- }
-
- public byte[] getOctets() {
- }
-
- /**
- * return the DER octets that make up this string.
- */
- public java.util.Enumeration getObjects() {
- }
-
- public void encode(ASN1OutputStream out) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BEROctetStringGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BEROctetStringGenerator.java
deleted file mode 100644
index 3b167a71e..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BEROctetStringGenerator.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- *
- * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
- */
-package org.bouncycastle.asn1;
-
-
-public class BEROctetStringGenerator extends BERGenerator {
-
- public BEROctetStringGenerator(java.io.OutputStream out) {
- }
-
- public BEROctetStringGenerator(java.io.OutputStream out, int tagNo, boolean isExplicit) {
- }
-
- public java.io.OutputStream getOctetOutputStream() {
- }
-
- public java.io.OutputStream getOctetOutputStream(byte[] buf) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BEROctetStringParser.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BEROctetStringParser.java
deleted file mode 100644
index d99c09d7a..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BEROctetStringParser.java
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- *
- * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
- */
-package org.bouncycastle.asn1;
-
-
-public class BEROctetStringParser implements ASN1OctetStringParser {
-
- public java.io.InputStream getOctetStream() {
- }
-
- public ASN1Primitive getLoadedObject() {
- }
-
- public ASN1Primitive toASN1Primitive() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BEROutputStream.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BEROutputStream.java
deleted file mode 100644
index 7af93ca99..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BEROutputStream.java
+++ /dev/null
@@ -1,15 +0,0 @@
-/**
- *
- * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
- */
-package org.bouncycastle.asn1;
-
-
-public class BEROutputStream extends DEROutputStream {
-
- public BEROutputStream(java.io.OutputStream os) {
- }
-
- public void writeObject(Object obj) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERSequence.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERSequence.java
deleted file mode 100644
index 1b108da35..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERSequence.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/**
- *
- * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
- */
-package org.bouncycastle.asn1;
-
-
-public class BERSequence extends ASN1Sequence {
-
- /**
- * create an empty sequence
- */
- public BERSequence() {
- }
-
- /**
- * create a sequence containing one object
- */
- public BERSequence(ASN1Encodable obj) {
- }
-
- /**
- * create a sequence containing a vector of objects.
- */
- public BERSequence(ASN1EncodableVector v) {
- }
-
- /**
- * create a sequence containing an array of objects.
- */
- public BERSequence(ASN1Encodable[] array) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERSequenceGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERSequenceGenerator.java
deleted file mode 100644
index 5475a219d..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERSequenceGenerator.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/**
- *
- * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
- */
-package org.bouncycastle.asn1;
-
-
-public class BERSequenceGenerator extends BERGenerator {
-
- public BERSequenceGenerator(java.io.OutputStream out) {
- }
-
- public BERSequenceGenerator(java.io.OutputStream out, int tagNo, boolean isExplicit) {
- }
-
- public void addObject(ASN1Encodable object) {
- }
-
- public void close() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERSequenceParser.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERSequenceParser.java
deleted file mode 100644
index 3f6be4f45..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERSequenceParser.java
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- *
- * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
- */
-package org.bouncycastle.asn1;
-
-
-public class BERSequenceParser implements ASN1SequenceParser {
-
- public ASN1Encodable readObject() {
- }
-
- public ASN1Primitive getLoadedObject() {
- }
-
- public ASN1Primitive toASN1Primitive() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERSet.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERSet.java
deleted file mode 100644
index 5b1464a76..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERSet.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/**
- *
- * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
- */
-package org.bouncycastle.asn1;
-
-
-public class BERSet extends ASN1Set {
-
- /**
- * create an empty sequence
- */
- public BERSet() {
- }
-
- /**
- * @param obj - a single object that makes up the set.
- */
- public BERSet(ASN1Encodable obj) {
- }
-
- /**
- * @param v - a vector of objects making up the set.
- */
- public BERSet(ASN1EncodableVector v) {
- }
-
- /**
- * create a set from an array of objects.
- */
- public BERSet(ASN1Encodable[] a) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERSetParser.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERSetParser.java
deleted file mode 100644
index 4c5d3281e..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERSetParser.java
+++ /dev/null
@@ -1,18 +0,0 @@
-/**
- *
- * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
- */
-package org.bouncycastle.asn1;
-
-
-public class BERSetParser implements ASN1SetParser {
-
- public ASN1Encodable readObject() {
- }
-
- public ASN1Primitive getLoadedObject() {
- }
-
- public ASN1Primitive toASN1Primitive() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERTaggedObject.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERTaggedObject.java
deleted file mode 100644
index 208f453f3..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERTaggedObject.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- *
- * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
- */
-package org.bouncycastle.asn1;
-
-
-/**
- * BER TaggedObject - in ASN.1 notation this is any object preceded by
- * a [n] where n is some number - these are assumed to follow the construction
- * rules (as with sequences).
- */
-public class BERTaggedObject extends ASN1TaggedObject {
-
- /**
- * @param tagNo the tag number for this object.
- * @param obj the tagged object.
- */
- public BERTaggedObject(int tagNo, ASN1Encodable obj) {
- }
-
- /**
- * @param explicit true if an explicitly tagged object.
- * @param tagNo the tag number for this object.
- * @param obj the tagged object.
- */
- public BERTaggedObject(boolean explicit, int tagNo, ASN1Encodable obj) {
- }
-
- /**
- * create an implicitly tagged object that contains a zero
- * length sequence.
- */
- public BERTaggedObject(int tagNo) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERTaggedObjectParser.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERTaggedObjectParser.java
deleted file mode 100644
index 0b0e70712..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERTaggedObjectParser.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/**
- *
- * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
- */
-package org.bouncycastle.asn1;
-
-
-public class BERTaggedObjectParser implements ASN1TaggedObjectParser {
-
- public boolean isConstructed() {
- }
-
- public int getTagNo() {
- }
-
- public ASN1Encodable getObjectParser(int tag, boolean isExplicit) {
- }
-
- public ASN1Primitive getLoadedObject() {
- }
-
- public ASN1Primitive toASN1Primitive() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERTags.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERTags.java
deleted file mode 100644
index 72d9fe08a..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/BERTags.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/**
- *
- * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
- */
-package org.bouncycastle.asn1;
-
-
-public interface BERTags {
-
- public static final int BOOLEAN = 1;
-
- public static final int INTEGER = 2;
-
- public static final int BIT_STRING = 3;
-
- public static final int OCTET_STRING = 4;
-
- public static final int NULL = 5;
-
- public static final int OBJECT_IDENTIFIER = 6;
-
- public static final int EXTERNAL = 8;
-
- public static final int ENUMERATED = 10;
-
- public static final int SEQUENCE = 16;
-
- public static final int SEQUENCE_OF = 16;
-
- public static final int SET = 17;
-
- public static final int SET_OF = 17;
-
- public static final int NUMERIC_STRING = 18;
-
- public static final int PRINTABLE_STRING = 19;
-
- public static final int T61_STRING = 20;
-
- public static final int VIDEOTEX_STRING = 21;
-
- public static final int IA5_STRING = 22;
-
- public static final int UTC_TIME = 23;
-
- public static final int GENERALIZED_TIME = 24;
-
- public static final int GRAPHIC_STRING = 25;
-
- public static final int VISIBLE_STRING = 26;
-
- public static final int GENERAL_STRING = 27;
-
- public static final int UNIVERSAL_STRING = 28;
-
- public static final int BMP_STRING = 30;
-
- public static final int UTF8_STRING = 12;
-
- public static final int CONSTRUCTED = 32;
-
- public static final int APPLICATION = 64;
-
- public static final int TAGGED = 128;
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERApplicationSpecific.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERApplicationSpecific.java
deleted file mode 100644
index 512b5dd03..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERApplicationSpecific.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/**
- *
- * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
- */
-package org.bouncycastle.asn1;
-
-
-/**
- * Base class for an application specific object
- */
-public class DERApplicationSpecific extends ASN1Primitive {
-
- public DERApplicationSpecific(int tag, byte[] octets) {
- }
-
- public DERApplicationSpecific(int tag, ASN1Encodable object) {
- }
-
- public DERApplicationSpecific(boolean explicit, int tag, ASN1Encodable object) {
- }
-
- public DERApplicationSpecific(int tagNo, ASN1EncodableVector vec) {
- }
-
- public static DERApplicationSpecific getInstance(Object obj) {
- }
-
- public boolean isConstructed() {
- }
-
- public byte[] getContents() {
- }
-
- public int getApplicationTag() {
- }
-
- /**
- * Return the enclosed object assuming explicit tagging.
- *
- * @return the resulting object
- * @throws IOException if reconstruction fails.
- */
- public ASN1Primitive getObject() {
- }
-
- /**
- * Return the enclosed object assuming implicit tagging.
- *
- * @param derTagNo the type tag that should be applied to the object's contents.
- * @return the resulting object
- * @throws IOException if reconstruction fails.
- */
- public ASN1Primitive getObject(int derTagNo) {
- }
-
- public int hashCode() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERBMPString.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERBMPString.java
deleted file mode 100644
index eac338d14..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERBMPString.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
- *
- * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
- */
-package org.bouncycastle.asn1;
-
-
-/**
- * DER BMPString object.
- */
-public class DERBMPString extends ASN1Primitive implements ASN1String {
-
- /**
- * basic constructor
- */
- public DERBMPString(String string) {
- }
-
- /**
- * return a BMP String from the given object.
- *
- * @param obj the object we want converted.
- * @exception IllegalArgumentException if the object cannot be converted.
- */
- public static DERBMPString getInstance(Object obj) {
- }
-
- /**
- * return a BMP String from a tagged object.
- *
- * @param obj the tagged object holding the object we want
- * @param explicit true if the object is meant to be explicitly
- * tagged false otherwise.
- * @exception IllegalArgumentException if the tagged object cannot
- * be converted.
- */
- public static DERBMPString getInstance(ASN1TaggedObject obj, boolean explicit) {
- }
-
- public String getString() {
- }
-
- public String toString() {
- }
-
- public int hashCode() {
- }
-
- protected boolean asn1Equals(ASN1Primitive o) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERBitString.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERBitString.java
deleted file mode 100644
index 2a22c8beb..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERBitString.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/**
- *
- * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
- */
-package org.bouncycastle.asn1;
-
-
-public class DERBitString extends ASN1Primitive implements ASN1String {
-
- protected byte[] data;
-
- protected int padBits;
-
- protected DERBitString(byte data, int padBits) {
- }
-
- /**
- * @param data the octets making up the bit string.
- * @param padBits the number of extra bits at the end of the string.
- */
- public DERBitString(byte[] data, int padBits) {
- }
-
- public DERBitString(byte[] data) {
- }
-
- public DERBitString(ASN1Encodable obj) {
- }
-
- /**
- * return the correct number of pad bits for a bit string defined in
- * a 32 bit constant
- */
- protected static int getPadBits(int bitString) {
- }
-
- /**
- * return the correct number of bytes for a bit string defined in
- * a 32 bit constant
- */
- protected static byte[] getBytes(int bitString) {
- }
-
- /**
- * return a Bit String from the passed in object
- *
- * @exception IllegalArgumentException if the object cannot be converted.
- */
- public static DERBitString getInstance(Object obj) {
- }
-
- /**
- * return a Bit String from a tagged object.
- *
- * @param obj the tagged object holding the object we want
- * @param explicit true if the object is meant to be explicitly
- * tagged false otherwise.
- * @exception IllegalArgumentException if the tagged object cannot
- * be converted.
- */
- public static DERBitString getInstance(ASN1TaggedObject obj, boolean explicit) {
- }
-
- public byte[] getBytes() {
- }
-
- public int getPadBits() {
- }
-
- /**
- * @return the value of the bit string as an int (truncating if necessary)
- */
- public int intValue() {
- }
-
- public int hashCode() {
- }
-
- protected boolean asn1Equals(ASN1Primitive o) {
- }
-
- public String getString() {
- }
-
- public String toString() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERBoolean.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERBoolean.java
deleted file mode 100644
index 4777814c2..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERBoolean.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- *
- * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
- */
-package org.bouncycastle.asn1;
-
-
-public class DERBoolean extends ASN1Primitive {
-
- public static final ASN1Boolean FALSE;
-
- public static final ASN1Boolean TRUE;
-
- public DERBoolean(boolean value) {
- }
-
- /**
- * return a boolean from the passed in object.
- *
- * @exception IllegalArgumentException if the object cannot be converted.
- */
- public static ASN1Boolean getInstance(Object obj) {
- }
-
- /**
- * return a DERBoolean from the passed in boolean.
- */
- public static ASN1Boolean getInstance(boolean value) {
- }
-
- /**
- * return a Boolean from a tagged object.
- *
- * @param obj the tagged object holding the object we want
- * @param explicit true if the object is meant to be explicitly
- * tagged false otherwise.
- * @exception IllegalArgumentException if the tagged object cannot
- * be converted.
- */
- public static DERBoolean getInstance(ASN1TaggedObject obj, boolean explicit) {
- }
-
- public boolean isTrue() {
- }
-
- protected boolean asn1Equals(ASN1Primitive o) {
- }
-
- public int hashCode() {
- }
-
- public String toString() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DEREncodableVector.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DEREncodableVector.java
deleted file mode 100644
index 8c07417b1..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DEREncodableVector.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/**
- *
- * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
- */
-package org.bouncycastle.asn1;
-
-
-/**
- * a general class for building up a vector of DER encodable objects -
- * this will eventually be superceded by ASN1EncodableVector so you should
- * use that class in preference.
- */
-public class DEREncodableVector extends ASN1EncodableVector {
-
- /**
- * @deprecated use ASN1EncodableVector instead.
- */
- public DEREncodableVector() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DEREnumerated.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DEREnumerated.java
deleted file mode 100644
index 36f53d5d7..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DEREnumerated.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/**
- *
- * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
- */
-package org.bouncycastle.asn1;
-
-
-public class DEREnumerated extends ASN1Primitive {
-
- public DEREnumerated(int value) {
- }
-
- public DEREnumerated(javabc.BigInteger value) {
- }
-
- public DEREnumerated(byte[] bytes) {
- }
-
- /**
- * return an integer from the passed in object
- *
- * @exception IllegalArgumentException if the object cannot be converted.
- */
- public static ASN1Enumerated getInstance(Object obj) {
- }
-
- /**
- * return an Enumerated from a tagged object.
- *
- * @param obj the tagged object holding the object we want
- * @param explicit true if the object is meant to be explicitly
- * tagged false otherwise.
- * @exception IllegalArgumentException if the tagged object cannot
- * be converted.
- */
- public static DEREnumerated getInstance(ASN1TaggedObject obj, boolean explicit) {
- }
-
- public javabc.BigInteger getValue() {
- }
-
- public int hashCode() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERExternal.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERExternal.java
deleted file mode 100644
index f841c524d..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERExternal.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/**
- *
- * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding.
- */
-package org.bouncycastle.asn1;
-
-
-/**
- * Class representing the DER-type External
- */
-public class DERExternal extends ASN1Primitive {
-
- public DERExternal(ASN1EncodableVector vector) {
- }
-
- /**
- * Creates a new instance of DERExternal
- * See X.690 for more informations about the meaning of these parameters
- * @param directReference The direct reference or null
if not set.
- * @param indirectReference The indirect reference or null
if not set.
- * @param dataValueDescriptor The data value descriptor or null
if not set.
- * @param externalData The external data in its encoded form.
- */
- public DERExternal(ASN1ObjectIdentifier directReference, ASN1Integer indirectReference, ASN1Primitive dataValueDescriptor, DERTaggedObject externalData) {
- }
-
- /**
- * Creates a new instance of DERExternal.
- * See X.690 for more informations about the meaning of these parameters
- * @param directReference The direct reference or null
if not set.
- * @param indirectReference The indirect reference or null
if not set.
- * @param dataValueDescriptor The data value descriptor or null
if not set.
- * @param encoding The encoding to be used for the external data
- * @param externalData The external data
- */
- public DERExternal(ASN1ObjectIdentifier directReference, ASN1Integer indirectReference, ASN1Primitive dataValueDescriptor, int encoding, ASN1Primitive externalData) {
- }
-
- public int hashCode() {
- }
-
- /**
- * Returns the data value descriptor
- * @return The descriptor
- */
- public ASN1Primitive getDataValueDescriptor() {
- }
-
- /**
- * Returns the direct reference of the external element
- * @return The reference
- */
- public ASN1ObjectIdentifier getDirectReference() {
- }
-
- /**
- * Returns the encoding of the content. Valid values are
- *
0
single-ASN1-type1
OCTET STRING2
BIT STRING- * Normally in a certificate we would expect "Z" rather than "GMT", - * however adding the "GMT" means we can just use: - *
- * dateF = new SimpleDateFormat("yyyyMMddHHmmssz"); - *- * To read in the time and get a date which is compatible with our local - * time zone. - */ - public String getTime() { - } - - public java.util.Date getDate() { - } - - public int hashCode() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERGenerator.java deleted file mode 100644 index ad26e359f..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERGenerator.java +++ /dev/null @@ -1,15 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public abstract class DERGenerator extends ASN1Generator { - - protected DERGenerator(java.io.OutputStream out) { - } - - public DERGenerator(java.io.OutputStream out, int tagNo, boolean isExplicit) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERIA5String.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERIA5String.java deleted file mode 100644 index fb298d131..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERIA5String.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -/** - * DER IA5String object - this is an ascii string. - */ -public class DERIA5String extends ASN1Primitive implements ASN1String { - - /** - * basic constructor - without validation. - */ - public DERIA5String(String string) { - } - - /** - * Constructor with optional validation. - * - * @param string the base string to wrap. - * @param validate whether or not to check the string. - * @throws IllegalArgumentException if validate is true and the string - * contains characters that should not be in an IA5String. - */ - public DERIA5String(String string, boolean validate) { - } - - /** - * return a IA5 string from the passed in object - * - * @exception IllegalArgumentException if the object cannot be converted. - */ - public static DERIA5String getInstance(Object obj) { - } - - /** - * return an IA5 String from a tagged object. - * - * @param obj the tagged object holding the object we want - * @param explicit true if the object is meant to be explicitly - * tagged false otherwise. - * @exception IllegalArgumentException if the tagged object cannot - * be converted. - */ - public static DERIA5String getInstance(ASN1TaggedObject obj, boolean explicit) { - } - - public String getString() { - } - - public String toString() { - } - - public byte[] getOctets() { - } - - public int hashCode() { - } - - /** - * return true if the passed in String can be represented without - * loss as an IA5String, false otherwise. - * - * @return true if in printable set, false otherwise. - */ - public static boolean isIA5String(String str) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERInteger.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERInteger.java deleted file mode 100644 index 4841e38fa..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERInteger.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public class DERInteger extends ASN1Primitive { - - public DERInteger(int value) { - } - - public DERInteger(javabc.BigInteger value) { - } - - public DERInteger(byte[] bytes) { - } - - /** - * return an integer from the passed in object - * - * @exception IllegalArgumentException if the object cannot be converted. - */ - public static ASN1Integer getInstance(Object obj) { - } - - /** - * return an Integer from a tagged object. - * - * @param obj the tagged object holding the object we want - * @param explicit true if the object is meant to be explicitly - * tagged false otherwise. - * @exception IllegalArgumentException if the tagged object cannot - * be converted. - */ - public static ASN1Integer getInstance(ASN1TaggedObject obj, boolean explicit) { - } - - public javabc.BigInteger getValue() { - } - - /** - * in some cases positive values get crammed into a space, - * that's not quite big enough... - */ - public javabc.BigInteger getPositiveValue() { - } - - public int hashCode() { - } - - public String toString() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERNull.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERNull.java deleted file mode 100644 index 3f81b2095..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERNull.java +++ /dev/null @@ -1,17 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -/** - * A NULL object. - */ -public class DERNull extends ASN1Null { - - public static final DERNull INSTANCE; - - public DERNull() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERNumericString.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERNumericString.java deleted file mode 100644 index 681bcc577..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERNumericString.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -/** - * DER NumericString object - this is an ascii string of characters {0,1,2,3,4,5,6,7,8,9, }. - */ -public class DERNumericString extends ASN1Primitive implements ASN1String { - - /** - * basic constructor - without validation.. - */ - public DERNumericString(String string) { - } - - /** - * Constructor with optional validation. - * - * @param string the base string to wrap. - * @param validate whether or not to check the string. - * @throws IllegalArgumentException if validate is true and the string - * contains characters that should not be in a NumericString. - */ - public DERNumericString(String string, boolean validate) { - } - - /** - * return a Numeric string from the passed in object - * - * @exception IllegalArgumentException if the object cannot be converted. - */ - public static DERNumericString getInstance(Object obj) { - } - - /** - * return an Numeric String from a tagged object. - * - * @param obj the tagged object holding the object we want - * @param explicit true if the object is meant to be explicitly - * tagged false otherwise. - * @exception IllegalArgumentException if the tagged object cannot - * be converted. - */ - public static DERNumericString getInstance(ASN1TaggedObject obj, boolean explicit) { - } - - public String getString() { - } - - public String toString() { - } - - public byte[] getOctets() { - } - - public int hashCode() { - } - - /** - * Return true if the string can be represented as a NumericString ('0'..'9', ' ') - * - * @param str string to validate. - * @return true if numeric, fale otherwise. - */ - public static boolean isNumericString(String str) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERObjectIdentifier.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERObjectIdentifier.java deleted file mode 100644 index 5f8fd03f1..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERObjectIdentifier.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public class DERObjectIdentifier extends ASN1Primitive { - - public DERObjectIdentifier(String identifier) { - } - - /** - * return an OID from the passed in object - * - * @exception IllegalArgumentException if the object cannot be converted. - */ - public static ASN1ObjectIdentifier getInstance(Object obj) { - } - - /** - * return an Object Identifier from a tagged object. - * - * @param obj the tagged object holding the object we want - * @param explicit true if the object is meant to be explicitly - * tagged false otherwise. - * @exception IllegalArgumentException if the tagged object cannot - * be converted. - */ - public static ASN1ObjectIdentifier getInstance(ASN1TaggedObject obj, boolean explicit) { - } - - public String getId() { - } - - protected byte[] getBody() { - } - - public int hashCode() { - } - - public String toString() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DEROctetString.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DEROctetString.java deleted file mode 100644 index 7ab87617f..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DEROctetString.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public class DEROctetString extends ASN1OctetString { - - /** - * @param string the octets making up the octet string. - */ - public DEROctetString(byte[] string) { - } - - public DEROctetString(ASN1Encodable obj) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DEROctetStringParser.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DEROctetStringParser.java deleted file mode 100644 index d5f145d75..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DEROctetStringParser.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public class DEROctetStringParser implements ASN1OctetStringParser { - - public java.io.InputStream getOctetStream() { - } - - public ASN1Primitive getLoadedObject() { - } - - public ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DEROutputStream.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DEROutputStream.java deleted file mode 100644 index ba7bdaf93..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DEROutputStream.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -/** - * Stream that outputs encoding based on distinguished encoding rules. - */ -public class DEROutputStream extends ASN1OutputStream { - - public DEROutputStream(java.io.OutputStream os) { - } - - public void writeObject(ASN1Encodable obj) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERPrintableString.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERPrintableString.java deleted file mode 100644 index a2e39a02b..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERPrintableString.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -/** - * DER PrintableString object. - */ -public class DERPrintableString extends ASN1Primitive implements ASN1String { - - /** - * basic constructor - this does not validate the string - */ - public DERPrintableString(String string) { - } - - /** - * Constructor with optional validation. - * - * @param string the base string to wrap. - * @param validate whether or not to check the string. - * @throws IllegalArgumentException if validate is true and the string - * contains characters that should not be in a PrintableString. - */ - public DERPrintableString(String string, boolean validate) { - } - - /** - * return a printable string from the passed in object. - * - * @exception IllegalArgumentException if the object cannot be converted. - */ - public static DERPrintableString getInstance(Object obj) { - } - - /** - * return a Printable String from a tagged object. - * - * @param obj the tagged object holding the object we want - * @param explicit true if the object is meant to be explicitly - * tagged false otherwise. - * @exception IllegalArgumentException if the tagged object cannot - * be converted. - */ - public static DERPrintableString getInstance(ASN1TaggedObject obj, boolean explicit) { - } - - public String getString() { - } - - public byte[] getOctets() { - } - - public int hashCode() { - } - - public String toString() { - } - - /** - * return true if the passed in String can be represented without - * loss as a PrintableString, false otherwise. - * - * @return true if in printable set, false otherwise. - */ - public static boolean isPrintableString(String str) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERSequence.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERSequence.java deleted file mode 100644 index c85eb870a..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERSequence.java +++ /dev/null @@ -1,33 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public class DERSequence extends ASN1Sequence { - - /** - * create an empty sequence - */ - public DERSequence() { - } - - /** - * create a sequence containing one object - */ - public DERSequence(ASN1Encodable obj) { - } - - /** - * create a sequence containing a vector of objects. - */ - public DERSequence(ASN1EncodableVector v) { - } - - /** - * create a sequence containing an array of objects. - */ - public DERSequence(ASN1Encodable[] array) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERSequenceGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERSequenceGenerator.java deleted file mode 100644 index 5a586ef01..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERSequenceGenerator.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public class DERSequenceGenerator extends DERGenerator { - - public DERSequenceGenerator(java.io.OutputStream out) { - } - - public DERSequenceGenerator(java.io.OutputStream out, int tagNo, boolean isExplicit) { - } - - public void addObject(ASN1Encodable object) { - } - - public java.io.OutputStream getRawOutputStream() { - } - - public void close() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERSequenceParser.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERSequenceParser.java deleted file mode 100644 index 7f11ec1d9..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERSequenceParser.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public class DERSequenceParser implements ASN1SequenceParser { - - public ASN1Encodable readObject() { - } - - public ASN1Primitive getLoadedObject() { - } - - public ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERSet.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERSet.java deleted file mode 100644 index 00c92b27b..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERSet.java +++ /dev/null @@ -1,36 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -/** - * A DER encoded set object - */ -public class DERSet extends ASN1Set { - - /** - * create an empty set - */ - public DERSet() { - } - - /** - * @param obj - a single object that makes up the set. - */ - public DERSet(ASN1Encodable obj) { - } - - /** - * @param v - a vector of objects making up the set. - */ - public DERSet(ASN1EncodableVector v) { - } - - /** - * create a set from an array of objects. - */ - public DERSet(ASN1Encodable[] a) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERSetParser.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERSetParser.java deleted file mode 100644 index 05dae1ee0..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERSetParser.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public class DERSetParser implements ASN1SetParser { - - public ASN1Encodable readObject() { - } - - public ASN1Primitive getLoadedObject() { - } - - public ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERT61String.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERT61String.java deleted file mode 100644 index e92e7e0ec..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERT61String.java +++ /dev/null @@ -1,50 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -/** - * DER T61String (also the teletex string) - */ -public class DERT61String extends ASN1Primitive implements ASN1String { - - /** - * basic constructor - with string. - */ - public DERT61String(String string) { - } - - /** - * return a T61 string from the passed in object. - * - * @exception IllegalArgumentException if the object cannot be converted. - */ - public static DERT61String getInstance(Object obj) { - } - - /** - * return an T61 String from a tagged object. - * - * @param obj the tagged object holding the object we want - * @param explicit true if the object is meant to be explicitly - * tagged false otherwise. - * @exception IllegalArgumentException if the tagged object cannot - * be converted. - */ - public static DERT61String getInstance(ASN1TaggedObject obj, boolean explicit) { - } - - public String getString() { - } - - public String toString() { - } - - public byte[] getOctets() { - } - - public int hashCode() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERTaggedObject.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERTaggedObject.java deleted file mode 100644 index f665f99dd..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERTaggedObject.java +++ /dev/null @@ -1,25 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -/** - * DER TaggedObject - in ASN.1 notation this is any object preceded by - * a [n] where n is some number - these are assumed to follow the construction - * rules (as with sequences). - */ -public class DERTaggedObject extends ASN1TaggedObject { - - /** - * @param explicit true if an explicitly tagged object. - * @param tagNo the tag number for this object. - * @param obj the tagged object. - */ - public DERTaggedObject(boolean explicit, int tagNo, ASN1Encodable obj) { - } - - public DERTaggedObject(int tagNo, ASN1Encodable encodable) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERTags.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERTags.java deleted file mode 100644 index 94d1455f9..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERTags.java +++ /dev/null @@ -1,12 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -/** - * @deprecated use BERTags - */ -public interface DERTags extends BERTags { -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERUTCTime.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERUTCTime.java deleted file mode 100644 index 1d3059dbf..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERUTCTime.java +++ /dev/null @@ -1,108 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -/** - * UTC time object. - */ -public class DERUTCTime extends ASN1Primitive { - - /** - * The correct format for this is YYMMDDHHMMSSZ (it used to be that seconds were - * never encoded. When you're creating one of these objects from scratch, that's - * what you want to use, otherwise we'll try to deal with whatever gets read from - * the input stream... (this is why the input format is different from the getTime() - * method output). - *
- * - * @param time the time string. - */ - public DERUTCTime(String time) { - } - - /** - * base constructor from a java.util.date object - */ - public DERUTCTime(java.util.Date time) { - } - - /** - * return an UTC Time from the passed in object. - * - * @exception IllegalArgumentException if the object cannot be converted. - */ - public static ASN1UTCTime getInstance(Object obj) { - } - - /** - * return an UTC Time from a tagged object. - * - * @param obj the tagged object holding the object we want - * @param explicit true if the object is meant to be explicitly - * tagged false otherwise. - * @exception IllegalArgumentException if the tagged object cannot - * be converted. - */ - public static ASN1UTCTime getInstance(ASN1TaggedObject obj, boolean explicit) { - } - - /** - * return the time as a date based on whatever a 2 digit year will return. For - * standardised processing use getAdjustedDate(). - * - * @return the resulting date - */ - public java.util.Date getDate() { - } - - /** - * return the time as an adjusted date - * in the range of 1950 - 2049. - * - * @return a date in the range of 1950 to 2049. - */ - public java.util.Date getAdjustedDate() { - } - - /** - * return the time - always in the form of - * YYMMDDhhmmssGMT(+hh:mm|-hh:mm). - *
- * Normally in a certificate we would expect "Z" rather than "GMT", - * however adding the "GMT" means we can just use: - *
- * dateF = new SimpleDateFormat("yyMMddHHmmssz"); - *- * To read in the time and get a date which is compatible with our local - * time zone. - *
- * Note: In some cases, due to the local date processing, this - * may lead to unexpected results. If you want to stick the normal - * convention of 1950 to 2049 use the getAdjustedTime() method. - */ - public String getTime() { - } - - /** - * return a time string as an adjusted date with a 4 digit year. This goes - * in the range of 1950 - 2049. - */ - public String getAdjustedTime() { - } - - /** - * Return the time. - * @return The time string as it appeared in the encoded object. - */ - public String getTimeString() { - } - - public int hashCode() { - } - - public String toString() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERUTF8String.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERUTF8String.java deleted file mode 100644 index c33c8fef7..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERUTF8String.java +++ /dev/null @@ -1,50 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -/** - * DER UTF8String object. - */ -public class DERUTF8String extends ASN1Primitive implements ASN1String { - - /** - * basic constructor - */ - public DERUTF8String(String string) { - } - - /** - * return an UTF8 string from the passed in object. - * - * @exception IllegalArgumentException - * if the object cannot be converted. - */ - public static DERUTF8String getInstance(Object obj) { - } - - /** - * return an UTF8 String from a tagged object. - * - * @param obj - * the tagged object holding the object we want - * @param explicit - * true if the object is meant to be explicitly tagged false - * otherwise. - * @exception IllegalArgumentException - * if the tagged object cannot be converted. - */ - public static DERUTF8String getInstance(ASN1TaggedObject obj, boolean explicit) { - } - - public String getString() { - } - - public String toString() { - } - - public int hashCode() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERUniversalString.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERUniversalString.java deleted file mode 100644 index 817f0681f..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERUniversalString.java +++ /dev/null @@ -1,50 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -/** - * DER UniversalString object. - */ -public class DERUniversalString extends ASN1Primitive implements ASN1String { - - /** - * basic constructor - byte encoded string. - */ - public DERUniversalString(byte[] string) { - } - - /** - * return a Universal String from the passed in object. - * - * @exception IllegalArgumentException if the object cannot be converted. - */ - public static DERUniversalString getInstance(Object obj) { - } - - /** - * return a Universal String from a tagged object. - * - * @param obj the tagged object holding the object we want - * @param explicit true if the object is meant to be explicitly - * tagged false otherwise. - * @exception IllegalArgumentException if the tagged object cannot - * be converted. - */ - public static DERUniversalString getInstance(ASN1TaggedObject obj, boolean explicit) { - } - - public String getString() { - } - - public String toString() { - } - - public byte[] getOctets() { - } - - public int hashCode() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERVisibleString.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERVisibleString.java deleted file mode 100644 index aa55b4585..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DERVisibleString.java +++ /dev/null @@ -1,50 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -/** - * DER VisibleString object. - */ -public class DERVisibleString extends ASN1Primitive implements ASN1String { - - /** - * basic constructor - */ - public DERVisibleString(String string) { - } - - /** - * return a Visible String from the passed in object. - * - * @exception IllegalArgumentException if the object cannot be converted. - */ - public static DERVisibleString getInstance(Object obj) { - } - - /** - * return a Visible String from a tagged object. - * - * @param obj the tagged object holding the object we want - * @param explicit true if the object is meant to be explicitly - * tagged false otherwise. - * @exception IllegalArgumentException if the tagged object cannot - * be converted. - */ - public static DERVisibleString getInstance(ASN1TaggedObject obj, boolean explicit) { - } - - public String getString() { - } - - public String toString() { - } - - public byte[] getOctets() { - } - - public int hashCode() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DLOutputStream.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DLOutputStream.java deleted file mode 100644 index 157153c4f..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DLOutputStream.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -/** - * Stream that outputs encoding based on definite length. - */ -public class DLOutputStream extends ASN1OutputStream { - - public DLOutputStream(java.io.OutputStream os) { - } - - public void writeObject(ASN1Encodable obj) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DLSequence.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DLSequence.java deleted file mode 100644 index 081888728..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DLSequence.java +++ /dev/null @@ -1,33 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public class DLSequence extends ASN1Sequence { - - /** - * create an empty sequence - */ - public DLSequence() { - } - - /** - * create a sequence containing one object - */ - public DLSequence(ASN1Encodable obj) { - } - - /** - * create a sequence containing a vector of objects. - */ - public DLSequence(ASN1EncodableVector v) { - } - - /** - * create a sequence containing an array of objects. - */ - public DLSequence(ASN1Encodable[] array) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DLSet.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DLSet.java deleted file mode 100644 index 3733ed189..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DLSet.java +++ /dev/null @@ -1,36 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -/** - * A DER encoded set object - */ -public class DLSet extends ASN1Set { - - /** - * create an empty set - */ - public DLSet() { - } - - /** - * @param obj - a single object that makes up the set. - */ - public DLSet(ASN1Encodable obj) { - } - - /** - * @param v - a vector of objects making up the set. - */ - public DLSet(ASN1EncodableVector v) { - } - - /** - * create a set from an array of objects. - */ - public DLSet(ASN1Encodable[] a) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DLTaggedObject.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DLTaggedObject.java deleted file mode 100644 index 875dee8f2..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/DLTaggedObject.java +++ /dev/null @@ -1,22 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -/** - * Definite Length TaggedObject - in ASN.1 notation this is any object preceded by - * a [n] where n is some number - these are assumed to follow the construction - * rules (as with sequences). - */ -public class DLTaggedObject extends ASN1TaggedObject { - - /** - * @param explicit true if an explicitly tagged object. - * @param tagNo the tag number for this object. - * @param obj the tagged object. - */ - public DLTaggedObject(boolean explicit, int tagNo, ASN1Encodable obj) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/InMemoryRepresentable.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/InMemoryRepresentable.java deleted file mode 100644 index acdd356d1..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/InMemoryRepresentable.java +++ /dev/null @@ -1,11 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -public interface InMemoryRepresentable { - - public ASN1Primitive getLoadedObject(); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/OIDTokenizer.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/OIDTokenizer.java deleted file mode 100644 index 6125990fc..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/OIDTokenizer.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * - * A library for parsing and writing ASN.1 objects. Support is provided for DER and BER encoding. - */ -package org.bouncycastle.asn1; - - -/** - * class for breaking up an OID into it's component tokens, ala - * java.util.StringTokenizer. We need this class as some of the - * lightweight Java environment don't support classes like - * StringTokenizer. - */ -public class OIDTokenizer { - - public OIDTokenizer(String oid) { - } - - public boolean hasMoreTokens() { - } - - public String nextToken() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/oiw/ElGamalParameter.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/oiw/ElGamalParameter.java deleted file mode 100644 index 49c5560bf..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/oiw/ElGamalParameter.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * - * Objects and OID for the support of ISO OIW. - */ -package org.bouncycastle.asn1.oiw; - - -public class ElGamalParameter extends org.bouncycastle.asn1.ASN1Object { - - public ElGamalParameter(javabc.BigInteger p, javabc.BigInteger g) { - } - - public ElGamalParameter(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public javabc.BigInteger getP() { - } - - public javabc.BigInteger getG() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/oiw/OIWObjectIdentifiers.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/oiw/OIWObjectIdentifiers.java deleted file mode 100644 index de3c80d80..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/oiw/OIWObjectIdentifiers.java +++ /dev/null @@ -1,33 +0,0 @@ -/** - * - * Objects and OID for the support of ISO OIW. - */ -package org.bouncycastle.asn1.oiw; - - -public interface OIWObjectIdentifiers { - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier md4WithRSA; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier md5WithRSA; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier md4WithRSAEncryption; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier desECB; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier desCBC; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier desOFB; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier desCFB; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier desEDE; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier idSHA1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier dsaWithSHA1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier sha1WithRSA; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier elGamalAlgorithm; -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/Attribute.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/Attribute.java deleted file mode 100644 index d3cd0a325..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/Attribute.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -public class Attribute extends org.bouncycastle.asn1.ASN1Object { - - public Attribute(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public Attribute(org.bouncycastle.asn1.ASN1ObjectIdentifier attrType, org.bouncycastle.asn1.ASN1Set attrValues) { - } - - /** - * return an Attribute object from the given object. - * - * @param o the object we want converted. - * @exception IllegalArgumentException if the object cannot be converted. - */ - public static Attribute getInstance(Object o) { - } - - public org.bouncycastle.asn1.ASN1ObjectIdentifier getAttrType() { - } - - public org.bouncycastle.asn1.ASN1Set getAttrValues() { - } - - public org.bouncycastle.asn1.ASN1Encodable[] getAttributeValues() { - } - - /** - * - * Produce an object suitable for an ASN1OutputStream. - *
- * Attribute ::= SEQUENCE { - * attrType OBJECT IDENTIFIER, - * attrValues SET OF AttributeValue - * } - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/AuthenticatedSafe.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/AuthenticatedSafe.java deleted file mode 100644 index c440c96d2..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/AuthenticatedSafe.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -public class AuthenticatedSafe extends org.bouncycastle.asn1.ASN1Object { - - public AuthenticatedSafe(ContentInfo[] info) { - } - - public static AuthenticatedSafe getInstance(Object o) { - } - - public ContentInfo[] getContentInfo() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/CRLBag.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/CRLBag.java deleted file mode 100644 index f570cb718..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/CRLBag.java +++ /dev/null @@ -1,40 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -public class CRLBag extends org.bouncycastle.asn1.ASN1Object { - - public CRLBag(org.bouncycastle.asn1.ASN1ObjectIdentifier crlId, org.bouncycastle.asn1.ASN1Encodable crlValue) { - } - - public static CRLBag getInstance(Object o) { - } - - public org.bouncycastle.asn1.ASN1ObjectIdentifier getcrlId() { - } - - public org.bouncycastle.asn1.ASN1Encodable getCRLValue() { - } - - /** - *
- * CRLBag ::= SEQUENCE { - * crlId BAG-TYPE.&id ({CRLTypes}), - * crlValue [0] EXPLICIT BAG-TYPE.&Type ({CRLTypes}{@crlId}) - * } - * - * x509CRL BAG-TYPE ::= {OCTET STRING IDENTIFIED BY {certTypes 1} - * -- DER-encoded X.509 CRL stored in OCTET STRING - * - * CRLTypes BAG-TYPE ::= { - * x509CRL, - * ... -- For future extensions - * } - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/CertBag.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/CertBag.java deleted file mode 100644 index 2420da5fd..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/CertBag.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -public class CertBag extends org.bouncycastle.asn1.ASN1Object { - - public CertBag(org.bouncycastle.asn1.ASN1ObjectIdentifier certId, org.bouncycastle.asn1.ASN1Encodable certValue) { - } - - public static CertBag getInstance(Object o) { - } - - public org.bouncycastle.asn1.ASN1ObjectIdentifier getCertId() { - } - - public org.bouncycastle.asn1.ASN1Encodable getCertValue() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/CertificationRequest.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/CertificationRequest.java deleted file mode 100644 index 1c4e7ff88..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/CertificationRequest.java +++ /dev/null @@ -1,49 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -/** - * PKCS10 Certification request object. - *
- * CertificationRequest ::= SEQUENCE { - * certificationRequestInfo CertificationRequestInfo, - * signatureAlgorithm AlgorithmIdentifier{{ SignatureAlgorithms }}, - * signature BIT STRING - * } - *- */ -public class CertificationRequest extends org.bouncycastle.asn1.ASN1Object { - - protected CertificationRequestInfo reqInfo; - - protected org.bouncycastle.asn1.x509.AlgorithmIdentifier sigAlgId; - - protected org.bouncycastle.asn1.DERBitString sigBits; - - protected CertificationRequest() { - } - - public CertificationRequest(CertificationRequestInfo requestInfo, org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithm, org.bouncycastle.asn1.DERBitString signature) { - } - - public CertificationRequest(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public static CertificationRequest getInstance(Object o) { - } - - public CertificationRequestInfo getCertificationRequestInfo() { - } - - public org.bouncycastle.asn1.x509.AlgorithmIdentifier getSignatureAlgorithm() { - } - - public org.bouncycastle.asn1.DERBitString getSignature() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/CertificationRequestInfo.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/CertificationRequestInfo.java deleted file mode 100644 index d5e687b56..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/CertificationRequestInfo.java +++ /dev/null @@ -1,57 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -/** - * PKCS10 CertificationRequestInfo object. - *
- * CertificationRequestInfo ::= SEQUENCE { - * version INTEGER { v1(0) } (v1,...), - * subject Name, - * subjectPKInfo SubjectPublicKeyInfo{{ PKInfoAlgorithms }}, - * attributes [0] Attributes{{ CRIAttributes }} - * } - * - * Attributes { ATTRIBUTE:IOSet } ::= SET OF Attribute{{ IOSet }} - * - * Attribute { ATTRIBUTE:IOSet } ::= SEQUENCE { - * type ATTRIBUTE.&id({IOSet}), - * values SET SIZE(1..MAX) OF ATTRIBUTE.&Type({IOSet}{\@type}) - * } - *- */ -public class CertificationRequestInfo extends org.bouncycastle.asn1.ASN1Object { - - public CertificationRequestInfo(org.bouncycastle.asn1.x500.X500Name subject, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo pkInfo, org.bouncycastle.asn1.ASN1Set attributes) { - } - - /** - * @deprecated use X500Name method. - */ - public CertificationRequestInfo(org.bouncycastle.asn1.x509.X509Name subject, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo pkInfo, org.bouncycastle.asn1.ASN1Set attributes) { - } - - public CertificationRequestInfo(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public static CertificationRequestInfo getInstance(Object obj) { - } - - public org.bouncycastle.asn1.ASN1Integer getVersion() { - } - - public org.bouncycastle.asn1.x500.X500Name getSubject() { - } - - public org.bouncycastle.asn1.x509.SubjectPublicKeyInfo getSubjectPublicKeyInfo() { - } - - public org.bouncycastle.asn1.ASN1Set getAttributes() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/ContentInfo.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/ContentInfo.java deleted file mode 100644 index 454ace280..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/ContentInfo.java +++ /dev/null @@ -1,33 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -public class ContentInfo extends org.bouncycastle.asn1.ASN1Object { - - public ContentInfo(org.bouncycastle.asn1.ASN1ObjectIdentifier contentType, org.bouncycastle.asn1.ASN1Encodable content) { - } - - public static ContentInfo getInstance(Object obj) { - } - - public org.bouncycastle.asn1.ASN1ObjectIdentifier getContentType() { - } - - public org.bouncycastle.asn1.ASN1Encodable getContent() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - *
- * ContentInfo ::= SEQUENCE { - * contentType ContentType, - * content - * [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL } - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/DHParameter.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/DHParameter.java deleted file mode 100644 index 17e247494..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/DHParameter.java +++ /dev/null @@ -1,27 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -public class DHParameter extends org.bouncycastle.asn1.ASN1Object { - - public DHParameter(javabc.BigInteger p, javabc.BigInteger g, int l) { - } - - public static DHParameter getInstance(Object obj) { - } - - public javabc.BigInteger getP() { - } - - public javabc.BigInteger getG() { - } - - public javabc.BigInteger getL() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/EncryptedData.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/EncryptedData.java deleted file mode 100644 index 62b653782..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/EncryptedData.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -/** - * The EncryptedData object. - *
- * EncryptedData ::= SEQUENCE { - * version Version, - * encryptedContentInfo EncryptedContentInfo - * } - * - * - * EncryptedContentInfo ::= SEQUENCE { - * contentType ContentType, - * contentEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier, - * encryptedContent [0] IMPLICIT EncryptedContent OPTIONAL - * } - * - * EncryptedContent ::= OCTET STRING - *- */ -public class EncryptedData extends org.bouncycastle.asn1.ASN1Object { - - public EncryptedData(org.bouncycastle.asn1.ASN1ObjectIdentifier contentType, org.bouncycastle.asn1.x509.AlgorithmIdentifier encryptionAlgorithm, org.bouncycastle.asn1.ASN1Encodable content) { - } - - public static EncryptedData getInstance(Object obj) { - } - - public org.bouncycastle.asn1.ASN1ObjectIdentifier getContentType() { - } - - public org.bouncycastle.asn1.x509.AlgorithmIdentifier getEncryptionAlgorithm() { - } - - public org.bouncycastle.asn1.ASN1OctetString getContent() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/EncryptedPrivateKeyInfo.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/EncryptedPrivateKeyInfo.java deleted file mode 100644 index a99415878..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/EncryptedPrivateKeyInfo.java +++ /dev/null @@ -1,39 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -public class EncryptedPrivateKeyInfo extends org.bouncycastle.asn1.ASN1Object { - - public EncryptedPrivateKeyInfo(org.bouncycastle.asn1.x509.AlgorithmIdentifier algId, byte[] encoding) { - } - - public static EncryptedPrivateKeyInfo getInstance(Object obj) { - } - - public org.bouncycastle.asn1.x509.AlgorithmIdentifier getEncryptionAlgorithm() { - } - - public byte[] getEncryptedData() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - *
- * EncryptedPrivateKeyInfo ::= SEQUENCE { - * encryptionAlgorithm AlgorithmIdentifier {{KeyEncryptionAlgorithms}}, - * encryptedData EncryptedData - * } - * - * EncryptedData ::= OCTET STRING - * - * KeyEncryptionAlgorithms ALGORITHM-IDENTIFIER ::= { - * ... -- For local profiles - * } - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/EncryptionScheme.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/EncryptionScheme.java deleted file mode 100644 index 671597822..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/EncryptionScheme.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -public class EncryptionScheme extends org.bouncycastle.asn1.x509.AlgorithmIdentifier { - - public EncryptionScheme(org.bouncycastle.asn1.ASN1ObjectIdentifier objectId, org.bouncycastle.asn1.ASN1Encodable parameters) { - } - - public static final org.bouncycastle.asn1.x509.AlgorithmIdentifier getInstance(Object obj) { - } - - public org.bouncycastle.asn1.ASN1Primitive getObject() { - } - - public org.bouncycastle.asn1.ASN1Primitive getASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/IssuerAndSerialNumber.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/IssuerAndSerialNumber.java deleted file mode 100644 index d3a64563a..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/IssuerAndSerialNumber.java +++ /dev/null @@ -1,33 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -public class IssuerAndSerialNumber extends org.bouncycastle.asn1.ASN1Object { - - public IssuerAndSerialNumber(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public IssuerAndSerialNumber(org.bouncycastle.asn1.x509.X509Name name, javabc.BigInteger certSerialNumber) { - } - - public IssuerAndSerialNumber(org.bouncycastle.asn1.x509.X509Name name, org.bouncycastle.asn1.ASN1Integer certSerialNumber) { - } - - public IssuerAndSerialNumber(org.bouncycastle.asn1.x500.X500Name name, javabc.BigInteger certSerialNumber) { - } - - public static IssuerAndSerialNumber getInstance(Object obj) { - } - - public org.bouncycastle.asn1.x500.X500Name getName() { - } - - public org.bouncycastle.asn1.ASN1Integer getCertificateSerialNumber() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/KeyDerivationFunc.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/KeyDerivationFunc.java deleted file mode 100644 index e4f759339..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/KeyDerivationFunc.java +++ /dev/null @@ -1,12 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -public class KeyDerivationFunc extends org.bouncycastle.asn1.x509.AlgorithmIdentifier { - - public KeyDerivationFunc(org.bouncycastle.asn1.ASN1ObjectIdentifier id, org.bouncycastle.asn1.ASN1Encodable params) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/MacData.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/MacData.java deleted file mode 100644 index f5c9fb2f9..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/MacData.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -public class MacData extends org.bouncycastle.asn1.ASN1Object { - - public MacData(org.bouncycastle.asn1.x509.DigestInfo digInfo, byte[] salt, int iterationCount) { - } - - public static MacData getInstance(Object obj) { - } - - public org.bouncycastle.asn1.x509.DigestInfo getMac() { - } - - public byte[] getSalt() { - } - - public javabc.BigInteger getIterationCount() { - } - - /** - *
- * MacData ::= SEQUENCE { - * mac DigestInfo, - * macSalt OCTET STRING, - * iterations INTEGER DEFAULT 1 - * -- Note: The default is for historic reasons and its use is deprecated. A - * -- higher value, like 1024 is recommended. - *- * @return the basic ASN1Primitive construction. - */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/PBEParameter.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/PBEParameter.java deleted file mode 100644 index 13ec3194d..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/PBEParameter.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -public class PBEParameter extends org.bouncycastle.asn1.ASN1Object { - - public PBEParameter(byte[] salt, int iterations) { - } - - public static PBEParameter getInstance(Object obj) { - } - - public javabc.BigInteger getIterationCount() { - } - - public byte[] getSalt() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/PBES2Algorithms.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/PBES2Algorithms.java deleted file mode 100644 index 81a48c4ac..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/PBES2Algorithms.java +++ /dev/null @@ -1,27 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -/** - * @deprecated - use AlgorithmIdentifier and PBES2Parameters - */ -public class PBES2Algorithms extends org.bouncycastle.asn1.x509.AlgorithmIdentifier { - - public PBES2Algorithms(org.bouncycastle.asn1.ASN1Sequence obj) { - } - - public org.bouncycastle.asn1.ASN1ObjectIdentifier getObjectId() { - } - - public KeyDerivationFunc getKeyDerivationFunc() { - } - - public EncryptionScheme getEncryptionScheme() { - } - - public org.bouncycastle.asn1.ASN1Primitive getASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/PBES2Parameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/PBES2Parameters.java deleted file mode 100644 index ba2efd9d0..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/PBES2Parameters.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -public class PBES2Parameters extends org.bouncycastle.asn1.ASN1Object { - - public PBES2Parameters(org.bouncycastle.asn1.ASN1Sequence obj) { - } - - public static PBES2Parameters getInstance(Object obj) { - } - - public KeyDerivationFunc getKeyDerivationFunc() { - } - - public EncryptionScheme getEncryptionScheme() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/PBKDF2Params.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/PBKDF2Params.java deleted file mode 100644 index 48c284bca..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/PBKDF2Params.java +++ /dev/null @@ -1,30 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -public class PBKDF2Params extends org.bouncycastle.asn1.ASN1Object { - - public PBKDF2Params(byte[] salt, int iterationCount) { - } - - public PBKDF2Params(byte[] salt, int iterationCount, int keyLength) { - } - - public static PBKDF2Params getInstance(Object obj) { - } - - public byte[] getSalt() { - } - - public javabc.BigInteger getIterationCount() { - } - - public javabc.BigInteger getKeyLength() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/PKCS12PBEParams.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/PKCS12PBEParams.java deleted file mode 100644 index 7e0812bd0..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/PKCS12PBEParams.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -public class PKCS12PBEParams extends org.bouncycastle.asn1.ASN1Object { - - public PKCS12PBEParams(byte[] salt, int iterations) { - } - - public static PKCS12PBEParams getInstance(Object obj) { - } - - public javabc.BigInteger getIterations() { - } - - public byte[] getIV() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/PKCSObjectIdentifiers.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/PKCSObjectIdentifiers.java deleted file mode 100644 index 95ca6e020..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/PKCSObjectIdentifiers.java +++ /dev/null @@ -1,122 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -public class PKCSObjectIdentifiers { - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier rsaEncryption; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier dhKeyAgreement; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier des_EDE3_CBC; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier RC2_CBC; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier md2; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier md4; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier md5; - - public static final String pkcs_7 = "1.2.840.113549.1.7"; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier data; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier signedData; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier envelopedData; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier signedAndEnvelopedData; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier digestedData; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier encryptedData; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier pkcs_9_at_emailAddress; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier pkcs_9_at_unstructuredName; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier pkcs_9_at_contentType; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier pkcs_9_at_messageDigest; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier pkcs_9_at_signingTime; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier pkcs_9_at_counterSignature; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier pkcs_9_at_challengePassword; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier pkcs_9_at_unstructuredAddress; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier pkcs_9_at_extendedCertificateAttributes; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier pkcs_9_at_smimeCapabilities; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier preferSignedData; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier canNotDecryptAny; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier sMIMECapabilitiesVersions; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_ct; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_ct_authData; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_ct_TSTInfo; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_ct_compressedData; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_ct_authEnvelopedData; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_ct_timestampedData; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_cti_ets_proofOfOrigin; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_cti_ets_proofOfReceipt; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_cti_ets_proofOfDelivery; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_cti_ets_proofOfSender; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_cti_ets_proofOfApproval; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_cti_ets_proofOfCreation; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_aa; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_aa_contentHint; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_aa_encrypKeyPref; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_aa_ets_sigPolicyId; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_aa_ets_commitmentType; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_aa_ets_signerLocation; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_aa_ets_signerAttr; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_aa_ets_otherSigCert; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_aa_ets_contentTimestamp; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_aa_ets_certificateRefs; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_aa_ets_revocationRefs; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_aa_ets_certValues; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_aa_ets_revocationValues; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_aa_ets_escTimeStamp; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_aa_ets_certCRLTimestamp; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_aa_ets_archiveTimestamp; - - public PKCSObjectIdentifiers() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/Pfx.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/Pfx.java deleted file mode 100644 index 3b35e9493..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/Pfx.java +++ /dev/null @@ -1,27 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -/** - * the infamous Pfx from PKCS12 - */ -public class Pfx extends org.bouncycastle.asn1.ASN1Object { - - public Pfx(ContentInfo contentInfo, MacData macData) { - } - - public static Pfx getInstance(Object obj) { - } - - public ContentInfo getAuthSafe() { - } - - public MacData getMacData() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/PrivateKeyInfo.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/PrivateKeyInfo.java deleted file mode 100644 index ad3d607fa..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/PrivateKeyInfo.java +++ /dev/null @@ -1,65 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -public class PrivateKeyInfo extends org.bouncycastle.asn1.ASN1Object { - - public PrivateKeyInfo(org.bouncycastle.asn1.x509.AlgorithmIdentifier algId, org.bouncycastle.asn1.ASN1Encodable privateKey) { - } - - public PrivateKeyInfo(org.bouncycastle.asn1.x509.AlgorithmIdentifier algId, org.bouncycastle.asn1.ASN1Encodable privateKey, org.bouncycastle.asn1.ASN1Set attributes) { - } - - public PrivateKeyInfo(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public static PrivateKeyInfo getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static PrivateKeyInfo getInstance(Object obj) { - } - - public org.bouncycastle.asn1.x509.AlgorithmIdentifier getPrivateKeyAlgorithm() { - } - - /** - * @deprecated use getPrivateKeyAlgorithm() - */ - public org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmId() { - } - - public org.bouncycastle.asn1.ASN1Encodable parsePrivateKey() { - } - - /** - * @deprecated use parsePrivateKey() - */ - public org.bouncycastle.asn1.ASN1Primitive getPrivateKey() { - } - - public org.bouncycastle.asn1.ASN1Set getAttributes() { - } - - /** - * write out an RSA private key with its associated information - * as described in PKCS8. - *
- * PrivateKeyInfo ::= SEQUENCE { - * version Version, - * privateKeyAlgorithm AlgorithmIdentifier {{PrivateKeyAlgorithms}}, - * privateKey PrivateKey, - * attributes [0] IMPLICIT Attributes OPTIONAL - * } - * Version ::= INTEGER {v1(0)} (v1,...) - * - * PrivateKey ::= OCTET STRING - * - * Attributes ::= SET OF Attribute - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/RC2CBCParameter.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/RC2CBCParameter.java deleted file mode 100644 index ee53533ef..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/RC2CBCParameter.java +++ /dev/null @@ -1,27 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -public class RC2CBCParameter extends org.bouncycastle.asn1.ASN1Object { - - public RC2CBCParameter(byte[] iv) { - } - - public RC2CBCParameter(int parameterVersion, byte[] iv) { - } - - public static RC2CBCParameter getInstance(Object o) { - } - - public javabc.BigInteger getRC2ParameterVersion() { - } - - public byte[] getIV() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/RSAESOAEPparams.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/RSAESOAEPparams.java deleted file mode 100644 index 782a75549..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/RSAESOAEPparams.java +++ /dev/null @@ -1,68 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -public class RSAESOAEPparams extends org.bouncycastle.asn1.ASN1Object { - - public static final org.bouncycastle.asn1.x509.AlgorithmIdentifier DEFAULT_HASH_ALGORITHM; - - public static final org.bouncycastle.asn1.x509.AlgorithmIdentifier DEFAULT_MASK_GEN_FUNCTION; - - public static final org.bouncycastle.asn1.x509.AlgorithmIdentifier DEFAULT_P_SOURCE_ALGORITHM; - - /** - * The default version - */ - public RSAESOAEPparams() { - } - - public RSAESOAEPparams(org.bouncycastle.asn1.x509.AlgorithmIdentifier hashAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier maskGenAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier pSourceAlgorithm) { - } - - public RSAESOAEPparams(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public static RSAESOAEPparams getInstance(Object obj) { - } - - public org.bouncycastle.asn1.x509.AlgorithmIdentifier getHashAlgorithm() { - } - - public org.bouncycastle.asn1.x509.AlgorithmIdentifier getMaskGenAlgorithm() { - } - - public org.bouncycastle.asn1.x509.AlgorithmIdentifier getPSourceAlgorithm() { - } - - /** - *
- * RSAES-OAEP-params ::= SEQUENCE { - * hashAlgorithm [0] OAEP-PSSDigestAlgorithms DEFAULT sha1, - * maskGenAlgorithm [1] PKCS1MGFAlgorithms DEFAULT mgf1SHA1, - * pSourceAlgorithm [2] PKCS1PSourceAlgorithms DEFAULT pSpecifiedEmpty - * } - * - * OAEP-PSSDigestAlgorithms ALGORITHM-IDENTIFIER ::= { - * { OID id-sha1 PARAMETERS NULL }| - * { OID id-sha256 PARAMETERS NULL }| - * { OID id-sha384 PARAMETERS NULL }| - * { OID id-sha512 PARAMETERS NULL }, - * ... -- Allows for future expansion -- - * } - * PKCS1MGFAlgorithms ALGORITHM-IDENTIFIER ::= { - * { OID id-mgf1 PARAMETERS OAEP-PSSDigestAlgorithms }, - * ... -- Allows for future expansion -- - * } - * PKCS1PSourceAlgorithms ALGORITHM-IDENTIFIER ::= { - * { OID id-pSpecified PARAMETERS OCTET STRING }, - * ... -- Allows for future expansion -- - * } - *- * @return the asn1 primitive representing the parameters. - */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/RSAPrivateKey.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/RSAPrivateKey.java deleted file mode 100644 index a039ec749..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/RSAPrivateKey.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -public class RSAPrivateKey extends org.bouncycastle.asn1.ASN1Object { - - public RSAPrivateKey(javabc.BigInteger modulus, javabc.BigInteger publicExponent, javabc.BigInteger privateExponent, javabc.BigInteger prime1, javabc.BigInteger prime2, javabc.BigInteger exponent1, javabc.BigInteger exponent2, javabc.BigInteger coefficient) { - } - - public static RSAPrivateKey getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static RSAPrivateKey getInstance(Object obj) { - } - - public javabc.BigInteger getVersion() { - } - - public javabc.BigInteger getModulus() { - } - - public javabc.BigInteger getPublicExponent() { - } - - public javabc.BigInteger getPrivateExponent() { - } - - public javabc.BigInteger getPrime1() { - } - - public javabc.BigInteger getPrime2() { - } - - public javabc.BigInteger getExponent1() { - } - - public javabc.BigInteger getExponent2() { - } - - public javabc.BigInteger getCoefficient() { - } - - /** - * This outputs the key in PKCS1v2 format. - *
- * RSAPrivateKey ::= SEQUENCE { - * version Version, - * modulus INTEGER, -- n - * publicExponent INTEGER, -- e - * privateExponent INTEGER, -- d - * prime1 INTEGER, -- p - * prime2 INTEGER, -- q - * exponent1 INTEGER, -- d mod (p-1) - * exponent2 INTEGER, -- d mod (q-1) - * coefficient INTEGER, -- (inverse of q) mod p - * otherPrimeInfos OtherPrimeInfos OPTIONAL - * } - * - * Version ::= INTEGER { two-prime(0), multi(1) } - * (CONSTRAINED BY {-- version must be multi if otherPrimeInfos present --}) - *- *
- * This routine is written to output PKCS1 version 2.1, private keys. - */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/RSAPrivateKeyStructure.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/RSAPrivateKeyStructure.java deleted file mode 100644 index 34d707c2b..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/RSAPrivateKeyStructure.java +++ /dev/null @@ -1,76 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -/** - * @deprecated use RSAPrivateKey - */ -public class RSAPrivateKeyStructure extends org.bouncycastle.asn1.ASN1Object { - - public RSAPrivateKeyStructure(javabc.BigInteger modulus, javabc.BigInteger publicExponent, javabc.BigInteger privateExponent, javabc.BigInteger prime1, javabc.BigInteger prime2, javabc.BigInteger exponent1, javabc.BigInteger exponent2, javabc.BigInteger coefficient) { - } - - public RSAPrivateKeyStructure(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public static RSAPrivateKeyStructure getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static RSAPrivateKeyStructure getInstance(Object obj) { - } - - public int getVersion() { - } - - public javabc.BigInteger getModulus() { - } - - public javabc.BigInteger getPublicExponent() { - } - - public javabc.BigInteger getPrivateExponent() { - } - - public javabc.BigInteger getPrime1() { - } - - public javabc.BigInteger getPrime2() { - } - - public javabc.BigInteger getExponent1() { - } - - public javabc.BigInteger getExponent2() { - } - - public javabc.BigInteger getCoefficient() { - } - - /** - * This outputs the key in PKCS1v2 format. - *
- * RSAPrivateKey ::= SEQUENCE { - * version Version, - * modulus INTEGER, -- n - * publicExponent INTEGER, -- e - * privateExponent INTEGER, -- d - * prime1 INTEGER, -- p - * prime2 INTEGER, -- q - * exponent1 INTEGER, -- d mod (p-1) - * exponent2 INTEGER, -- d mod (q-1) - * coefficient INTEGER, -- (inverse of q) mod p - * otherPrimeInfos OtherPrimeInfos OPTIONAL - * } - * - * Version ::= INTEGER { two-prime(0), multi(1) } - * (CONSTRAINED BY {-- version must be multi if otherPrimeInfos present --}) - *- *
- * This routine is written to output PKCS1 version 2.1, private keys. - */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/RSAPublicKey.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/RSAPublicKey.java deleted file mode 100644 index a94b779a2..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/RSAPublicKey.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -public class RSAPublicKey extends org.bouncycastle.asn1.ASN1Object { - - public RSAPublicKey(javabc.BigInteger modulus, javabc.BigInteger publicExponent) { - } - - public static RSAPublicKey getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static RSAPublicKey getInstance(Object obj) { - } - - public javabc.BigInteger getModulus() { - } - - public javabc.BigInteger getPublicExponent() { - } - - /** - * This outputs the key in PKCS1v2 format. - *
- * RSAPublicKey ::= SEQUENCE { - * modulus INTEGER, -- n - * publicExponent INTEGER, -- e - * } - *- *
- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/RSASSAPSSparams.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/RSASSAPSSparams.java deleted file mode 100644 index 6e7e74558..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/RSASSAPSSparams.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -public class RSASSAPSSparams extends org.bouncycastle.asn1.ASN1Object { - - public static final org.bouncycastle.asn1.x509.AlgorithmIdentifier DEFAULT_HASH_ALGORITHM; - - public static final org.bouncycastle.asn1.x509.AlgorithmIdentifier DEFAULT_MASK_GEN_FUNCTION; - - public static final org.bouncycastle.asn1.ASN1Integer DEFAULT_SALT_LENGTH; - - public static final org.bouncycastle.asn1.ASN1Integer DEFAULT_TRAILER_FIELD; - - /** - * The default version - */ - public RSASSAPSSparams() { - } - - public RSASSAPSSparams(org.bouncycastle.asn1.x509.AlgorithmIdentifier hashAlgorithm, org.bouncycastle.asn1.x509.AlgorithmIdentifier maskGenAlgorithm, org.bouncycastle.asn1.ASN1Integer saltLength, org.bouncycastle.asn1.ASN1Integer trailerField) { - } - - public static RSASSAPSSparams getInstance(Object obj) { - } - - public org.bouncycastle.asn1.x509.AlgorithmIdentifier getHashAlgorithm() { - } - - public org.bouncycastle.asn1.x509.AlgorithmIdentifier getMaskGenAlgorithm() { - } - - public javabc.BigInteger getSaltLength() { - } - - public javabc.BigInteger getTrailerField() { - } - - /** - *
- * RSASSA-PSS-params ::= SEQUENCE { - * hashAlgorithm [0] OAEP-PSSDigestAlgorithms DEFAULT sha1, - * maskGenAlgorithm [1] PKCS1MGFAlgorithms DEFAULT mgf1SHA1, - * saltLength [2] INTEGER DEFAULT 20, - * trailerField [3] TrailerField DEFAULT trailerFieldBC - * } - * - * OAEP-PSSDigestAlgorithms ALGORITHM-IDENTIFIER ::= { - * { OID id-sha1 PARAMETERS NULL }| - * { OID id-sha256 PARAMETERS NULL }| - * { OID id-sha384 PARAMETERS NULL }| - * { OID id-sha512 PARAMETERS NULL }, - * ... -- Allows for future expansion -- - * } - * - * PKCS1MGFAlgorithms ALGORITHM-IDENTIFIER ::= { - * { OID id-mgf1 PARAMETERS OAEP-PSSDigestAlgorithms }, - * ... -- Allows for future expansion -- - * } - * - * TrailerField ::= INTEGER { trailerFieldBC(1) } - *- * @return the asn1 primitive representing the parameters. - */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/SafeBag.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/SafeBag.java deleted file mode 100644 index c7028b664..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/SafeBag.java +++ /dev/null @@ -1,30 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -public class SafeBag extends org.bouncycastle.asn1.ASN1Object { - - public SafeBag(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, org.bouncycastle.asn1.ASN1Encodable obj) { - } - - public SafeBag(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, org.bouncycastle.asn1.ASN1Encodable obj, org.bouncycastle.asn1.ASN1Set bagAttributes) { - } - - public static SafeBag getInstance(Object obj) { - } - - public org.bouncycastle.asn1.ASN1ObjectIdentifier getBagId() { - } - - public org.bouncycastle.asn1.ASN1Encodable getBagValue() { - } - - public org.bouncycastle.asn1.ASN1Set getBagAttributes() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/SignedData.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/SignedData.java deleted file mode 100644 index f87bd03e7..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/SignedData.java +++ /dev/null @@ -1,57 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -/** - * a PKCS#7 signed data object. - */ -public class SignedData extends org.bouncycastle.asn1.ASN1Object { - - public SignedData(org.bouncycastle.asn1.ASN1Integer _version, org.bouncycastle.asn1.ASN1Set _digestAlgorithms, ContentInfo _contentInfo, org.bouncycastle.asn1.ASN1Set _certificates, org.bouncycastle.asn1.ASN1Set _crls, org.bouncycastle.asn1.ASN1Set _signerInfos) { - } - - public SignedData(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public static SignedData getInstance(Object o) { - } - - public org.bouncycastle.asn1.ASN1Integer getVersion() { - } - - public org.bouncycastle.asn1.ASN1Set getDigestAlgorithms() { - } - - public ContentInfo getContentInfo() { - } - - public org.bouncycastle.asn1.ASN1Set getCertificates() { - } - - public org.bouncycastle.asn1.ASN1Set getCRLs() { - } - - public org.bouncycastle.asn1.ASN1Set getSignerInfos() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - *
- * SignedData ::= SEQUENCE { - * version Version, - * digestAlgorithms DigestAlgorithmIdentifiers, - * contentInfo ContentInfo, - * certificates - * [0] IMPLICIT ExtendedCertificatesAndCertificates - * OPTIONAL, - * crls - * [1] IMPLICIT CertificateRevocationLists OPTIONAL, - * signerInfos SignerInfos } - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/SignerInfo.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/SignerInfo.java deleted file mode 100644 index 6936149ef..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/pkcs/SignerInfo.java +++ /dev/null @@ -1,65 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting the various RSA PKCS documents. - */ -package org.bouncycastle.asn1.pkcs; - - -/** - * a PKCS#7 signer info object. - */ -public class SignerInfo extends org.bouncycastle.asn1.ASN1Object { - - public SignerInfo(org.bouncycastle.asn1.ASN1Integer version, IssuerAndSerialNumber issuerAndSerialNumber, org.bouncycastle.asn1.x509.AlgorithmIdentifier digAlgorithm, org.bouncycastle.asn1.ASN1Set authenticatedAttributes, org.bouncycastle.asn1.x509.AlgorithmIdentifier digEncryptionAlgorithm, org.bouncycastle.asn1.ASN1OctetString encryptedDigest, org.bouncycastle.asn1.ASN1Set unauthenticatedAttributes) { - } - - public SignerInfo(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public static SignerInfo getInstance(Object o) { - } - - public org.bouncycastle.asn1.ASN1Integer getVersion() { - } - - public IssuerAndSerialNumber getIssuerAndSerialNumber() { - } - - public org.bouncycastle.asn1.ASN1Set getAuthenticatedAttributes() { - } - - public org.bouncycastle.asn1.x509.AlgorithmIdentifier getDigestAlgorithm() { - } - - public org.bouncycastle.asn1.ASN1OctetString getEncryptedDigest() { - } - - public org.bouncycastle.asn1.x509.AlgorithmIdentifier getDigestEncryptionAlgorithm() { - } - - public org.bouncycastle.asn1.ASN1Set getUnauthenticatedAttributes() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - *
- * SignerInfo ::= SEQUENCE { - * version Version, - * issuerAndSerialNumber IssuerAndSerialNumber, - * digestAlgorithm DigestAlgorithmIdentifier, - * authenticatedAttributes [0] IMPLICIT Attributes OPTIONAL, - * digestEncryptionAlgorithm DigestEncryptionAlgorithmIdentifier, - * encryptedDigest EncryptedDigest, - * unauthenticatedAttributes [1] IMPLICIT Attributes OPTIONAL - * } - * - * EncryptedDigest ::= OCTET STRING - * - * DigestAlgorithmIdentifier ::= AlgorithmIdentifier - * - * DigestEncryptionAlgorithmIdentifier ::= AlgorithmIdentifier - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/sec/ECPrivateKey.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/sec/ECPrivateKey.java deleted file mode 100644 index 4bfa03846..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/sec/ECPrivateKey.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * - * Classes for support of the SEC standard for Elliptic Curve. - */ -package org.bouncycastle.asn1.sec; - - -/** - * the elliptic curve private key object from SEC 1 - */ -public class ECPrivateKey extends org.bouncycastle.asn1.ASN1Object { - - public ECPrivateKey(javabc.BigInteger key) { - } - - public ECPrivateKey(javabc.BigInteger key, org.bouncycastle.asn1.ASN1Object parameters) { - } - - public ECPrivateKey(javabc.BigInteger key, org.bouncycastle.asn1.DERBitString publicKey, org.bouncycastle.asn1.ASN1Object parameters) { - } - - public static ECPrivateKey getInstance(Object obj) { - } - - public javabc.BigInteger getKey() { - } - - public org.bouncycastle.asn1.DERBitString getPublicKey() { - } - - public org.bouncycastle.asn1.ASN1Primitive getParameters() { - } - - /** - * ECPrivateKey ::= SEQUENCE { - * version INTEGER { ecPrivkeyVer1(1) } (ecPrivkeyVer1), - * privateKey OCTET STRING, - * parameters [0] Parameters OPTIONAL, - * publicKey [1] BIT STRING OPTIONAL } - */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/sec/ECPrivateKeyStructure.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/sec/ECPrivateKeyStructure.java deleted file mode 100644 index d88caaeab..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/sec/ECPrivateKeyStructure.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * - * Classes for support of the SEC standard for Elliptic Curve. - */ -package org.bouncycastle.asn1.sec; - - -/** - * the elliptic curve private key object from SEC 1 - * @deprecated use ECPrivateKey - */ -public class ECPrivateKeyStructure extends org.bouncycastle.asn1.ASN1Object { - - public ECPrivateKeyStructure(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public ECPrivateKeyStructure(javabc.BigInteger key) { - } - - public ECPrivateKeyStructure(javabc.BigInteger key, org.bouncycastle.asn1.ASN1Encodable parameters) { - } - - public ECPrivateKeyStructure(javabc.BigInteger key, org.bouncycastle.asn1.DERBitString publicKey, org.bouncycastle.asn1.ASN1Encodable parameters) { - } - - public javabc.BigInteger getKey() { - } - - public org.bouncycastle.asn1.DERBitString getPublicKey() { - } - - public org.bouncycastle.asn1.ASN1Primitive getParameters() { - } - - /** - * ECPrivateKey ::= SEQUENCE { - * version INTEGER { ecPrivkeyVer1(1) } (ecPrivkeyVer1), - * privateKey OCTET STRING, - * parameters [0] Parameters OPTIONAL, - * publicKey [1] BIT STRING OPTIONAL } - */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/sec/SECNamedCurves.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/sec/SECNamedCurves.java deleted file mode 100644 index cba3ad1df..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/sec/SECNamedCurves.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * - * Classes for support of the SEC standard for Elliptic Curve. - */ -package org.bouncycastle.asn1.sec; - - -public class SECNamedCurves { - - public SECNamedCurves() { - } - - public static org.bouncycastle.asn1.x9.X9ECParameters getByName(String name) { - } - - /** - * return the X9ECParameters object for the named curve represented by - * the passed in object identifier. Null if the curve isn't present. - * - * @param oid an object identifier representing a named curve, if present. - */ - public static org.bouncycastle.asn1.x9.X9ECParameters getByOID(org.bouncycastle.asn1.ASN1ObjectIdentifier oid) { - } - - /** - * return the object identifier signified by the passed in name. Null - * if there is no object identifier associated with name. - * - * @return the object identifier associated with name, if present. - */ - public static org.bouncycastle.asn1.ASN1ObjectIdentifier getOID(String name) { - } - - /** - * return the named curve name represented by the given object identifier. - */ - public static String getName(org.bouncycastle.asn1.ASN1ObjectIdentifier oid) { - } - - /** - * returns an enumeration containing the name strings for curves - * contained in this structure. - */ - public static java.util.Enumeration getNames() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/sec/SECObjectIdentifiers.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/sec/SECObjectIdentifiers.java deleted file mode 100644 index 9975df9e5..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/sec/SECObjectIdentifiers.java +++ /dev/null @@ -1,82 +0,0 @@ -/** - * - * Classes for support of the SEC standard for Elliptic Curve. - */ -package org.bouncycastle.asn1.sec; - - -public interface SECObjectIdentifiers { - - /** - * ellipticCurve OBJECT IDENTIFIER ::= { - * iso(1) identified-organization(3) certicom(132) curve(0) - * } - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier ellipticCurve; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier sect163k1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier sect163r1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier sect239k1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier sect113r1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier sect113r2; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier secp112r1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier secp112r2; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier secp160r1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier secp160k1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier secp256k1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier sect163r2; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier sect283k1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier sect283r1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier sect131r1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier sect131r2; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier sect193r1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier sect193r2; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier sect233k1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier sect233r1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier secp128r1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier secp128r2; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier secp160r2; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier secp192k1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier secp224k1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier secp224r1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier secp384r1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier secp521r1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier sect409k1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier sect409r1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier sect571k1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier sect571r1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier secp192r1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier secp256r1; -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/util/ASN1Dump.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/util/ASN1Dump.java deleted file mode 100644 index 3e9d07ccd..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/util/ASN1Dump.java +++ /dev/null @@ -1,31 +0,0 @@ -/** - * - * An ASN.1 dump utility. - */ -package org.bouncycastle.asn1.util; - - -public class ASN1Dump { - - public ASN1Dump() { - } - - /** - * dump out a DER object as a formatted string, in non-verbose mode. - * - * @param obj the ASN1Primitive to be dumped out. - * @return the resulting string. - */ - public static String dumpAsString(Object obj) { - } - - /** - * Dump out the object as a string. - * - * @param obj the object to be dumped - * @param verbose if true, dump out the contents of octet and bit strings. - * @return the resulting string. - */ - public static String dumpAsString(Object obj, boolean verbose) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/util/DERDump.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/util/DERDump.java deleted file mode 100644 index ad9b9e9c1..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/util/DERDump.java +++ /dev/null @@ -1,31 +0,0 @@ -/** - * - * An ASN.1 dump utility. - */ -package org.bouncycastle.asn1.util; - - -/** - * @deprecated use ASN1Dump. - */ -public class DERDump extends ASN1Dump { - - public DERDump() { - } - - /** - * dump out a DER object as a formatted string - * - * @param obj the ASN1Primitive to be dumped out. - */ - public static String dumpAsString(org.bouncycastle.asn1.ASN1Primitive obj) { - } - - /** - * dump out a DER object as a formatted string - * - * @param obj the ASN1Primitive to be dumped out. - */ - public static String dumpAsString(org.bouncycastle.asn1.ASN1Encodable obj) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/AttributeTypeAndValue.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/AttributeTypeAndValue.java deleted file mode 100644 index d8f5ff6ea..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/AttributeTypeAndValue.java +++ /dev/null @@ -1,28 +0,0 @@ -package org.bouncycastle.asn1.x500; - - -public class AttributeTypeAndValue extends org.bouncycastle.asn1.ASN1Object { - - public AttributeTypeAndValue(org.bouncycastle.asn1.ASN1ObjectIdentifier type, org.bouncycastle.asn1.ASN1Encodable value) { - } - - public static AttributeTypeAndValue getInstance(Object o) { - } - - public org.bouncycastle.asn1.ASN1ObjectIdentifier getType() { - } - - public org.bouncycastle.asn1.ASN1Encodable getValue() { - } - - /** - *
- * AttributeTypeAndValue ::= SEQUENCE { - * type OBJECT IDENTIFIER, - * value ANY DEFINED BY type } - *- * @return a basic ASN.1 object representation. - */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/DirectoryString.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/DirectoryString.java deleted file mode 100644 index 4617a6233..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/DirectoryString.java +++ /dev/null @@ -1,33 +0,0 @@ -package org.bouncycastle.asn1.x500; - - -public class DirectoryString extends org.bouncycastle.asn1.ASN1Object implements org.bouncycastle.asn1.ASN1Choice, org.bouncycastle.asn1.ASN1String { - - public DirectoryString(String string) { - } - - public static DirectoryString getInstance(Object o) { - } - - public static DirectoryString getInstance(org.bouncycastle.asn1.ASN1TaggedObject o, boolean explicit) { - } - - public String getString() { - } - - public String toString() { - } - - /** - *
- * DirectoryString ::= CHOICE { - * teletexString TeletexString (SIZE (1..MAX)), - * printableString PrintableString (SIZE (1..MAX)), - * universalString UniversalString (SIZE (1..MAX)), - * utf8String UTF8String (SIZE (1..MAX)), - * bmpString BMPString (SIZE (1..MAX)) } - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/RDN.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/RDN.java deleted file mode 100644 index 8f81cc5ed..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/RDN.java +++ /dev/null @@ -1,59 +0,0 @@ -package org.bouncycastle.asn1.x500; - - -public class RDN extends org.bouncycastle.asn1.ASN1Object { - - /** - * Create a single valued RDN. - * - * @param oid RDN type. - * @param value RDN value. - */ - public RDN(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, org.bouncycastle.asn1.ASN1Encodable value) { - } - - public RDN(AttributeTypeAndValue attrTAndV) { - } - - /** - * Create a multi-valued RDN. - * - * @param aAndVs attribute type/value pairs making up the RDN - */ - public RDN(AttributeTypeAndValue[] aAndVs) { - } - - public static RDN getInstance(Object obj) { - } - - public boolean isMultiValued() { - } - - /** - * Return the number of AttributeTypeAndValue objects in this RDN, - * - * @return size of RDN, greater than 1 if multi-valued. - */ - public int size() { - } - - public AttributeTypeAndValue getFirst() { - } - - public AttributeTypeAndValue[] getTypesAndValues() { - } - - /** - *
- * RelativeDistinguishedName ::= - * SET OF AttributeTypeAndValue - * - * AttributeTypeAndValue ::= SEQUENCE { - * type AttributeType, - * value AttributeValue } - *- * @return this object as an ASN1Primitive type - */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/X500Name.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/X500Name.java deleted file mode 100644 index dc8316ade..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/X500Name.java +++ /dev/null @@ -1,106 +0,0 @@ -package org.bouncycastle.asn1.x500; - - -/** - *
- * Name ::= CHOICE { - * RDNSequence } - * - * RDNSequence ::= SEQUENCE OF RelativeDistinguishedName - * - * RelativeDistinguishedName ::= SET SIZE (1..MAX) OF AttributeTypeAndValue - * - * AttributeTypeAndValue ::= SEQUENCE { - * type OBJECT IDENTIFIER, - * value ANY } - *- */ -public class X500Name extends org.bouncycastle.asn1.ASN1Object implements org.bouncycastle.asn1.ASN1Choice { - - public X500Name(X500NameStyle style, X500Name name) { - } - - public X500Name(RDN[] rDNs) { - } - - public X500Name(X500NameStyle style, RDN[] rDNs) { - } - - public X500Name(String dirName) { - } - - public X500Name(X500NameStyle style, String dirName) { - } - - /** - * Return a X500Name based on the passed in tagged object. - * - * @param obj tag object holding name. - * @param explicit true if explicitly tagged false otherwise. - * @return the X500Name - */ - public static X500Name getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static X500Name getInstance(Object obj) { - } - - public static X500Name getInstance(X500NameStyle style, Object obj) { - } - - /** - * return an array of RDNs in structure order. - * - * @return an array of RDN objects. - */ - public RDN[] getRDNs() { - } - - /** - * return an array of OIDs contained in the attribute type of each RDN in structure order. - * - * @return an array, possibly zero length, of ASN1ObjectIdentifiers objects. - */ - public org.bouncycastle.asn1.ASN1ObjectIdentifier[] getAttributeTypes() { - } - - /** - * return an array of RDNs containing the attribute type given by OID in structure order. - * - * @param attributeType the type OID we are looking for. - * @return an array, possibly zero length, of RDN objects. - */ - public RDN[] getRDNs(org.bouncycastle.asn1.ASN1ObjectIdentifier attributeType) { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } - - public int hashCode() { - } - - /** - * test for equality - note: case is ignored. - */ - public boolean equals(Object obj) { - } - - public String toString() { - } - - /** - * Set the default style for X500Name construction. - * - * @param style an X500NameStyle - */ - public static void setDefaultStyle(X500NameStyle style) { - } - - /** - * Return the current default style. - * - * @return default style for X500Name construction. - */ - public static X500NameStyle getDefaultStyle() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/X500NameBuilder.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/X500NameBuilder.java deleted file mode 100644 index aeb469c2c..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/X500NameBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -package org.bouncycastle.asn1.x500; - - -public class X500NameBuilder { - - public X500NameBuilder(X500NameStyle template) { - } - - public X500NameBuilder addRDN(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, String value) { - } - - public X500NameBuilder addRDN(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, org.bouncycastle.asn1.ASN1Encodable value) { - } - - public X500NameBuilder addRDN(AttributeTypeAndValue attrTAndV) { - } - - public X500NameBuilder addMultiValuedRDN(org.bouncycastle.asn1.ASN1ObjectIdentifier[] oids, String[] values) { - } - - public X500NameBuilder addMultiValuedRDN(org.bouncycastle.asn1.ASN1ObjectIdentifier[] oids, org.bouncycastle.asn1.ASN1Encodable[] values) { - } - - public X500NameBuilder addMultiValuedRDN(AttributeTypeAndValue[] attrTAndVs) { - } - - public X500Name build() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/X500NameStyle.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/X500NameStyle.java deleted file mode 100644 index 32a23549e..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/X500NameStyle.java +++ /dev/null @@ -1,32 +0,0 @@ -package org.bouncycastle.asn1.x500; - - -/** - * It turns out that the number of standard ways the fields in a DN should be - * encoded into their ASN.1 counterparts is rapidly approaching the - * number of machines on the internet. By default the X500Name class - * will produce UTF8Strings in line with the current recommendations (RFC 3280). - *
- */ -public interface X500NameStyle { - - /** - * Convert the passed in String value into the appropriate ASN.1 - * encoded object. - * - * @param oid the oid associated with the value in the DN. - * @param value the value of the particular DN component. - * @return the ASN.1 equivalent for the value. - */ - public org.bouncycastle.asn1.ASN1Encodable stringToValue(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, String value); - - public org.bouncycastle.asn1.ASN1ObjectIdentifier attrNameToOID(String attrName); - - public boolean areEqual(X500Name name1, X500Name name2); - - public RDN[] fromString(String dirName); - - public int calculateHashCode(X500Name name); - - public String toString(X500Name name); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/style/BCStrictStyle.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/style/BCStrictStyle.java deleted file mode 100644 index 8194d29d4..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/style/BCStrictStyle.java +++ /dev/null @@ -1,15 +0,0 @@ -package org.bouncycastle.asn1.x500.style; - - -/** - * Variation of BCStyle that insists on strict ordering for equality - * and hashCode comparisons - */ -public class BCStrictStyle extends BCStyle { - - public BCStrictStyle() { - } - - public boolean areEqual(org.bouncycastle.asn1.x500.X500Name name1, org.bouncycastle.asn1.x500.X500Name name2) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/style/BCStyle.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/style/BCStyle.java deleted file mode 100644 index 71643a8f6..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/style/BCStyle.java +++ /dev/null @@ -1,192 +0,0 @@ -package org.bouncycastle.asn1.x500.style; - - -public class BCStyle implements org.bouncycastle.asn1.x500.X500NameStyle { - - public static final org.bouncycastle.asn1.x500.X500NameStyle INSTANCE; - - /** - * country code - StringType(SIZE(2)) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier C; - - /** - * organization - StringType(SIZE(1..64)) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier O; - - /** - * organizational unit name - StringType(SIZE(1..64)) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier OU; - - /** - * Title - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier T; - - /** - * common name - StringType(SIZE(1..64)) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier CN; - - /** - * device serial number name - StringType(SIZE(1..64)) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier SN; - - /** - * street - StringType(SIZE(1..64)) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier STREET; - - /** - * device serial number name - StringType(SIZE(1..64)) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier SERIALNUMBER; - - /** - * locality name - StringType(SIZE(1..64)) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier L; - - /** - * state, or province name - StringType(SIZE(1..64)) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier ST; - - /** - * Naming attributes of type X520name - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier SURNAME; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier GIVENNAME; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier INITIALS; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier GENERATION; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier UNIQUE_IDENTIFIER; - - /** - * businessCategory - DirectoryString(SIZE(1..128) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier BUSINESS_CATEGORY; - - /** - * postalCode - DirectoryString(SIZE(1..40) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier POSTAL_CODE; - - /** - * dnQualifier - DirectoryString(SIZE(1..64) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier DN_QUALIFIER; - - /** - * RFC 3039 Pseudonym - DirectoryString(SIZE(1..64) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier PSEUDONYM; - - /** - * RFC 3039 DateOfBirth - GeneralizedTime - YYYYMMDD000000Z - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier DATE_OF_BIRTH; - - /** - * RFC 3039 PlaceOfBirth - DirectoryString(SIZE(1..128) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier PLACE_OF_BIRTH; - - /** - * RFC 3039 Gender - PrintableString (SIZE(1)) -- "M", "F", "m" or "f" - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier GENDER; - - /** - * RFC 3039 CountryOfCitizenship - PrintableString (SIZE (2)) -- ISO 3166 - * codes only - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier COUNTRY_OF_CITIZENSHIP; - - /** - * RFC 3039 CountryOfResidence - PrintableString (SIZE (2)) -- ISO 3166 - * codes only - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier COUNTRY_OF_RESIDENCE; - - /** - * ISIS-MTT NameAtBirth - DirectoryString(SIZE(1..64) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier NAME_AT_BIRTH; - - /** - * RFC 3039 PostalAddress - SEQUENCE SIZE (1..6) OF - * DirectoryString(SIZE(1..30)) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier POSTAL_ADDRESS; - - /** - * RFC 2256 dmdName - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier DMD_NAME; - - /** - * id-at-telephoneNumber - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier TELEPHONE_NUMBER; - - /** - * id-at-name - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier NAME; - - /** - * Email address (RSA PKCS#9 extension) - IA5String. - *
Note: if you're trying to be ultra orthodox, don't use this! It shouldn't be in here. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier EmailAddress; - - /** - * more from PKCS#9 - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier UnstructuredName; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier UnstructuredAddress; - - /** - * email address in Verisign certificates - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier E; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier DC; - - /** - * LDAP User id. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier UID; - - protected BCStyle() { - } - - public org.bouncycastle.asn1.ASN1Encodable stringToValue(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, String value) { - } - - public org.bouncycastle.asn1.ASN1ObjectIdentifier attrNameToOID(String attrName) { - } - - public boolean areEqual(org.bouncycastle.asn1.x500.X500Name name1, org.bouncycastle.asn1.x500.X500Name name2) { - } - - protected boolean rdnAreEqual(org.bouncycastle.asn1.x500.RDN rdn1, org.bouncycastle.asn1.x500.RDN rdn2) { - } - - public org.bouncycastle.asn1.x500.RDN[] fromString(String dirName) { - } - - public int calculateHashCode(org.bouncycastle.asn1.x500.X500Name name) { - } - - public String toString(org.bouncycastle.asn1.x500.X500Name name) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/style/IETFUtils.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/style/IETFUtils.java deleted file mode 100644 index 15633e536..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/style/IETFUtils.java +++ /dev/null @@ -1,29 +0,0 @@ -package org.bouncycastle.asn1.x500.style; - - -public class IETFUtils { - - public IETFUtils() { - } - - public static org.bouncycastle.asn1.x500.RDN[] rDNsFromString(String name, org.bouncycastle.asn1.x500.X500NameStyle x500Style) { - } - - public static org.bouncycastle.asn1.ASN1ObjectIdentifier decodeAttrName(String name, java.util.Hashtable lookUp) { - } - - public static org.bouncycastle.asn1.ASN1Encodable valueFromHexString(String str, int off) { - } - - public static void appendTypeAndValue(StringBuffer buf, org.bouncycastle.asn1.x500.AttributeTypeAndValue typeAndValue, java.util.Hashtable oidSymbols) { - } - - public static String valueToString(org.bouncycastle.asn1.ASN1Encodable value) { - } - - public static String canonicalize(String s) { - } - - public static String stripInternalSpaces(String str) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/style/RFC4519Style.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/style/RFC4519Style.java deleted file mode 100644 index a6ff5210a..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x500/style/RFC4519Style.java +++ /dev/null @@ -1,117 +0,0 @@ -package org.bouncycastle.asn1.x500.style; - - -public class RFC4519Style implements org.bouncycastle.asn1.x500.X500NameStyle { - - public static final org.bouncycastle.asn1.x500.X500NameStyle INSTANCE; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier businessCategory; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier c; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier cn; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier dc; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier description; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier destinationIndicator; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier distinguishedName; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier dnQualifier; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier enhancedSearchGuide; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier facsimileTelephoneNumber; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier generationQualifier; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier givenName; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier houseIdentifier; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier initials; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier internationalISDNNumber; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier l; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier member; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier name; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier o; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier ou; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier owner; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier physicalDeliveryOfficeName; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier postalAddress; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier postalCode; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier postOfficeBox; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier preferredDeliveryMethod; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier registeredAddress; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier roleOccupant; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier searchGuide; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier seeAlso; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier serialNumber; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier sn; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier st; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier street; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier telephoneNumber; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier teletexTerminalIdentifier; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier telexNumber; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier title; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier uid; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier uniqueMember; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier userPassword; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier x121Address; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier x500UniqueIdentifier; - - protected RFC4519Style() { - } - - public org.bouncycastle.asn1.ASN1Encodable stringToValue(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, String value) { - } - - public org.bouncycastle.asn1.ASN1ObjectIdentifier attrNameToOID(String attrName) { - } - - public boolean areEqual(org.bouncycastle.asn1.x500.X500Name name1, org.bouncycastle.asn1.x500.X500Name name2) { - } - - protected boolean rdnAreEqual(org.bouncycastle.asn1.x500.RDN rdn1, org.bouncycastle.asn1.x500.RDN rdn2) { - } - - public org.bouncycastle.asn1.x500.RDN[] fromString(String dirName) { - } - - public int calculateHashCode(org.bouncycastle.asn1.x500.X500Name name) { - } - - public String toString(org.bouncycastle.asn1.x500.X500Name name) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/AccessDescription.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/AccessDescription.java deleted file mode 100644 index bbdbf4351..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/AccessDescription.java +++ /dev/null @@ -1,50 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * The AccessDescription object. - *
- * AccessDescription ::= SEQUENCE { - * accessMethod OBJECT IDENTIFIER, - * accessLocation GeneralName } - *- */ -public class AccessDescription extends org.bouncycastle.asn1.ASN1Object { - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_ad_caIssuers; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_ad_ocsp; - - /** - * create an AccessDescription with the oid and location provided. - */ - public AccessDescription(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, GeneralName location) { - } - - public static AccessDescription getInstance(Object obj) { - } - - /** - * - * @return the access method. - */ - public org.bouncycastle.asn1.ASN1ObjectIdentifier getAccessMethod() { - } - - /** - * - * @return the access location - */ - public GeneralName getAccessLocation() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } - - public String toString() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/AlgorithmIdentifier.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/AlgorithmIdentifier.java deleted file mode 100644 index 003512bd4..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/AlgorithmIdentifier.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -public class AlgorithmIdentifier extends org.bouncycastle.asn1.ASN1Object { - - public AlgorithmIdentifier(org.bouncycastle.asn1.ASN1ObjectIdentifier objectId) { - } - - /** - * @deprecated use ASN1ObjectIdentifier - * @param objectId - */ - public AlgorithmIdentifier(String objectId) { - } - - /** - * @deprecated use ASN1ObjectIdentifier - * @param objectId - */ - public AlgorithmIdentifier(org.bouncycastle.asn1.DERObjectIdentifier objectId) { - } - - /** - * @deprecated use ASN1ObjectIdentifier - * @param objectId - * @param parameters - */ - public AlgorithmIdentifier(org.bouncycastle.asn1.DERObjectIdentifier objectId, org.bouncycastle.asn1.ASN1Encodable parameters) { - } - - public AlgorithmIdentifier(org.bouncycastle.asn1.ASN1ObjectIdentifier objectId, org.bouncycastle.asn1.ASN1Encodable parameters) { - } - - public AlgorithmIdentifier(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public static AlgorithmIdentifier getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static AlgorithmIdentifier getInstance(Object obj) { - } - - public org.bouncycastle.asn1.ASN1ObjectIdentifier getAlgorithm() { - } - - /** - * @deprecated use getAlgorithm - * @return - */ - public org.bouncycastle.asn1.ASN1ObjectIdentifier getObjectId() { - } - - public org.bouncycastle.asn1.ASN1Encodable getParameters() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - *
- * AlgorithmIdentifier ::= SEQUENCE { - * algorithm OBJECT IDENTIFIER, - * parameters ANY DEFINED BY algorithm OPTIONAL } - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/AttCertIssuer.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/AttCertIssuer.java deleted file mode 100644 index 300beeea5..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/AttCertIssuer.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -public class AttCertIssuer extends org.bouncycastle.asn1.ASN1Object implements org.bouncycastle.asn1.ASN1Choice { - - /** - * Don't use this one if you are trying to be RFC 3281 compliant. - * Use it for v1 attribute certificates only. - * - * @param names our GeneralNames structure - */ - public AttCertIssuer(GeneralNames names) { - } - - public AttCertIssuer(V2Form v2Form) { - } - - public static AttCertIssuer getInstance(Object obj) { - } - - public static AttCertIssuer getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public org.bouncycastle.asn1.ASN1Encodable getIssuer() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - *
- * AttCertIssuer ::= CHOICE { - * v1Form GeneralNames, -- MUST NOT be used in this - * -- profile - * v2Form [0] V2Form -- v2 only - * } - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/AttCertValidityPeriod.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/AttCertValidityPeriod.java deleted file mode 100644 index dc64d357c..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/AttCertValidityPeriod.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -public class AttCertValidityPeriod extends org.bouncycastle.asn1.ASN1Object { - - /** - * @param notBeforeTime - * @param notAfterTime - */ - public AttCertValidityPeriod(org.bouncycastle.asn1.DERGeneralizedTime notBeforeTime, org.bouncycastle.asn1.DERGeneralizedTime notAfterTime) { - } - - public static AttCertValidityPeriod getInstance(Object obj) { - } - - public org.bouncycastle.asn1.DERGeneralizedTime getNotBeforeTime() { - } - - public org.bouncycastle.asn1.DERGeneralizedTime getNotAfterTime() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - *
- * AttCertValidityPeriod ::= SEQUENCE { - * notBeforeTime GeneralizedTime, - * notAfterTime GeneralizedTime - * } - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/Attribute.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/Attribute.java deleted file mode 100644 index d5823a8fd..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/Attribute.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -public class Attribute extends org.bouncycastle.asn1.ASN1Object { - - public Attribute(org.bouncycastle.asn1.ASN1ObjectIdentifier attrType, org.bouncycastle.asn1.ASN1Set attrValues) { - } - - /** - * return an Attribute object from the given object. - * - * @param o the object we want converted. - * @exception IllegalArgumentException if the object cannot be converted. - */ - public static Attribute getInstance(Object o) { - } - - public org.bouncycastle.asn1.ASN1ObjectIdentifier getAttrType() { - } - - public org.bouncycastle.asn1.ASN1Encodable[] getAttributeValues() { - } - - public org.bouncycastle.asn1.ASN1Set getAttrValues() { - } - - /** - * - * Produce an object suitable for an ASN1OutputStream. - *
- * Attribute ::= SEQUENCE { - * attrType OBJECT IDENTIFIER, - * attrValues SET OF AttributeValue - * } - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/AttributeCertificate.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/AttributeCertificate.java deleted file mode 100644 index 2dabc92ee..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/AttributeCertificate.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -public class AttributeCertificate extends org.bouncycastle.asn1.ASN1Object { - - public AttributeCertificate(AttributeCertificateInfo acinfo, AlgorithmIdentifier signatureAlgorithm, org.bouncycastle.asn1.DERBitString signatureValue) { - } - - public AttributeCertificate(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - /** - * @param obj - * @return an AttributeCertificate object - */ - public static AttributeCertificate getInstance(Object obj) { - } - - public AttributeCertificateInfo getAcinfo() { - } - - public AlgorithmIdentifier getSignatureAlgorithm() { - } - - public org.bouncycastle.asn1.DERBitString getSignatureValue() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - *
- * AttributeCertificate ::= SEQUENCE { - * acinfo AttributeCertificateInfo, - * signatureAlgorithm AlgorithmIdentifier, - * signatureValue BIT STRING - * } - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/AttributeCertificateInfo.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/AttributeCertificateInfo.java deleted file mode 100644 index db8c49ef6..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/AttributeCertificateInfo.java +++ /dev/null @@ -1,63 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -public class AttributeCertificateInfo extends org.bouncycastle.asn1.ASN1Object { - - public static AttributeCertificateInfo getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static AttributeCertificateInfo getInstance(Object obj) { - } - - public org.bouncycastle.asn1.ASN1Integer getVersion() { - } - - public Holder getHolder() { - } - - public AttCertIssuer getIssuer() { - } - - public AlgorithmIdentifier getSignature() { - } - - public org.bouncycastle.asn1.ASN1Integer getSerialNumber() { - } - - public AttCertValidityPeriod getAttrCertValidityPeriod() { - } - - public org.bouncycastle.asn1.ASN1Sequence getAttributes() { - } - - public org.bouncycastle.asn1.DERBitString getIssuerUniqueID() { - } - - public Extensions getExtensions() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - *
- * AttributeCertificateInfo ::= SEQUENCE { - * version AttCertVersion -- version is v2, - * holder Holder, - * issuer AttCertIssuer, - * signature AlgorithmIdentifier, - * serialNumber CertificateSerialNumber, - * attrCertValidityPeriod AttCertValidityPeriod, - * attributes SEQUENCE OF Attribute, - * issuerUniqueID UniqueIdentifier OPTIONAL, - * extensions Extensions OPTIONAL - * } - * - * AttCertVersion ::= INTEGER { v2(1) } - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/AuthorityInformationAccess.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/AuthorityInformationAccess.java deleted file mode 100644 index 9118ad995..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/AuthorityInformationAccess.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * The AuthorityInformationAccess object. - *
- * id-pe-authorityInfoAccess OBJECT IDENTIFIER ::= { id-pe 1 } - * - * AuthorityInfoAccessSyntax ::= - * SEQUENCE SIZE (1..MAX) OF AccessDescription - * AccessDescription ::= SEQUENCE { - * accessMethod OBJECT IDENTIFIER, - * accessLocation GeneralName } - * - * id-ad OBJECT IDENTIFIER ::= { id-pkix 48 } - * id-ad-caIssuers OBJECT IDENTIFIER ::= { id-ad 2 } - * id-ad-ocsp OBJECT IDENTIFIER ::= { id-ad 1 } - *- */ -public class AuthorityInformationAccess extends org.bouncycastle.asn1.ASN1Object { - - /** - * create an AuthorityInformationAccess with the oid and location provided. - */ - public AuthorityInformationAccess(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, GeneralName location) { - } - - public static AuthorityInformationAccess getInstance(Object obj) { - } - - /** - * - * @return the access descriptions contained in this object. - */ - public AccessDescription[] getAccessDescriptions() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } - - public String toString() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/AuthorityKeyIdentifier.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/AuthorityKeyIdentifier.java deleted file mode 100644 index 5c42d5805..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/AuthorityKeyIdentifier.java +++ /dev/null @@ -1,91 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * The AuthorityKeyIdentifier object. - *
- * id-ce-authorityKeyIdentifier OBJECT IDENTIFIER ::= { id-ce 35 } - * - * AuthorityKeyIdentifier ::= SEQUENCE { - * keyIdentifier [0] IMPLICIT KeyIdentifier OPTIONAL, - * authorityCertIssuer [1] IMPLICIT GeneralNames OPTIONAL, - * authorityCertSerialNumber [2] IMPLICIT CertificateSerialNumber OPTIONAL } - * - * KeyIdentifier ::= OCTET STRING - *- */ -public class AuthorityKeyIdentifier extends org.bouncycastle.asn1.ASN1Object { - - protected AuthorityKeyIdentifier(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - /** - * - * Calulates the keyidentifier using a SHA1 hash over the BIT STRING - * from SubjectPublicKeyInfo as defined in RFC2459. - * - * Example of making a AuthorityKeyIdentifier: - *
- * SubjectPublicKeyInfo apki = new SubjectPublicKeyInfo((ASN1Sequence)new ASN1InputStream( - * publicKey.getEncoded()).readObject()); - * AuthorityKeyIdentifier aki = new AuthorityKeyIdentifier(apki); - *- */ - public AuthorityKeyIdentifier(SubjectPublicKeyInfo spki) { - } - - /** - * create an AuthorityKeyIdentifier with the GeneralNames tag and - * the serial number provided as well. - */ - public AuthorityKeyIdentifier(SubjectPublicKeyInfo spki, GeneralNames name, javabc.BigInteger serialNumber) { - } - - /** - * create an AuthorityKeyIdentifier with the GeneralNames tag and - * the serial number provided. - */ - public AuthorityKeyIdentifier(GeneralNames name, javabc.BigInteger serialNumber) { - } - - /** - * create an AuthorityKeyIdentifier with a precomupted key identifier - */ - public AuthorityKeyIdentifier(byte[] keyIdentifier) { - } - - /** - * create an AuthorityKeyIdentifier with a precomupted key identifier - * and the GeneralNames tag and the serial number provided as well. - */ - public AuthorityKeyIdentifier(byte[] keyIdentifier, GeneralNames name, javabc.BigInteger serialNumber) { - } - - public static AuthorityKeyIdentifier getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static AuthorityKeyIdentifier getInstance(Object obj) { - } - - public byte[] getKeyIdentifier() { - } - - public GeneralNames getAuthorityCertIssuer() { - } - - public javabc.BigInteger getAuthorityCertSerialNumber() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } - - public String toString() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/BasicConstraints.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/BasicConstraints.java deleted file mode 100644 index 96a99fd73..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/BasicConstraints.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -public class BasicConstraints extends org.bouncycastle.asn1.ASN1Object { - - public BasicConstraints(boolean cA) { - } - - /** - * create a cA=true object for the given path length constraint. - * - * @param pathLenConstraint - */ - public BasicConstraints(int pathLenConstraint) { - } - - public static BasicConstraints getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static BasicConstraints getInstance(Object obj) { - } - - public boolean isCA() { - } - - public javabc.BigInteger getPathLenConstraint() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - *
- * BasicConstraints := SEQUENCE { - * cA BOOLEAN DEFAULT FALSE, - * pathLenConstraint INTEGER (0..MAX) OPTIONAL - * } - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } - - public String toString() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/CRLDistPoint.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/CRLDistPoint.java deleted file mode 100644 index 495e13641..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/CRLDistPoint.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -public class CRLDistPoint extends org.bouncycastle.asn1.ASN1Object { - - public CRLDistPoint(DistributionPoint[] points) { - } - - public static CRLDistPoint getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static CRLDistPoint getInstance(Object obj) { - } - - /** - * Return the distribution points making up the sequence. - * - * @return DistributionPoint[] - */ - public DistributionPoint[] getDistributionPoints() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - *
- * CRLDistPoint ::= SEQUENCE SIZE {1..MAX} OF DistributionPoint - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } - - public String toString() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/CRLNumber.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/CRLNumber.java deleted file mode 100644 index 7ab658366..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/CRLNumber.java +++ /dev/null @@ -1,30 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * The CRLNumber object. - *
- * CRLNumber::= INTEGER(0..MAX) - *- */ -public class CRLNumber extends org.bouncycastle.asn1.ASN1Object { - - public CRLNumber(javabc.BigInteger number) { - } - - public javabc.BigInteger getCRLNumber() { - } - - public String toString() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } - - public static CRLNumber getInstance(Object o) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/CRLReason.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/CRLReason.java deleted file mode 100644 index e49123575..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/CRLReason.java +++ /dev/null @@ -1,111 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * The CRLReason enumeration. - *
- * CRLReason ::= ENUMERATED { - * unspecified (0), - * keyCompromise (1), - * cACompromise (2), - * affiliationChanged (3), - * superseded (4), - * cessationOfOperation (5), - * certificateHold (6), - * removeFromCRL (8), - * privilegeWithdrawn (9), - * aACompromise (10) - * } - *- */ -public class CRLReason extends org.bouncycastle.asn1.ASN1Object { - - /** - * @deprecated use lower case version - */ - public static final int UNSPECIFIED = 0; - - /** - * @deprecated use lower case version - */ - public static final int KEY_COMPROMISE = 1; - - /** - * @deprecated use lower case version - */ - public static final int CA_COMPROMISE = 2; - - /** - * @deprecated use lower case version - */ - public static final int AFFILIATION_CHANGED = 3; - - /** - * @deprecated use lower case version - */ - public static final int SUPERSEDED = 4; - - /** - * @deprecated use lower case version - */ - public static final int CESSATION_OF_OPERATION = 5; - - /** - * @deprecated use lower case version - */ - public static final int CERTIFICATE_HOLD = 6; - - /** - * @deprecated use lower case version - */ - public static final int REMOVE_FROM_CRL = 8; - - /** - * @deprecated use lower case version - */ - public static final int PRIVILEGE_WITHDRAWN = 9; - - /** - * @deprecated use lower case version - */ - public static final int AA_COMPROMISE = 10; - - public static final int unspecified = 0; - - public static final int keyCompromise = 1; - - public static final int cACompromise = 2; - - public static final int affiliationChanged = 3; - - public static final int superseded = 4; - - public static final int cessationOfOperation = 5; - - public static final int certificateHold = 6; - - public static final int removeFromCRL = 8; - - public static final int privilegeWithdrawn = 9; - - public static final int aACompromise = 10; - - public static CRLReason getInstance(Object o) { - } - - public String toString() { - } - - public javabc.BigInteger getValue() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } - - public static CRLReason lookup(int value) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/CertPolicyId.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/CertPolicyId.java deleted file mode 100644 index 45ef5322f..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/CertPolicyId.java +++ /dev/null @@ -1,20 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * CertPolicyId, used in the CertificatePolicies and PolicyMappings - * X509V3 Extensions. - * - *
- * CertPolicyId ::= OBJECT IDENTIFIER - *- */ -public class CertPolicyId extends org.bouncycastle.asn1.ASN1ObjectIdentifier { - - public CertPolicyId(String id) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/Certificate.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/Certificate.java deleted file mode 100644 index e045cba2b..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/Certificate.java +++ /dev/null @@ -1,61 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * an X509Certificate structure. - *
- * Certificate ::= SEQUENCE { - * tbsCertificate TBSCertificate, - * signatureAlgorithm AlgorithmIdentifier, - * signature BIT STRING - * } - *- */ -public class Certificate extends org.bouncycastle.asn1.ASN1Object { - - public static Certificate getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static Certificate getInstance(Object obj) { - } - - public TBSCertificate getTBSCertificate() { - } - - public org.bouncycastle.asn1.ASN1Integer getVersion() { - } - - public int getVersionNumber() { - } - - public org.bouncycastle.asn1.ASN1Integer getSerialNumber() { - } - - public org.bouncycastle.asn1.x500.X500Name getIssuer() { - } - - public Time getStartDate() { - } - - public Time getEndDate() { - } - - public org.bouncycastle.asn1.x500.X500Name getSubject() { - } - - public SubjectPublicKeyInfo getSubjectPublicKeyInfo() { - } - - public AlgorithmIdentifier getSignatureAlgorithm() { - } - - public org.bouncycastle.asn1.DERBitString getSignature() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/CertificateList.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/CertificateList.java deleted file mode 100644 index 33621cbe1..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/CertificateList.java +++ /dev/null @@ -1,61 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * PKIX RFC-2459 - * - * The X.509 v2 CRL syntax is as follows. For signature calculation, - * the data that is to be signed is ASN.1 DER encoded. - * - *
- * CertificateList ::= SEQUENCE { - * tbsCertList TBSCertList, - * signatureAlgorithm AlgorithmIdentifier, - * signatureValue BIT STRING } - *- */ -public class CertificateList extends org.bouncycastle.asn1.ASN1Object { - - public CertificateList(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public static CertificateList getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static CertificateList getInstance(Object obj) { - } - - public TBSCertList getTBSCertList() { - } - - public TBSCertList.CRLEntry[] getRevokedCertificates() { - } - - public java.util.Enumeration getRevokedCertificateEnumeration() { - } - - public AlgorithmIdentifier getSignatureAlgorithm() { - } - - public org.bouncycastle.asn1.DERBitString getSignature() { - } - - public int getVersionNumber() { - } - - public org.bouncycastle.asn1.x500.X500Name getIssuer() { - } - - public Time getThisUpdate() { - } - - public Time getNextUpdate() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/CertificatePair.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/CertificatePair.java deleted file mode 100644 index dcaf20403..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/CertificatePair.java +++ /dev/null @@ -1,83 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * This class helps to support crossCerfificatePairs in a LDAP directory - * according RFC 2587 - * - *
- * crossCertificatePairATTRIBUTE::={ - * WITH SYNTAX CertificatePair - * EQUALITY MATCHING RULE certificatePairExactMatch - * ID joint-iso-ccitt(2) ds(5) attributeType(4) crossCertificatePair(40)} - *- * - *
The forward elements of the crossCertificatePair attribute of a - * CA's directory entry shall be used to store all, except self-issued - * certificates issued to this CA. Optionally, the reverse elements of the - * crossCertificatePair attribute, of a CA's directory entry may contain a - * subset of certificates issued by this CA to other CAs. When both the forward - * and the reverse elements are present in a single attribute value, issuer name - * in one certificate shall match the subject name in the other and vice versa, - * and the subject public key in one certificate shall be capable of verifying - * the digital signature on the other certificate and vice versa. - * - * When a reverse element is present, the forward element value and the reverse - * element value need not be stored in the same attribute value; in other words, - * they can be stored in either a single attribute value or two attribute - * values.- * - *
- * CertificatePair ::= SEQUENCE { - * forward [0] Certificate OPTIONAL, - * reverse [1] Certificate OPTIONAL, - * -- at least one of the pair shall be present -- } - *- */ -public class CertificatePair extends org.bouncycastle.asn1.ASN1Object { - - /** - * Constructor from a given details. - * - * @param forward Certificates issued to this CA. - * @param reverse Certificates issued by this CA to other CAs. - */ - public CertificatePair(X509CertificateStructure forward, X509CertificateStructure reverse) { - } - - public static CertificatePair getInstance(Object obj) { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - * - * Returns: - * - *
- * CertificatePair ::= SEQUENCE { - * forward [0] Certificate OPTIONAL, - * reverse [1] Certificate OPTIONAL, - * -- at least one of the pair shall be present -- } - *- * - * @return a ASN1Primitive - */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } - - /** - * @return Returns the forward. - */ - public X509CertificateStructure getForward() { - } - - /** - * @return Returns the reverse. - */ - public X509CertificateStructure getReverse() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/CertificatePolicies.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/CertificatePolicies.java deleted file mode 100644 index 2dbfc34a3..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/CertificatePolicies.java +++ /dev/null @@ -1,41 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -public class CertificatePolicies extends org.bouncycastle.asn1.ASN1Object { - - /** - * Construct a CertificatePolicies object containing one PolicyInformation. - * - * @param name the name to be contained. - */ - public CertificatePolicies(PolicyInformation name) { - } - - public CertificatePolicies(PolicyInformation[] policyInformation) { - } - - public static CertificatePolicies getInstance(Object obj) { - } - - public static CertificatePolicies getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public PolicyInformation[] getPolicyInformation() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - *
- * CertificatePolicies ::= SEQUENCE SIZE {1..MAX} OF PolicyInformation - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } - - public String toString() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/DSAParameter.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/DSAParameter.java deleted file mode 100644 index 3fc7a9c4e..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/DSAParameter.java +++ /dev/null @@ -1,33 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -public class DSAParameter extends org.bouncycastle.asn1.ASN1Object { - - public DSAParameter(javabc.BigInteger p, javabc.BigInteger q, javabc.BigInteger g) { - } - - public DSAParameter(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public static DSAParameter getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static DSAParameter getInstance(Object obj) { - } - - public javabc.BigInteger getP() { - } - - public javabc.BigInteger getQ() { - } - - public javabc.BigInteger getG() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/DigestInfo.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/DigestInfo.java deleted file mode 100644 index 603ecc4e4..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/DigestInfo.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * The DigestInfo object. - *
- * DigestInfo::=SEQUENCE{ - * digestAlgorithm AlgorithmIdentifier, - * digest OCTET STRING } - *- */ -public class DigestInfo extends org.bouncycastle.asn1.ASN1Object { - - public DigestInfo(AlgorithmIdentifier algId, byte[] digest) { - } - - public DigestInfo(org.bouncycastle.asn1.ASN1Sequence obj) { - } - - public static DigestInfo getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static DigestInfo getInstance(Object obj) { - } - - public AlgorithmIdentifier getAlgorithmId() { - } - - public byte[] getDigest() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/DisplayText.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/DisplayText.java deleted file mode 100644 index 9dacaefbe..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/DisplayText.java +++ /dev/null @@ -1,85 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - *
DisplayText
class, used in
- * CertificatePolicies
X509 V3 extensions (in policy qualifiers).
- *
- * It stores a string in a chosen encoding. - *
- * DisplayText ::= CHOICE { - * ia5String IA5String (SIZE (1..200)), - * visibleString VisibleString (SIZE (1..200)), - * bmpString BMPString (SIZE (1..200)), - * utf8String UTF8String (SIZE (1..200)) } - *- * @see PolicyQualifierInfo - * @see PolicyInformation - */ -public class DisplayText extends org.bouncycastle.asn1.ASN1Object implements org.bouncycastle.asn1.ASN1Choice { - - /** - * Constant corresponding to ia5String encoding. - */ - public static final int CONTENT_TYPE_IA5STRING = 0; - - /** - * Constant corresponding to bmpString encoding. - */ - public static final int CONTENT_TYPE_BMPSTRING = 1; - - /** - * Constant corresponding to utf8String encoding. - */ - public static final int CONTENT_TYPE_UTF8STRING = 2; - - /** - * Constant corresponding to visibleString encoding. - */ - public static final int CONTENT_TYPE_VISIBLESTRING = 3; - - /** - * Describe constant
DISPLAY_TEXT_MAXIMUM_SIZE
here.
- */
- public static final int DISPLAY_TEXT_MAXIMUM_SIZE = 200;
-
- /**
- * Creates a new DisplayText
instance.
- *
- * @param type the desired encoding type for the text.
- * @param text the text to store. Strings longer than 200
- * characters are truncated.
- */
- public DisplayText(int type, String text) {
- }
-
- /**
- * Creates a new DisplayText
instance.
- *
- * @param text the text to encapsulate. Strings longer than 200
- * characters are truncated.
- */
- public DisplayText(String text) {
- }
-
- public static DisplayText getInstance(Object obj) {
- }
-
- public static DisplayText getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) {
- }
-
- public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() {
- }
-
- /**
- * Returns the stored String
object.
- *
- * @return the stored text as a String
.
- */
- public String getString() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/DistributionPoint.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/DistributionPoint.java
deleted file mode 100644
index f79f7d3d9..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/DistributionPoint.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- *
- * Support classes useful for encoding and processing X.509 certificates.
- */
-package org.bouncycastle.asn1.x509;
-
-
-/**
- * The DistributionPoint object.
- * - * DistributionPoint ::= SEQUENCE { - * distributionPoint [0] DistributionPointName OPTIONAL, - * reasons [1] ReasonFlags OPTIONAL, - * cRLIssuer [2] GeneralNames OPTIONAL - * } - *- */ -public class DistributionPoint extends org.bouncycastle.asn1.ASN1Object { - - public DistributionPoint(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public DistributionPoint(DistributionPointName distributionPoint, ReasonFlags reasons, GeneralNames cRLIssuer) { - } - - public static DistributionPoint getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static DistributionPoint getInstance(Object obj) { - } - - public DistributionPointName getDistributionPoint() { - } - - public ReasonFlags getReasons() { - } - - public GeneralNames getCRLIssuer() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } - - public String toString() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/DistributionPointName.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/DistributionPointName.java deleted file mode 100644 index 1cde10674..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/DistributionPointName.java +++ /dev/null @@ -1,59 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * The DistributionPointName object. - *
- * DistributionPointName ::= CHOICE { - * fullName [0] GeneralNames, - * nameRelativeToCRLIssuer [1] RDN - * } - *- */ -public class DistributionPointName extends org.bouncycastle.asn1.ASN1Object implements org.bouncycastle.asn1.ASN1Choice { - - public static final int FULL_NAME = 0; - - public static final int NAME_RELATIVE_TO_CRL_ISSUER = 1; - - public DistributionPointName(int type, org.bouncycastle.asn1.ASN1Encodable name) { - } - - public DistributionPointName(GeneralNames name) { - } - - public DistributionPointName(org.bouncycastle.asn1.ASN1TaggedObject obj) { - } - - public static DistributionPointName getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static DistributionPointName getInstance(Object obj) { - } - - /** - * Return the tag number applying to the underlying choice. - * - * @return the tag number for this point name. - */ - public int getType() { - } - - /** - * Return the tagged object inside the distribution point name. - * - * @return the underlying choice item. - */ - public org.bouncycastle.asn1.ASN1Encodable getName() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } - - public String toString() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/ExtendedKeyUsage.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/ExtendedKeyUsage.java deleted file mode 100644 index ac2bce445..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/ExtendedKeyUsage.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * The extendedKeyUsage object. - *
- * extendedKeyUsage ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId - *- */ -public class ExtendedKeyUsage extends org.bouncycastle.asn1.ASN1Object { - - public ExtendedKeyUsage(KeyPurposeId usage) { - } - - public ExtendedKeyUsage(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public ExtendedKeyUsage(java.util.Vector usages) { - } - - public static ExtendedKeyUsage getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static ExtendedKeyUsage getInstance(Object obj) { - } - - public boolean hasKeyPurposeId(KeyPurposeId keyPurposeId) { - } - - /** - * Returns all extended key usages. - * The returned vector contains ASN1ObjectIdentifiers. - * @return A vector with all key purposes. - */ - public java.util.Vector getUsages() { - } - - public int size() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/Extension.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/Extension.java deleted file mode 100644 index f7a3b860d..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/Extension.java +++ /dev/null @@ -1,194 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * an object for the elements in the X.509 V3 extension block. - */ -public class Extension { - - /** - * Subject Directory Attributes - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier subjectDirectoryAttributes; - - /** - * Subject Key Identifier - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier subjectKeyIdentifier; - - /** - * Key Usage - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier keyUsage; - - /** - * Private Key Usage Period - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier privateKeyUsagePeriod; - - /** - * Subject Alternative Name - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier subjectAlternativeName; - - /** - * Issuer Alternative Name - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier issuerAlternativeName; - - /** - * Basic Constraints - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier basicConstraints; - - /** - * CRL Number - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier cRLNumber; - - /** - * Reason code - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier reasonCode; - - /** - * Hold Instruction Code - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier instructionCode; - - /** - * Invalidity Date - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier invalidityDate; - - /** - * Delta CRL indicator - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier deltaCRLIndicator; - - /** - * Issuing Distribution Point - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier issuingDistributionPoint; - - /** - * Certificate Issuer - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier certificateIssuer; - - /** - * Name Constraints - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier nameConstraints; - - /** - * CRL Distribution Points - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier cRLDistributionPoints; - - /** - * Certificate Policies - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier certificatePolicies; - - /** - * Policy Mappings - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier policyMappings; - - /** - * Authority Key Identifier - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier authorityKeyIdentifier; - - /** - * Policy Constraints - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier policyConstraints; - - /** - * Extended Key Usage - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier extendedKeyUsage; - - /** - * Freshest CRL - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier freshestCRL; - - /** - * Inhibit Any Policy - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier inhibitAnyPolicy; - - /** - * Authority Info Access - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier authorityInfoAccess; - - /** - * Subject Info Access - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier subjectInfoAccess; - - /** - * Logo Type - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier logoType; - - /** - * BiometricInfo - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier biometricInfo; - - /** - * QCStatements - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier qCStatements; - - /** - * Audit identity extension in attribute certificates. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier auditIdentity; - - /** - * NoRevAvail extension in attribute certificates. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier noRevAvail; - - /** - * TargetInformation extension in attribute certificates. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier targetInformation; - - public Extension(org.bouncycastle.asn1.ASN1ObjectIdentifier extnId, org.bouncycastle.asn1.ASN1Boolean critical, org.bouncycastle.asn1.ASN1OctetString value) { - } - - public Extension(org.bouncycastle.asn1.ASN1ObjectIdentifier extnId, boolean critical, byte[] value) { - } - - public Extension(org.bouncycastle.asn1.ASN1ObjectIdentifier extnId, boolean critical, org.bouncycastle.asn1.ASN1OctetString value) { - } - - public org.bouncycastle.asn1.ASN1ObjectIdentifier getExtnId() { - } - - public boolean isCritical() { - } - - public org.bouncycastle.asn1.ASN1OctetString getExtnValue() { - } - - public org.bouncycastle.asn1.ASN1Encodable getParsedValue() { - } - - public int hashCode() { - } - - public boolean equals(Object o) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/Extensions.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/Extensions.java deleted file mode 100644 index f6ab62406..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/Extensions.java +++ /dev/null @@ -1,63 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -public class Extensions extends org.bouncycastle.asn1.ASN1Object { - - /** - * Base Constructor - * - * @param extensions an array of extensions. - */ - public Extensions(Extension[] extensions) { - } - - public static Extensions getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static Extensions getInstance(Object obj) { - } - - /** - * return an Enumeration of the extension field's object ids. - */ - public java.util.Enumeration oids() { - } - - /** - * return the extension represented by the object identifier - * passed in. - * - * @return the extension if it's present, null otherwise. - */ - public Extension getExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier oid) { - } - - /** - *
- * Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension - * - * Extension ::= SEQUENCE { - * extnId EXTENSION.&id ({ExtensionSet}), - * critical BOOLEAN DEFAULT FALSE, - * extnValue OCTET STRING } - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } - - public boolean equivalent(Extensions other) { - } - - public org.bouncycastle.asn1.ASN1ObjectIdentifier[] getExtensionOIDs() { - } - - public org.bouncycastle.asn1.ASN1ObjectIdentifier[] getNonCriticalExtensionOIDs() { - } - - public org.bouncycastle.asn1.ASN1ObjectIdentifier[] getCriticalExtensionOIDs() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/ExtensionsGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/ExtensionsGenerator.java deleted file mode 100644 index e70a7636c..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/ExtensionsGenerator.java +++ /dev/null @@ -1,59 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * Generator for X.509 extensions - */ -public class ExtensionsGenerator { - - public ExtensionsGenerator() { - } - - /** - * Reset the generator - */ - public void reset() { - } - - /** - * Add an extension with the given oid and the passed in value to be included - * in the OCTET STRING associated with the extension. - * - * @param oid OID for the extension. - * @param critical true if critical, false otherwise. - * @param value the ASN.1 object to be included in the extension. - */ - public void addExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, boolean critical, org.bouncycastle.asn1.ASN1Encodable value) { - } - - /** - * Add an extension with the given oid and the passed in byte array to be wrapped in the - * OCTET STRING associated with the extension. - * - * @param oid OID for the extension. - * @param critical true if critical, false otherwise. - * @param value the byte array to be wrapped. - */ - public void addExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, boolean critical, byte[] value) { - } - - /** - * Return true if there are no extension present in this generator. - * - * @return true if empty, false otherwise - */ - public boolean isEmpty() { - } - - /** - * Generate an Extensions object based on the current state of the generator. - * - * @return an X09Extensions object. - */ - public Extensions generate() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/GeneralName.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/GeneralName.java deleted file mode 100644 index c7f5d23c9..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/GeneralName.java +++ /dev/null @@ -1,136 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * The GeneralName object. - *
- * GeneralName ::= CHOICE { - * otherName [0] OtherName, - * rfc822Name [1] IA5String, - * dNSName [2] IA5String, - * x400Address [3] ORAddress, - * directoryName [4] Name, - * ediPartyName [5] EDIPartyName, - * uniformResourceIdentifier [6] IA5String, - * iPAddress [7] OCTET STRING, - * registeredID [8] OBJECT IDENTIFIER} - * - * OtherName ::= SEQUENCE { - * type-id OBJECT IDENTIFIER, - * value [0] EXPLICIT ANY DEFINED BY type-id } - * - * EDIPartyName ::= SEQUENCE { - * nameAssigner [0] DirectoryString OPTIONAL, - * partyName [1] DirectoryString } - * - * Name ::= CHOICE { RDNSequence } - *- */ -public class GeneralName extends org.bouncycastle.asn1.ASN1Object implements org.bouncycastle.asn1.ASN1Choice { - - public static final int otherName = 0; - - public static final int rfc822Name = 1; - - public static final int dNSName = 2; - - public static final int x400Address = 3; - - public static final int directoryName = 4; - - public static final int ediPartyName = 5; - - public static final int uniformResourceIdentifier = 6; - - public static final int iPAddress = 7; - - public static final int registeredID = 8; - - /** - * @deprecated use X500Name constructor. - * @param dirName - */ - public GeneralName(X509Name dirName) { - } - - public GeneralName(org.bouncycastle.asn1.x500.X500Name dirName) { - } - - /** - * When the subjectAltName extension contains an Internet mail address, - * the address MUST be included as an rfc822Name. The format of an - * rfc822Name is an "addr-spec" as defined in RFC 822 [RFC 822]. - * - * When the subjectAltName extension contains a domain name service - * label, the domain name MUST be stored in the dNSName (an IA5String). - * The name MUST be in the "preferred name syntax," as specified by RFC - * 1034 [RFC 1034]. - * - * When the subjectAltName extension contains a URI, the name MUST be - * stored in the uniformResourceIdentifier (an IA5String). The name MUST - * be a non-relative URL, and MUST follow the URL syntax and encoding - * rules specified in [RFC 1738]. The name must include both a scheme - * (e.g., "http" or "ftp") and a scheme-specific-part. The scheme- - * specific-part must include a fully qualified domain name or IP - * address as the host. - * - * When the subjectAltName extension contains a iPAddress, the address - * MUST be stored in the octet string in "network byte order," as - * specified in RFC 791 [RFC 791]. The least significant bit (LSB) of - * each octet is the LSB of the corresponding byte in the network - * address. For IP Version 4, as specified in RFC 791, the octet string - * MUST contain exactly four octets. For IP Version 6, as specified in - * RFC 1883, the octet string MUST contain exactly sixteen octets [RFC - * 1883]. - */ - public GeneralName(int tag, org.bouncycastle.asn1.ASN1Encodable name) { - } - - /** - * Create a GeneralName for the given tag from the passed in String. - *
- * This constructor can handle: - *
- * Note: A directory name can be encoded in different ways into a byte - * representation. Be aware of this if the byte representation is used for - * comparing results. - * - * @param tag tag number - * @param name string representation of name - * @throws IllegalArgumentException if the string encoding is not correct or * not supported. - */ - public GeneralName(int tag, String name) { - } - - public static GeneralName getInstance(Object obj) { - } - - public static GeneralName getInstance(org.bouncycastle.asn1.ASN1TaggedObject tagObj, boolean explicit) { - } - - public int getTagNo() { - } - - public org.bouncycastle.asn1.ASN1Encodable getName() { - } - - public String toString() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/GeneralNames.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/GeneralNames.java deleted file mode 100644 index 2f957cb5b..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/GeneralNames.java +++ /dev/null @@ -1,41 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -public class GeneralNames extends org.bouncycastle.asn1.ASN1Object { - - /** - * Construct a GeneralNames object containing one GeneralName. - * - * @param name the name to be contained. - */ - public GeneralNames(GeneralName name) { - } - - public GeneralNames(GeneralName[] names) { - } - - public static GeneralNames getInstance(Object obj) { - } - - public static GeneralNames getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public GeneralName[] getNames() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - *
- * GeneralNames ::= SEQUENCE SIZE {1..MAX} OF GeneralName - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } - - public String toString() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/GeneralSubtree.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/GeneralSubtree.java deleted file mode 100644 index 25a5fd07b..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/GeneralSubtree.java +++ /dev/null @@ -1,83 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * Class for containing a restriction object subtrees in NameConstraints. See - * RFC 3280. - * - *
- * - * GeneralSubtree ::= SEQUENCE - * { - * base GeneralName, - * minimum [0] BaseDistance DEFAULT 0, - * maximum [1] BaseDistance OPTIONAL - * } - *- * - * @see org.bouncycastle.asn1.x509.NameConstraints - * - */ -public class GeneralSubtree extends org.bouncycastle.asn1.ASN1Object { - - /** - * Constructor from a given details. - * - * According RFC 3280, the minimum and maximum fields are not used with any - * name forms, thus minimum MUST be zero, and maximum MUST be absent. - *
- * If minimum is null
, zero is assumed, if
- * maximum is null
, maximum is absent.
- *
- * @param base
- * A restriction.
- * @param minimum
- * Minimum
- *
- * @param maximum
- * Maximum
- */
- public GeneralSubtree(GeneralName base, javabc.BigInteger minimum, javabc.BigInteger maximum) {
- }
-
- public GeneralSubtree(GeneralName base) {
- }
-
- public static GeneralSubtree getInstance(org.bouncycastle.asn1.ASN1TaggedObject o, boolean explicit) {
- }
-
- public static GeneralSubtree getInstance(Object obj) {
- }
-
- public GeneralName getBase() {
- }
-
- public javabc.BigInteger getMinimum() {
- }
-
- public javabc.BigInteger getMaximum() {
- }
-
- /**
- * Produce an object suitable for an ASN1OutputStream.
- *
- * Returns:
- *
- *
- * GeneralSubtree ::= SEQUENCE - * { - * base GeneralName, - * minimum [0] BaseDistance DEFAULT 0, - * maximum [1] BaseDistance OPTIONAL - * } - *- * - * @return a ASN1Primitive - */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/Holder.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/Holder.java deleted file mode 100644 index 71ce51eab..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/Holder.java +++ /dev/null @@ -1,109 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * The Holder object. - *
- * For an v2 attribute certificate this is: - * - *
- * Holder ::= SEQUENCE { - * baseCertificateID [0] IssuerSerial OPTIONAL, - * -- the issuer and serial number of - * -- the holder's Public Key Certificate - * entityName [1] GeneralNames OPTIONAL, - * -- the name of the claimant or role - * objectDigestInfo [2] ObjectDigestInfo OPTIONAL - * -- used to directly authenticate the holder, - * -- for example, an executable - * } - *- * - *
- * For an v1 attribute certificate this is: - * - *
- * subject CHOICE { - * baseCertificateID [0] IssuerSerial, - * -- associated with a Public Key Certificate - * subjectName [1] GeneralNames }, - * -- associated with a name - *- */ -public class Holder extends org.bouncycastle.asn1.ASN1Object { - - public static final int V1_CERTIFICATE_HOLDER = 0; - - public static final int V2_CERTIFICATE_HOLDER = 1; - - public Holder(IssuerSerial baseCertificateID) { - } - - /** - * Constructs a holder from a IssuerSerial for a V1 or V2 certificate. - * . - * @param baseCertificateID The IssuerSerial. - * @param version The version of the attribute certificate. - */ - public Holder(IssuerSerial baseCertificateID, int version) { - } - - /** - * Constructs a holder with an entityName for V2 attribute certificates. - * - * @param entityName The entity or subject name. - */ - public Holder(GeneralNames entityName) { - } - - /** - * Constructs a holder with an entityName for V2 attribute certificates or - * with a subjectName for V1 attribute certificates. - * - * @param entityName The entity or subject name. - * @param version The version of the attribute certificate. - */ - public Holder(GeneralNames entityName, int version) { - } - - /** - * Constructs a holder from an object digest info. - * - * @param objectDigestInfo The object digest info object. - */ - public Holder(ObjectDigestInfo objectDigestInfo) { - } - - public static Holder getInstance(Object obj) { - } - - /** - * Returns 1 for V2 attribute certificates or 0 for V1 attribute - * certificates. - * @return The version of the attribute certificate. - */ - public int getVersion() { - } - - public IssuerSerial getBaseCertificateID() { - } - - /** - * Returns the entityName for an V2 attribute certificate or the subjectName - * for an V1 attribute certificate. - * - * @return The entityname or subjectname. - */ - public GeneralNames getEntityName() { - } - - public ObjectDigestInfo getObjectDigestInfo() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/IetfAttrSyntax.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/IetfAttrSyntax.java deleted file mode 100644 index 745d4556d..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/IetfAttrSyntax.java +++ /dev/null @@ -1,48 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * Implementation of
IetfAttrSyntax
as specified by RFC3281.
- */
-public class IetfAttrSyntax extends org.bouncycastle.asn1.ASN1Object {
-
- public static final int VALUE_OCTETS = 1;
-
- public static final int VALUE_OID = 2;
-
- public static final int VALUE_UTF8 = 3;
-
- public static IetfAttrSyntax getInstance(Object obj) {
- }
-
- public GeneralNames getPolicyAuthority() {
- }
-
- public int getValueType() {
- }
-
- public Object[] getValues() {
- }
-
- /**
- *
- * - * - * IetfAttrSyntax ::= SEQUENCE { - * policyAuthority [0] GeneralNames OPTIONAL, - * values SEQUENCE OF CHOICE { - * octets OCTET STRING, - * oid OBJECT IDENTIFIER, - * string UTF8String - * } - * } - * - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/IssuerSerial.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/IssuerSerial.java deleted file mode 100644 index 3ef68940a..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/IssuerSerial.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -public class IssuerSerial extends org.bouncycastle.asn1.ASN1Object { - - public IssuerSerial(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public IssuerSerial(GeneralNames issuer, org.bouncycastle.asn1.ASN1Integer serial) { - } - - public static IssuerSerial getInstance(Object obj) { - } - - public static IssuerSerial getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public GeneralNames getIssuer() { - } - - public org.bouncycastle.asn1.ASN1Integer getSerial() { - } - - public org.bouncycastle.asn1.DERBitString getIssuerUID() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - *
- * IssuerSerial ::= SEQUENCE { - * issuer GeneralNames, - * serial CertificateSerialNumber, - * issuerUID UniqueIdentifier OPTIONAL - * } - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/IssuingDistributionPoint.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/IssuingDistributionPoint.java deleted file mode 100644 index ed98282f2..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/IssuingDistributionPoint.java +++ /dev/null @@ -1,87 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - *
- * IssuingDistributionPoint ::= SEQUENCE { - * distributionPoint [0] DistributionPointName OPTIONAL, - * onlyContainsUserCerts [1] BOOLEAN DEFAULT FALSE, - * onlyContainsCACerts [2] BOOLEAN DEFAULT FALSE, - * onlySomeReasons [3] ReasonFlags OPTIONAL, - * indirectCRL [4] BOOLEAN DEFAULT FALSE, - * onlyContainsAttributeCerts [5] BOOLEAN DEFAULT FALSE } - *- */ -public class IssuingDistributionPoint extends org.bouncycastle.asn1.ASN1Object { - - /** - * Constructor from given details. - * - * @param distributionPoint - * May contain an URI as pointer to most current CRL. - * @param onlyContainsUserCerts Covers revocation information for end certificates. - * @param onlyContainsCACerts Covers revocation information for CA certificates. - * - * @param onlySomeReasons - * Which revocation reasons does this point cover. - * @param indirectCRL - * If
true
then the CRL contains revocation
- * information about certificates ssued by other CAs.
- * @param onlyContainsAttributeCerts Covers revocation information for attribute certificates.
- */
- public IssuingDistributionPoint(DistributionPointName distributionPoint, boolean onlyContainsUserCerts, boolean onlyContainsCACerts, ReasonFlags onlySomeReasons, boolean indirectCRL, boolean onlyContainsAttributeCerts) {
- }
-
- /**
- * Shorthand Constructor from given details.
- *
- * @param distributionPoint
- * May contain an URI as pointer to most current CRL.
- * @param indirectCRL
- * If true
then the CRL contains revocation
- * information about certificates ssued by other CAs.
- * @param onlyContainsAttributeCerts Covers revocation information for attribute certificates.
- */
- public IssuingDistributionPoint(DistributionPointName distributionPoint, boolean indirectCRL, boolean onlyContainsAttributeCerts) {
- }
-
- public static IssuingDistributionPoint getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) {
- }
-
- public static IssuingDistributionPoint getInstance(Object obj) {
- }
-
- public boolean onlyContainsUserCerts() {
- }
-
- public boolean onlyContainsCACerts() {
- }
-
- public boolean isIndirectCRL() {
- }
-
- public boolean onlyContainsAttributeCerts() {
- }
-
- /**
- * @return Returns the distributionPoint.
- */
- public DistributionPointName getDistributionPoint() {
- }
-
- /**
- * @return Returns the onlySomeReasons.
- */
- public ReasonFlags getOnlySomeReasons() {
- }
-
- public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() {
- }
-
- public String toString() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/KeyPurposeId.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/KeyPurposeId.java
deleted file mode 100644
index 3670f7232..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/KeyPurposeId.java
+++ /dev/null
@@ -1,132 +0,0 @@
-/**
- *
- * Support classes useful for encoding and processing X.509 certificates.
- */
-package org.bouncycastle.asn1.x509;
-
-
-/**
- * The KeyPurposeId object.
- * - * KeyPurposeId ::= OBJECT IDENTIFIER - * - * id-kp ::= OBJECT IDENTIFIER { iso(1) identified-organization(3) - * dod(6) internet(1) security(5) mechanisms(5) pkix(7) 3} - * - *- */ -public class KeyPurposeId extends org.bouncycastle.asn1.ASN1ObjectIdentifier { - - /** - * { 2 5 29 37 0 } - */ - public static final KeyPurposeId anyExtendedKeyUsage; - - /** - * { id-kp 1 } - */ - public static final KeyPurposeId id_kp_serverAuth; - - /** - * { id-kp 2 } - */ - public static final KeyPurposeId id_kp_clientAuth; - - /** - * { id-kp 3 } - */ - public static final KeyPurposeId id_kp_codeSigning; - - /** - * { id-kp 4 } - */ - public static final KeyPurposeId id_kp_emailProtection; - - /** - * Usage deprecated by RFC4945 - was { id-kp 5 } - */ - public static final KeyPurposeId id_kp_ipsecEndSystem; - - /** - * Usage deprecated by RFC4945 - was { id-kp 6 } - */ - public static final KeyPurposeId id_kp_ipsecTunnel; - - /** - * Usage deprecated by RFC4945 - was { idkp 7 } - */ - public static final KeyPurposeId id_kp_ipsecUser; - - /** - * { id-kp 8 } - */ - public static final KeyPurposeId id_kp_timeStamping; - - /** - * { id-kp 9 } - */ - public static final KeyPurposeId id_kp_OCSPSigning; - - /** - * { id-kp 10 } - */ - public static final KeyPurposeId id_kp_dvcs; - - /** - * { id-kp 11 } - */ - public static final KeyPurposeId id_kp_sbgpCertAAServerAuth; - - /** - * { id-kp 12 } - */ - public static final KeyPurposeId id_kp_scvp_responder; - - /** - * { id-kp 13 } - */ - public static final KeyPurposeId id_kp_eapOverPPP; - - /** - * { id-kp 14 } - */ - public static final KeyPurposeId id_kp_eapOverLAN; - - /** - * { id-kp 15 } - */ - public static final KeyPurposeId id_kp_scvpServer; - - /** - * { id-kp 16 } - */ - public static final KeyPurposeId id_kp_scvpClient; - - /** - * { id-kp 17 } - */ - public static final KeyPurposeId id_kp_ipsecIKE; - - /** - * { id-kp 18 } - */ - public static final KeyPurposeId id_kp_capwapAC; - - /** - * { id-kp 19 } - */ - public static final KeyPurposeId id_kp_capwapWTP; - - /** - * { 1 3 6 1 4 1 311 20 2 2 } - */ - public static final KeyPurposeId id_kp_smartcardlogon; - - /** - * Create a KeyPurposeId from an OID string - * - * @param id OID String. E.g. "1.3.6.1.5.5.7.3.1" - */ - public KeyPurposeId(String id) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/KeyUsage.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/KeyUsage.java deleted file mode 100644 index 1614a9808..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/KeyUsage.java +++ /dev/null @@ -1,63 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * The KeyUsage object. - *
- * id-ce-keyUsage OBJECT IDENTIFIER ::= { id-ce 15 } - * - * KeyUsage ::= BIT STRING { - * digitalSignature (0), - * nonRepudiation (1), - * keyEncipherment (2), - * dataEncipherment (3), - * keyAgreement (4), - * keyCertSign (5), - * cRLSign (6), - * encipherOnly (7), - * decipherOnly (8) } - *- */ -public class KeyUsage extends org.bouncycastle.asn1.DERBitString { - - public static final int digitalSignature = 128; - - public static final int nonRepudiation = 64; - - public static final int keyEncipherment = 32; - - public static final int dataEncipherment = 16; - - public static final int keyAgreement = 8; - - public static final int keyCertSign = 4; - - public static final int cRLSign = 2; - - public static final int encipherOnly = 1; - - public static final int decipherOnly = 32768; - - /** - * Basic constructor. - * - * @param usage - the bitwise OR of the Key Usage flags giving the - * allowed uses for the key. - * e.g. (KeyUsage.keyEncipherment | KeyUsage.dataEncipherment) - */ - public KeyUsage(int usage) { - } - - public KeyUsage(org.bouncycastle.asn1.DERBitString usage) { - } - - public static org.bouncycastle.asn1.DERBitString getInstance(Object obj) { - } - - public String toString() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/NameConstraints.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/NameConstraints.java deleted file mode 100644 index 744fb7e60..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/NameConstraints.java +++ /dev/null @@ -1,35 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -public class NameConstraints extends org.bouncycastle.asn1.ASN1Object { - - /** - * Constructor from a given details. - * - *
- * permitted and excluded are Vectors of GeneralSubtree objects.
- *
- * @param permitted
- * Permitted subtrees
- * @param excluded
- * Excludes subtrees
- */
- public NameConstraints(java.util.Vector permitted, java.util.Vector excluded) {
- }
-
- public static NameConstraints getInstance(Object obj) {
- }
-
- public org.bouncycastle.asn1.ASN1Sequence getPermittedSubtrees() {
- }
-
- public org.bouncycastle.asn1.ASN1Sequence getExcludedSubtrees() {
- }
-
- public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/NoticeReference.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/NoticeReference.java
deleted file mode 100644
index c10736eb1..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/NoticeReference.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/**
- *
- * Support classes useful for encoding and processing X.509 certificates.
- */
-package org.bouncycastle.asn1.x509;
-
-
-/**
- * NoticeReference
class, used in
- * CertificatePolicies
X509 V3 extensions
- * (in policy qualifiers).
- *
- *
- * NoticeReference ::= SEQUENCE { - * organization DisplayText, - * noticeNumbers SEQUENCE OF INTEGER } - * - *- * - * @see PolicyQualifierInfo - * @see PolicyInformation - */ -public class NoticeReference extends org.bouncycastle.asn1.ASN1Object { - - /** - * Creates a new
NoticeReference
instance.
- *
- * @param organization a String
value
- * @param numbers a Vector
value
- */
- public NoticeReference(String organization, java.util.Vector numbers) {
- }
-
- /**
- * Creates a new NoticeReference
instance.
- *
- * @param organization a String
value
- * @param noticeNumbers an ASN1EncodableVector
value
- */
- public NoticeReference(String organization, org.bouncycastle.asn1.ASN1EncodableVector noticeNumbers) {
- }
-
- /**
- * Creates a new NoticeReference
instance.
- *
- * @param organization displayText
- * @param noticeNumbers an ASN1EncodableVector
value
- */
- public NoticeReference(DisplayText organization, org.bouncycastle.asn1.ASN1EncodableVector noticeNumbers) {
- }
-
- public static NoticeReference getInstance(Object as) {
- }
-
- public DisplayText getOrganization() {
- }
-
- public org.bouncycastle.asn1.ASN1Integer[] getNoticeNumbers() {
- }
-
- /**
- * Describe toASN1Object
method here.
- *
- * @return a ASN1Primitive
value
- */
- public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/ObjectDigestInfo.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/ObjectDigestInfo.java
deleted file mode 100644
index f8266ca3c..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/ObjectDigestInfo.java
+++ /dev/null
@@ -1,100 +0,0 @@
-/**
- *
- * Support classes useful for encoding and processing X.509 certificates.
- */
-package org.bouncycastle.asn1.x509;
-
-
-/**
- * ObjectDigestInfo ASN.1 structure used in v2 attribute certificates.
- *
- * - * - * ObjectDigestInfo ::= SEQUENCE { - * digestedObjectType ENUMERATED { - * publicKey (0), - * publicKeyCert (1), - * otherObjectTypes (2) }, - * -- otherObjectTypes MUST NOT - * -- be used in this profile - * otherObjectTypeID OBJECT IDENTIFIER OPTIONAL, - * digestAlgorithm AlgorithmIdentifier, - * objectDigest BIT STRING - * } - * - *- * - */ -public class ObjectDigestInfo extends org.bouncycastle.asn1.ASN1Object { - - /** - * The public key is hashed. - */ - public static final int publicKey = 0; - - /** - * The public key certificate is hashed. - */ - public static final int publicKeyCert = 1; - - /** - * An other object is hashed. - */ - public static final int otherObjectDigest = 2; - - /** - * Constructor from given details. - *
- * If digestedObjectType
is not {@link #publicKeyCert} or
- * {@link #publicKey} otherObjectTypeID
must be given,
- * otherwise it is ignored.
- *
- * @param digestedObjectType The digest object type.
- * @param otherObjectTypeID The object type ID for
- * otherObjectDigest
.
- * @param digestAlgorithm The algorithm identifier for the hash.
- * @param objectDigest The hash value.
- */
- public ObjectDigestInfo(int digestedObjectType, org.bouncycastle.asn1.ASN1ObjectIdentifier otherObjectTypeID, AlgorithmIdentifier digestAlgorithm, byte[] objectDigest) {
- }
-
- public static ObjectDigestInfo getInstance(Object obj) {
- }
-
- public static ObjectDigestInfo getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) {
- }
-
- public org.bouncycastle.asn1.DEREnumerated getDigestedObjectType() {
- }
-
- public org.bouncycastle.asn1.ASN1ObjectIdentifier getOtherObjectTypeID() {
- }
-
- public AlgorithmIdentifier getDigestAlgorithm() {
- }
-
- public org.bouncycastle.asn1.DERBitString getObjectDigest() {
- }
-
- /**
- * Produce an object suitable for an ASN1OutputStream.
- *
- *
- * - * ObjectDigestInfo ::= SEQUENCE { - * digestedObjectType ENUMERATED { - * publicKey (0), - * publicKeyCert (1), - * otherObjectTypes (2) }, - * -- otherObjectTypes MUST NOT - * -- be used in this profile - * otherObjectTypeID OBJECT IDENTIFIER OPTIONAL, - * digestAlgorithm AlgorithmIdentifier, - * objectDigest BIT STRING - * } - * - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/PolicyInformation.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/PolicyInformation.java deleted file mode 100644 index 26d873f26..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/PolicyInformation.java +++ /dev/null @@ -1,27 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -public class PolicyInformation extends org.bouncycastle.asn1.ASN1Object { - - public PolicyInformation(org.bouncycastle.asn1.ASN1ObjectIdentifier policyIdentifier) { - } - - public PolicyInformation(org.bouncycastle.asn1.ASN1ObjectIdentifier policyIdentifier, org.bouncycastle.asn1.ASN1Sequence policyQualifiers) { - } - - public static PolicyInformation getInstance(Object obj) { - } - - public org.bouncycastle.asn1.ASN1ObjectIdentifier getPolicyIdentifier() { - } - - public org.bouncycastle.asn1.ASN1Sequence getPolicyQualifiers() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/PolicyMappings.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/PolicyMappings.java deleted file mode 100644 index 53a788b99..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/PolicyMappings.java +++ /dev/null @@ -1,35 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * PolicyMappings V3 extension, described in RFC3280. - *
- * PolicyMappings ::= SEQUENCE SIZE (1..MAX) OF SEQUENCE { - * issuerDomainPolicy CertPolicyId, - * subjectDomainPolicy CertPolicyId } - *- * - * @see RFC 3280, section 4.2.1.6 - */ -public class PolicyMappings extends org.bouncycastle.asn1.ASN1Object { - - /** - * Creates a new
PolicyMappings
instance.
- *
- * @param mappings a HashMap
value that maps
- * String
oids
- * to other String
oids.
- */
- public PolicyMappings(java.util.Hashtable mappings) {
- }
-
- public static PolicyMappings getInstance(Object obj) {
- }
-
- public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/PolicyQualifierId.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/PolicyQualifierId.java
deleted file mode 100644
index 18fea0b8b..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/PolicyQualifierId.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- *
- * Support classes useful for encoding and processing X.509 certificates.
- */
-package org.bouncycastle.asn1.x509;
-
-
-/**
- * PolicyQualifierId, used in the CertificatePolicies
- * X509V3 extension.
- *
- * - * id-qt OBJECT IDENTIFIER ::= { id-pkix 2 } - * id-qt-cps OBJECT IDENTIFIER ::= { id-qt 1 } - * id-qt-unotice OBJECT IDENTIFIER ::= { id-qt 2 } - * PolicyQualifierId ::= - * OBJECT IDENTIFIER (id-qt-cps | id-qt-unotice) - *- */ -public class PolicyQualifierId extends org.bouncycastle.asn1.ASN1ObjectIdentifier { - - public static final PolicyQualifierId id_qt_cps; - - public static final PolicyQualifierId id_qt_unotice; -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/PolicyQualifierInfo.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/PolicyQualifierInfo.java deleted file mode 100644 index 4a23c0220..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/PolicyQualifierInfo.java +++ /dev/null @@ -1,64 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * Policy qualifiers, used in the X509V3 CertificatePolicies - * extension. - * - *
- * PolicyQualifierInfo ::= SEQUENCE { - * policyQualifierId PolicyQualifierId, - * qualifier ANY DEFINED BY policyQualifierId } - *- */ -public class PolicyQualifierInfo extends org.bouncycastle.asn1.ASN1Object { - - /** - * Creates a new
PolicyQualifierInfo
instance.
- *
- * @param policyQualifierId a PolicyQualifierId
value
- * @param qualifier the qualifier, defined by the above field.
- */
- public PolicyQualifierInfo(org.bouncycastle.asn1.ASN1ObjectIdentifier policyQualifierId, org.bouncycastle.asn1.ASN1Encodable qualifier) {
- }
-
- /**
- * Creates a new PolicyQualifierInfo
containing a
- * cPSuri qualifier.
- *
- * @param cps the CPS (certification practice statement) uri as a
- * String
.
- */
- public PolicyQualifierInfo(String cps) {
- }
-
- /**
- * Creates a new PolicyQualifierInfo
instance.
- *
- * @param as PolicyQualifierInfo
X509 structure
- * encoded as an ASN1Sequence.
- */
- public PolicyQualifierInfo(org.bouncycastle.asn1.ASN1Sequence as) {
- }
-
- public static PolicyQualifierInfo getInstance(Object obj) {
- }
-
- public org.bouncycastle.asn1.ASN1ObjectIdentifier getPolicyQualifierId() {
- }
-
- public org.bouncycastle.asn1.ASN1Encodable getQualifier() {
- }
-
- /**
- * Returns a DER-encodable representation of this instance.
- *
- * @return a ASN1Primitive
value
- */
- public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/PrivateKeyUsagePeriod.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/PrivateKeyUsagePeriod.java
deleted file mode 100644
index 96d3d2030..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/PrivateKeyUsagePeriod.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- *
- * Support classes useful for encoding and processing X.509 certificates.
- */
-package org.bouncycastle.asn1.x509;
-
-
-/**
- * - * PrivateKeyUsagePeriod ::= SEQUENCE { - * notBefore [0] GeneralizedTime OPTIONAL, - * notAfter [1] GeneralizedTime OPTIONAL } - *- */ -public class PrivateKeyUsagePeriod extends org.bouncycastle.asn1.ASN1Object { - - public static PrivateKeyUsagePeriod getInstance(Object obj) { - } - - public org.bouncycastle.asn1.DERGeneralizedTime getNotBefore() { - } - - public org.bouncycastle.asn1.DERGeneralizedTime getNotAfter() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/RSAPublicKeyStructure.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/RSAPublicKeyStructure.java deleted file mode 100644 index efd65f976..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/RSAPublicKeyStructure.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * @deprecated use org.bouncycastle.asn1.pkcs.RSAPublicKey - */ -public class RSAPublicKeyStructure extends org.bouncycastle.asn1.ASN1Object { - - public RSAPublicKeyStructure(javabc.BigInteger modulus, javabc.BigInteger publicExponent) { - } - - public RSAPublicKeyStructure(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public static RSAPublicKeyStructure getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static RSAPublicKeyStructure getInstance(Object obj) { - } - - public javabc.BigInteger getModulus() { - } - - public javabc.BigInteger getPublicExponent() { - } - - /** - * This outputs the key in PKCS1v2 format. - *
- * RSAPublicKey ::= SEQUENCE { - * modulus INTEGER, -- n - * publicExponent INTEGER, -- e - * } - *- *
- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/ReasonFlags.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/ReasonFlags.java deleted file mode 100644 index bba44f2c5..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/ReasonFlags.java +++ /dev/null @@ -1,97 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * The ReasonFlags object. - *
- * ReasonFlags ::= BIT STRING { - * unused (0), - * keyCompromise (1), - * cACompromise (2), - * affiliationChanged (3), - * superseded (4), - * cessationOfOperation (5), - * certificateHold (6), - * privilegeWithdrawn (7), - * aACompromise (8) } - *- */ -public class ReasonFlags extends org.bouncycastle.asn1.DERBitString { - - /** - * @deprecated use lower case version - */ - public static final int UNUSED = 128; - - /** - * @deprecated use lower case version - */ - public static final int KEY_COMPROMISE = 64; - - /** - * @deprecated use lower case version - */ - public static final int CA_COMPROMISE = 32; - - /** - * @deprecated use lower case version - */ - public static final int AFFILIATION_CHANGED = 16; - - /** - * @deprecated use lower case version - */ - public static final int SUPERSEDED = 8; - - /** - * @deprecated use lower case version - */ - public static final int CESSATION_OF_OPERATION = 4; - - /** - * @deprecated use lower case version - */ - public static final int CERTIFICATE_HOLD = 2; - - /** - * @deprecated use lower case version - */ - public static final int PRIVILEGE_WITHDRAWN = 1; - - /** - * @deprecated use lower case version - */ - public static final int AA_COMPROMISE = 32768; - - public static final int unused = 128; - - public static final int keyCompromise = 64; - - public static final int cACompromise = 32; - - public static final int affiliationChanged = 16; - - public static final int superseded = 8; - - public static final int cessationOfOperation = 4; - - public static final int certificateHold = 2; - - public static final int privilegeWithdrawn = 1; - - public static final int aACompromise = 32768; - - /** - * @param reasons - the bitwise OR of the Key Reason flags giving the - * allowed uses for the key. - */ - public ReasonFlags(int reasons) { - } - - public ReasonFlags(org.bouncycastle.asn1.DERBitString reasons) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/RoleSyntax.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/RoleSyntax.java deleted file mode 100644 index aae267651..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/RoleSyntax.java +++ /dev/null @@ -1,107 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * Implementation of the RoleSyntax object as specified by the RFC3281. - * - *
- * RoleSyntax ::= SEQUENCE { - * roleAuthority [0] GeneralNames OPTIONAL, - * roleName [1] GeneralName - * } - *- */ -public class RoleSyntax extends org.bouncycastle.asn1.ASN1Object { - - /** - * Constructor. - * @param roleAuthority the role authority of this RoleSyntax. - * @param roleName the role name of this RoleSyntax. - */ - public RoleSyntax(GeneralNames roleAuthority, GeneralName roleName) { - } - - /** - * Constructor. Invoking this constructor is the same as invoking - *
new RoleSyntax(null, roleName)
.
- * @param roleName the role name of this RoleSyntax.
- */
- public RoleSyntax(GeneralName roleName) {
- }
-
- /**
- * Utility constructor. Takes a String
argument representing
- * the role name, builds a GeneralName
to hold the role name
- * and calls the constructor that takes a GeneralName
.
- * @param roleName
- */
- public RoleSyntax(String roleName) {
- }
-
- /**
- * RoleSyntax factory method.
- * @param obj the object used to construct an instance of
- * RoleSyntax
. It must be an instance of RoleSyntax
- *
or ASN1Sequence
.
- * @return the instance of RoleSyntax
built from the
- * supplied object.
- * @throws java.lang.IllegalArgumentException if the object passed
- * to the factory is not an instance of RoleSyntax
or
- * ASN1Sequence
.
- */
- public static RoleSyntax getInstance(Object obj) {
- }
-
- /**
- * Gets the role authority of this RoleSyntax.
- * @return an instance of GeneralNames
holding the
- * role authority of this RoleSyntax.
- */
- public GeneralNames getRoleAuthority() {
- }
-
- /**
- * Gets the role name of this RoleSyntax.
- * @return an instance of GeneralName
holding the
- * role name of this RoleSyntax.
- */
- public GeneralName getRoleName() {
- }
-
- /**
- * Gets the role name as a java.lang.String
object.
- * @return the role name of this RoleSyntax represented as a
- * java.lang.String
object.
- */
- public String getRoleNameAsString() {
- }
-
- /**
- * Gets the role authority as a String[]
object.
- * @return the role authority of this RoleSyntax represented as a
- * String[]
array.
- */
- public String[] getRoleAuthorityAsString() {
- }
-
- /**
- * Implementation of the method toASN1Object
as
- * required by the superclass ASN1Encodable
.
- *
- * - * RoleSyntax ::= SEQUENCE { - * roleAuthority [0] GeneralNames OPTIONAL, - * roleName [1] GeneralName - * } - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } - - public String toString() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/SubjectDirectoryAttributes.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/SubjectDirectoryAttributes.java deleted file mode 100644 index 48e9de098..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/SubjectDirectoryAttributes.java +++ /dev/null @@ -1,72 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * This extension may contain further X.500 attributes of the subject. See also - * RFC 3039. - * - *
- * SubjectDirectoryAttributes ::= Attributes - * Attributes ::= SEQUENCE SIZE (1..MAX) OF Attribute - * Attribute ::= SEQUENCE - * { - * type AttributeType - * values SET OF AttributeValue - * } - * - * AttributeType ::= OBJECT IDENTIFIER - * AttributeValue ::= ANY DEFINED BY AttributeType - *- * - * @see org.bouncycastle.asn1.x500.style.BCStyle for AttributeType ObjectIdentifiers. - */ -public class SubjectDirectoryAttributes extends org.bouncycastle.asn1.ASN1Object { - - /** - * Constructor from a vector of attributes. - * - * The vector consists of attributes of type {@link Attribute Attribute} - * - * @param attributes - * The attributes. - * - */ - public SubjectDirectoryAttributes(java.util.Vector attributes) { - } - - public static SubjectDirectoryAttributes getInstance(Object obj) { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - * - * Returns: - * - *
- * SubjectDirectoryAttributes ::= Attributes - * Attributes ::= SEQUENCE SIZE (1..MAX) OF Attribute - * Attribute ::= SEQUENCE - * { - * type AttributeType - * values SET OF AttributeValue - * } - * - * AttributeType ::= OBJECT IDENTIFIER - * AttributeValue ::= ANY DEFINED BY AttributeType - *- * - * @return a ASN1Primitive - */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } - - /** - * @return Returns the attributes. - */ - public java.util.Vector getAttributes() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/SubjectKeyIdentifier.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/SubjectKeyIdentifier.java deleted file mode 100644 index e47f087fa..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/SubjectKeyIdentifier.java +++ /dev/null @@ -1,71 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * The SubjectKeyIdentifier object. - *
- * SubjectKeyIdentifier::= OCTET STRING - *- */ -public class SubjectKeyIdentifier extends org.bouncycastle.asn1.ASN1Object { - - public SubjectKeyIdentifier(byte[] keyid) { - } - - protected SubjectKeyIdentifier(org.bouncycastle.asn1.ASN1OctetString keyid) { - } - - /** - * Calculates the keyidentifier using a SHA1 hash over the BIT STRING - * from SubjectPublicKeyInfo as defined in RFC3280. - * - * @param spki the subject public key info. - * @deprecated - */ - public SubjectKeyIdentifier(SubjectPublicKeyInfo spki) { - } - - public static SubjectKeyIdentifier getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static SubjectKeyIdentifier getInstance(Object obj) { - } - - public byte[] getKeyIdentifier() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } - - /** - * Return a RFC 3280 type 1 key identifier. As in: - *
- * (1) The keyIdentifier is composed of the 160-bit SHA-1 hash of the - * value of the BIT STRING subjectPublicKey (excluding the tag, - * length, and number of unused bits). - *- * @param keyInfo the key info object containing the subjectPublicKey field. - * @return the key identifier. - * @deprecated use org.bouncycastle.cert.X509ExtensionUtils.createSubjectKeyIdentifier - */ - public static SubjectKeyIdentifier createSHA1KeyIdentifier(SubjectPublicKeyInfo keyInfo) { - } - - /** - * Return a RFC 3280 type 2 key identifier. As in: - *
- * (2) The keyIdentifier is composed of a four bit type field with - * the value 0100 followed by the least significant 60 bits of the - * SHA-1 hash of the value of the BIT STRING subjectPublicKey. - *- * @param keyInfo the key info object containing the subjectPublicKey field. - * @return the key identifier. - * @deprecated use org.bouncycastle.cert.X509ExtensionUtils.createTruncatedSubjectKeyIdentifier - */ - public static SubjectKeyIdentifier createTruncatedSHA1KeyIdentifier(SubjectPublicKeyInfo keyInfo) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/SubjectPublicKeyInfo.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/SubjectPublicKeyInfo.java deleted file mode 100644 index 5160f7266..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/SubjectPublicKeyInfo.java +++ /dev/null @@ -1,82 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * The object that contains the public key stored in a certficate. - *
- * The getEncoded() method in the public keys in the JCE produces a DER - * encoded one of these. - */ -public class SubjectPublicKeyInfo extends org.bouncycastle.asn1.ASN1Object { - - public SubjectPublicKeyInfo(AlgorithmIdentifier algId, org.bouncycastle.asn1.ASN1Encodable publicKey) { - } - - public SubjectPublicKeyInfo(AlgorithmIdentifier algId, byte[] publicKey) { - } - - public SubjectPublicKeyInfo(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public static SubjectPublicKeyInfo getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static SubjectPublicKeyInfo getInstance(Object obj) { - } - - public AlgorithmIdentifier getAlgorithm() { - } - - /** - * @deprecated use getAlgorithm() - * @return alg ID. - */ - public AlgorithmIdentifier getAlgorithmId() { - } - - /** - * for when the public key is an encoded object - if the bitstring - * can't be decoded this routine throws an IOException. - * - * @exception IOException - if the bit string doesn't represent a DER - * encoded object. - * @return the public key as an ASN.1 primitive. - */ - public org.bouncycastle.asn1.ASN1Primitive parsePublicKey() { - } - - /** - * for when the public key is an encoded object - if the bitstring - * can't be decoded this routine throws an IOException. - * - * @exception IOException - if the bit string doesn't represent a DER - * encoded object. - * @deprecated use parsePublicKey - * @return the public key as an ASN.1 primitive. - */ - public org.bouncycastle.asn1.ASN1Primitive getPublicKey() { - } - - /** - * for when the public key is raw bits. - * - * @return the public key as the raw bit string... - */ - public org.bouncycastle.asn1.DERBitString getPublicKeyData() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - *
- * SubjectPublicKeyInfo ::= SEQUENCE { - * algorithm AlgorithmIdentifier, - * publicKey BIT STRING } - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/TBSCertList.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/TBSCertList.java deleted file mode 100644 index 886ad33bd..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/TBSCertList.java +++ /dev/null @@ -1,91 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * PKIX RFC-2459 - TBSCertList object. - *
- * TBSCertList ::= SEQUENCE { - * version Version OPTIONAL, - * -- if present, shall be v2 - * signature AlgorithmIdentifier, - * issuer Name, - * thisUpdate Time, - * nextUpdate Time OPTIONAL, - * revokedCertificates SEQUENCE OF SEQUENCE { - * userCertificate CertificateSerialNumber, - * revocationDate Time, - * crlEntryExtensions Extensions OPTIONAL - * -- if present, shall be v2 - * } OPTIONAL, - * crlExtensions [0] EXPLICIT Extensions OPTIONAL - * -- if present, shall be v2 - * } - *- */ -public class TBSCertList extends org.bouncycastle.asn1.ASN1Object { - - public TBSCertList(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public static TBSCertList getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static TBSCertList getInstance(Object obj) { - } - - public int getVersionNumber() { - } - - public org.bouncycastle.asn1.ASN1Integer getVersion() { - } - - public AlgorithmIdentifier getSignature() { - } - - public org.bouncycastle.asn1.x500.X500Name getIssuer() { - } - - public Time getThisUpdate() { - } - - public Time getNextUpdate() { - } - - public TBSCertList.CRLEntry[] getRevokedCertificates() { - } - - public java.util.Enumeration getRevokedCertificateEnumeration() { - } - - public Extensions getExtensions() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } - - public static class CRLEntry { - - - public static TBSCertList.CRLEntry getInstance(Object o) { - } - - public org.bouncycastle.asn1.ASN1Integer getUserCertificate() { - } - - public Time getRevocationDate() { - } - - public Extensions getExtensions() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } - - public boolean hasExtensions() { - } - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/TBSCertificate.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/TBSCertificate.java deleted file mode 100644 index c73e9e6b9..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/TBSCertificate.java +++ /dev/null @@ -1,74 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * The TBSCertificate object. - *
- * TBSCertificate ::= SEQUENCE { - * version [ 0 ] Version DEFAULT v1(0), - * serialNumber CertificateSerialNumber, - * signature AlgorithmIdentifier, - * issuer Name, - * validity Validity, - * subject Name, - * subjectPublicKeyInfo SubjectPublicKeyInfo, - * issuerUniqueID [ 1 ] IMPLICIT UniqueIdentifier OPTIONAL, - * subjectUniqueID [ 2 ] IMPLICIT UniqueIdentifier OPTIONAL, - * extensions [ 3 ] Extensions OPTIONAL - * } - *- *
- * Note: issuerUniqueID and subjectUniqueID are both deprecated by the IETF. This class - * will parse them, but you really shouldn't be creating new ones. - */ -public class TBSCertificate extends org.bouncycastle.asn1.ASN1Object { - - public static TBSCertificate getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static TBSCertificate getInstance(Object obj) { - } - - public int getVersionNumber() { - } - - public org.bouncycastle.asn1.ASN1Integer getVersion() { - } - - public org.bouncycastle.asn1.ASN1Integer getSerialNumber() { - } - - public AlgorithmIdentifier getSignature() { - } - - public org.bouncycastle.asn1.x500.X500Name getIssuer() { - } - - public Time getStartDate() { - } - - public Time getEndDate() { - } - - public org.bouncycastle.asn1.x500.X500Name getSubject() { - } - - public SubjectPublicKeyInfo getSubjectPublicKeyInfo() { - } - - public org.bouncycastle.asn1.DERBitString getIssuerUniqueId() { - } - - public org.bouncycastle.asn1.DERBitString getSubjectUniqueId() { - } - - public Extensions getExtensions() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/TBSCertificateStructure.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/TBSCertificateStructure.java deleted file mode 100644 index a497a9ff6..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/TBSCertificateStructure.java +++ /dev/null @@ -1,77 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * The TBSCertificate object. - *
- * TBSCertificate ::= SEQUENCE { - * version [ 0 ] Version DEFAULT v1(0), - * serialNumber CertificateSerialNumber, - * signature AlgorithmIdentifier, - * issuer Name, - * validity Validity, - * subject Name, - * subjectPublicKeyInfo SubjectPublicKeyInfo, - * issuerUniqueID [ 1 ] IMPLICIT UniqueIdentifier OPTIONAL, - * subjectUniqueID [ 2 ] IMPLICIT UniqueIdentifier OPTIONAL, - * extensions [ 3 ] Extensions OPTIONAL - * } - *- *
- * Note: issuerUniqueID and subjectUniqueID are both deprecated by the IETF. This class - * will parse them, but you really shouldn't be creating new ones. - */ -public class TBSCertificateStructure extends org.bouncycastle.asn1.ASN1Object { - - public TBSCertificateStructure(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public static TBSCertificateStructure getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static TBSCertificateStructure getInstance(Object obj) { - } - - public int getVersion() { - } - - public org.bouncycastle.asn1.ASN1Integer getVersionNumber() { - } - - public org.bouncycastle.asn1.ASN1Integer getSerialNumber() { - } - - public AlgorithmIdentifier getSignature() { - } - - public org.bouncycastle.asn1.x500.X500Name getIssuer() { - } - - public Time getStartDate() { - } - - public Time getEndDate() { - } - - public org.bouncycastle.asn1.x500.X500Name getSubject() { - } - - public SubjectPublicKeyInfo getSubjectPublicKeyInfo() { - } - - public org.bouncycastle.asn1.DERBitString getIssuerUniqueId() { - } - - public org.bouncycastle.asn1.DERBitString getSubjectUniqueId() { - } - - public X509Extensions getExtensions() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/Target.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/Target.java deleted file mode 100644 index 739fb2df0..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/Target.java +++ /dev/null @@ -1,84 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * Target structure used in target information extension for attribute - * certificates from RFC 3281. - * - *
- * Target ::= CHOICE { - * targetName [0] GeneralName, - * targetGroup [1] GeneralName, - * targetCert [2] TargetCert - * } - *- * - *
- * The targetCert field is currently not supported and must not be used - * according to RFC 3281. - */ -public class Target extends org.bouncycastle.asn1.ASN1Object implements org.bouncycastle.asn1.ASN1Choice { - - public static final int targetName = 0; - - public static final int targetGroup = 1; - - /** - * Constructor from given details. - *
- * Exactly one of the parameters must be not null
.
- *
- * @param type the choice type to apply to the name.
- * @param name the general name.
- * @throws IllegalArgumentException if type is invalid.
- */
- public Target(int type, GeneralName name) {
- }
-
- /**
- * Creates an instance of a Target from the given object.
- *
- * obj
can be a Target or a {@link ASN1TaggedObject}
- *
- * @param obj The object.
- * @return A Target instance.
- * @throws IllegalArgumentException if the given object cannot be
- * interpreted as Target.
- */
- public static Target getInstance(Object obj) {
- }
-
- /**
- * @return Returns the targetGroup.
- */
- public GeneralName getTargetGroup() {
- }
-
- /**
- * @return Returns the targetName.
- */
- public GeneralName getTargetName() {
- }
-
- /**
- * Produce an object suitable for an ASN1OutputStream.
- *
- * Returns:
- *
- *
- * Target ::= CHOICE { - * targetName [0] GeneralName, - * targetGroup [1] GeneralName, - * targetCert [2] TargetCert - * } - *- * - * @return a ASN1Primitive - */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/TargetInformation.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/TargetInformation.java deleted file mode 100644 index 67c7e0cac..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/TargetInformation.java +++ /dev/null @@ -1,78 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * Target information extension for attributes certificates according to RFC - * 3281. - * - *
- * SEQUENCE OF Targets - *- * - */ -public class TargetInformation extends org.bouncycastle.asn1.ASN1Object { - - /** - * Constructs a target information from a single targets element. - * According to RFC 3281 only one targets element must be produced. - * - * @param targets A Targets instance. - */ - public TargetInformation(Targets targets) { - } - - /** - * According to RFC 3281 only one targets element must be produced. If - * multiple targets are given they must be merged in - * into one targets element. - * - * @param targets An array with {@link Targets}. - */ - public TargetInformation(Target[] targets) { - } - - /** - * Creates an instance of a TargetInformation from the given object. - *
- * obj
can be a TargetInformation or a {@link ASN1Sequence}
- *
- * @param obj The object.
- * @return A TargetInformation instance.
- * @throws IllegalArgumentException if the given object cannot be
- * interpreted as TargetInformation.
- */
- public static TargetInformation getInstance(Object obj) {
- }
-
- /**
- * Returns the targets in this target information extension.
- *
- * @return Returns the targets.
- */
- public Targets[] getTargetsObjects() {
- }
-
- /**
- * Produce an object suitable for an ASN1OutputStream.
- *
- * Returns:
- *
- *
- * SEQUENCE OF Targets - *- * - *
- * According to RFC 3281 only one targets element must be produced. If - * multiple targets are given in the constructor they are merged into one - * targets element. If this was produced from a - * {@link org.bouncycastle.asn1.ASN1Sequence} the encoding is kept. - * - * @return a ASN1Primitive - */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/Targets.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/Targets.java deleted file mode 100644 index 40775f7c1..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/Targets.java +++ /dev/null @@ -1,81 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * Targets structure used in target information extension for attribute - * certificates from RFC 3281. - * - *
- * Targets ::= SEQUENCE OF Target - * - * Target ::= CHOICE { - * targetName [0] GeneralName, - * targetGroup [1] GeneralName, - * targetCert [2] TargetCert - * } - * - * TargetCert ::= SEQUENCE { - * targetCertificate IssuerSerial, - * targetName GeneralName OPTIONAL, - * certDigestInfo ObjectDigestInfo OPTIONAL - * } - *- * - * @see org.bouncycastle.asn1.x509.Target - * @see org.bouncycastle.asn1.x509.TargetInformation - */ -public class Targets extends org.bouncycastle.asn1.ASN1Object { - - /** - * Constructor from given targets. - *
- * The vector is copied.
- *
- * @param targets A Vector
of {@link Target}s.
- * @see Target
- * @throws IllegalArgumentException if the vector contains not only Targets.
- */
- public Targets(Target[] targets) {
- }
-
- /**
- * Creates an instance of a Targets from the given object.
- *
- * obj
can be a Targets or a {@link ASN1Sequence}
- *
- * @param obj The object.
- * @return A Targets instance.
- * @throws IllegalArgumentException if the given object cannot be
- * interpreted as Target.
- */
- public static Targets getInstance(Object obj) {
- }
-
- /**
- * Returns the targets in a Vector
.
- *
- * The vector is cloned before it is returned. - * - * @return Returns the targets. - */ - public Target[] getTargets() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - * - * Returns: - * - *
- * Targets ::= SEQUENCE OF Target - *- * - * @return a ASN1Primitive - */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/Time.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/Time.java deleted file mode 100644 index c2bb830c6..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/Time.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -public class Time extends org.bouncycastle.asn1.ASN1Object implements org.bouncycastle.asn1.ASN1Choice { - - public Time(org.bouncycastle.asn1.ASN1Primitive time) { - } - - /** - * creates a time object from a given date - if the date is between 1950 - * and 2049 a UTCTime object is generated, otherwise a GeneralizedTime - * is used. - */ - public Time(java.util.Date date) { - } - - public static Time getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static Time getInstance(Object obj) { - } - - public String getTime() { - } - - public java.util.Date getDate() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - *
- * Time ::= CHOICE { - * utcTime UTCTime, - * generalTime GeneralizedTime } - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } - - public String toString() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/UserNotice.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/UserNotice.java deleted file mode 100644 index 4c3fe4906..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/UserNotice.java +++ /dev/null @@ -1,53 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - *
UserNotice
class, used in
- * CertificatePolicies
X509 extensions (in policy
- * qualifiers).
- * - * UserNotice ::= SEQUENCE { - * noticeRef NoticeReference OPTIONAL, - * explicitText DisplayText OPTIONAL} - * - *- * - * @see PolicyQualifierId - * @see PolicyInformation - */ -public class UserNotice extends org.bouncycastle.asn1.ASN1Object { - - /** - * Creates a new
UserNotice
instance.
- *
- * @param noticeRef a NoticeReference
value
- * @param explicitText a DisplayText
value
- */
- public UserNotice(NoticeReference noticeRef, DisplayText explicitText) {
- }
-
- /**
- * Creates a new UserNotice
instance.
- *
- * @param noticeRef a NoticeReference
value
- * @param str the explicitText field as a String.
- */
- public UserNotice(NoticeReference noticeRef, String str) {
- }
-
- public static UserNotice getInstance(Object obj) {
- }
-
- public NoticeReference getNoticeRef() {
- }
-
- public DisplayText getExplicitText() {
- }
-
- public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/V1TBSCertificateGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/V1TBSCertificateGenerator.java
deleted file mode 100644
index 7de3d872a..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/V1TBSCertificateGenerator.java
+++ /dev/null
@@ -1,68 +0,0 @@
-/**
- *
- * Support classes useful for encoding and processing X.509 certificates.
- */
-package org.bouncycastle.asn1.x509;
-
-
-/**
- * Generator for Version 1 TBSCertificateStructures.
- * - * TBSCertificate ::= SEQUENCE { - * version [ 0 ] Version DEFAULT v1(0), - * serialNumber CertificateSerialNumber, - * signature AlgorithmIdentifier, - * issuer Name, - * validity Validity, - * subject Name, - * subjectPublicKeyInfo SubjectPublicKeyInfo, - * } - *- */ -public class V1TBSCertificateGenerator { - - public V1TBSCertificateGenerator() { - } - - public void setSerialNumber(org.bouncycastle.asn1.ASN1Integer serialNumber) { - } - - public void setSignature(AlgorithmIdentifier signature) { - } - - /** - * @deprecated use X500Name method - */ - public void setIssuer(X509Name issuer) { - } - - public void setIssuer(org.bouncycastle.asn1.x500.X500Name issuer) { - } - - public void setStartDate(Time startDate) { - } - - public void setStartDate(org.bouncycastle.asn1.DERUTCTime startDate) { - } - - public void setEndDate(Time endDate) { - } - - public void setEndDate(org.bouncycastle.asn1.DERUTCTime endDate) { - } - - /** - * @deprecated use X500Name method - */ - public void setSubject(X509Name subject) { - } - - public void setSubject(org.bouncycastle.asn1.x500.X500Name subject) { - } - - public void setSubjectPublicKeyInfo(SubjectPublicKeyInfo pubKeyInfo) { - } - - public TBSCertificate generateTBSCertificate() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/V2AttributeCertificateInfoGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/V2AttributeCertificateInfoGenerator.java deleted file mode 100644 index 707ce4a9b..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/V2AttributeCertificateInfoGenerator.java +++ /dev/null @@ -1,71 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * Generator for Version 2 AttributeCertificateInfo - *
- * AttributeCertificateInfo ::= SEQUENCE { - * version AttCertVersion -- version is v2, - * holder Holder, - * issuer AttCertIssuer, - * signature AlgorithmIdentifier, - * serialNumber CertificateSerialNumber, - * attrCertValidityPeriod AttCertValidityPeriod, - * attributes SEQUENCE OF Attribute, - * issuerUniqueID UniqueIdentifier OPTIONAL, - * extensions Extensions OPTIONAL - * } - *- */ -public class V2AttributeCertificateInfoGenerator { - - public V2AttributeCertificateInfoGenerator() { - } - - public void setHolder(Holder holder) { - } - - public void addAttribute(String oid, org.bouncycastle.asn1.ASN1Encodable value) { - } - - /** - * @param attribute - */ - public void addAttribute(Attribute attribute) { - } - - public void setSerialNumber(org.bouncycastle.asn1.ASN1Integer serialNumber) { - } - - public void setSignature(AlgorithmIdentifier signature) { - } - - public void setIssuer(AttCertIssuer issuer) { - } - - public void setStartDate(org.bouncycastle.asn1.DERGeneralizedTime startDate) { - } - - public void setEndDate(org.bouncycastle.asn1.DERGeneralizedTime endDate) { - } - - public void setIssuerUniqueID(org.bouncycastle.asn1.DERBitString issuerUniqueID) { - } - - /** - * @deprecated use method taking Extensions - * @param extensions - */ - public void setExtensions(X509Extensions extensions) { - } - - public void setExtensions(Extensions extensions) { - } - - public AttributeCertificateInfo generateAttributeCertificateInfo() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/V2Form.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/V2Form.java deleted file mode 100644 index 75b2a83c2..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/V2Form.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -public class V2Form extends org.bouncycastle.asn1.ASN1Object { - - public V2Form(GeneralNames issuerName) { - } - - public V2Form(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public static V2Form getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static V2Form getInstance(Object obj) { - } - - public GeneralNames getIssuerName() { - } - - public IssuerSerial getBaseCertificateID() { - } - - public ObjectDigestInfo getObjectDigestInfo() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - *
- * V2Form ::= SEQUENCE { - * issuerName GeneralNames OPTIONAL, - * baseCertificateID [0] IssuerSerial OPTIONAL, - * objectDigestInfo [1] ObjectDigestInfo OPTIONAL - * -- issuerName MUST be present in this profile - * -- baseCertificateID and objectDigestInfo MUST NOT - * -- be present in this profile - * } - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/V2TBSCertListGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/V2TBSCertListGenerator.java deleted file mode 100644 index ff3843f4b..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/V2TBSCertListGenerator.java +++ /dev/null @@ -1,83 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * Generator for Version 2 TBSCertList structures. - *
- * TBSCertList ::= SEQUENCE { - * version Version OPTIONAL, - * -- if present, shall be v2 - * signature AlgorithmIdentifier, - * issuer Name, - * thisUpdate Time, - * nextUpdate Time OPTIONAL, - * revokedCertificates SEQUENCE OF SEQUENCE { - * userCertificate CertificateSerialNumber, - * revocationDate Time, - * crlEntryExtensions Extensions OPTIONAL - * -- if present, shall be v2 - * } OPTIONAL, - * crlExtensions [0] EXPLICIT Extensions OPTIONAL - * -- if present, shall be v2 - * } - *- * - * Note: This class may be subject to change - */ -public class V2TBSCertListGenerator { - - public V2TBSCertListGenerator() { - } - - public void setSignature(AlgorithmIdentifier signature) { - } - - /** - * @deprecated use X500Name method - */ - public void setIssuer(X509Name issuer) { - } - - public void setIssuer(org.bouncycastle.asn1.x500.X500Name issuer) { - } - - public void setThisUpdate(org.bouncycastle.asn1.DERUTCTime thisUpdate) { - } - - public void setNextUpdate(org.bouncycastle.asn1.DERUTCTime nextUpdate) { - } - - public void setThisUpdate(Time thisUpdate) { - } - - public void setNextUpdate(Time nextUpdate) { - } - - public void addCRLEntry(org.bouncycastle.asn1.ASN1Sequence crlEntry) { - } - - public void addCRLEntry(org.bouncycastle.asn1.ASN1Integer userCertificate, org.bouncycastle.asn1.DERUTCTime revocationDate, int reason) { - } - - public void addCRLEntry(org.bouncycastle.asn1.ASN1Integer userCertificate, Time revocationDate, int reason) { - } - - public void addCRLEntry(org.bouncycastle.asn1.ASN1Integer userCertificate, Time revocationDate, int reason, org.bouncycastle.asn1.DERGeneralizedTime invalidityDate) { - } - - public void addCRLEntry(org.bouncycastle.asn1.ASN1Integer userCertificate, Time revocationDate, Extensions extensions) { - } - - public void setExtensions(X509Extensions extensions) { - } - - public void setExtensions(Extensions extensions) { - } - - public TBSCertList generateTBSCertList() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/V3TBSCertificateGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/V3TBSCertificateGenerator.java deleted file mode 100644 index 9032ac6f7..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/V3TBSCertificateGenerator.java +++ /dev/null @@ -1,87 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * Generator for Version 3 TBSCertificateStructures. - *
- * TBSCertificate ::= SEQUENCE { - * version [ 0 ] Version DEFAULT v1(0), - * serialNumber CertificateSerialNumber, - * signature AlgorithmIdentifier, - * issuer Name, - * validity Validity, - * subject Name, - * subjectPublicKeyInfo SubjectPublicKeyInfo, - * issuerUniqueID [ 1 ] IMPLICIT UniqueIdentifier OPTIONAL, - * subjectUniqueID [ 2 ] IMPLICIT UniqueIdentifier OPTIONAL, - * extensions [ 3 ] Extensions OPTIONAL - * } - *- */ -public class V3TBSCertificateGenerator { - - public V3TBSCertificateGenerator() { - } - - public void setSerialNumber(org.bouncycastle.asn1.ASN1Integer serialNumber) { - } - - public void setSignature(AlgorithmIdentifier signature) { - } - - /** - * @deprecated use X500Name method - */ - public void setIssuer(X509Name issuer) { - } - - public void setIssuer(org.bouncycastle.asn1.x500.X500Name issuer) { - } - - public void setStartDate(org.bouncycastle.asn1.DERUTCTime startDate) { - } - - public void setStartDate(Time startDate) { - } - - public void setEndDate(org.bouncycastle.asn1.DERUTCTime endDate) { - } - - public void setEndDate(Time endDate) { - } - - /** - * @deprecated use X500Name method - */ - public void setSubject(X509Name subject) { - } - - public void setSubject(org.bouncycastle.asn1.x500.X500Name subject) { - } - - public void setIssuerUniqueID(org.bouncycastle.asn1.DERBitString uniqueID) { - } - - public void setSubjectUniqueID(org.bouncycastle.asn1.DERBitString uniqueID) { - } - - public void setSubjectPublicKeyInfo(SubjectPublicKeyInfo pubKeyInfo) { - } - - /** - * @deprecated use method taking Extensions - * @param extensions - */ - public void setExtensions(X509Extensions extensions) { - } - - public void setExtensions(Extensions extensions) { - } - - public TBSCertificate generateTBSCertificate() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509AttributeIdentifiers.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509AttributeIdentifiers.java deleted file mode 100644 index f4b480582..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509AttributeIdentifiers.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -public interface X509AttributeIdentifiers { - - /** - * @deprecated use id_at_role - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier RoleSyntax; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_pe_ac_auditIdentity; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_pe_aaControls; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_pe_ac_proxying; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_ce_targetInformation; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_aca; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_aca_authenticationInfo; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_aca_accessIdentity; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_aca_chargingIdentity; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_aca_group; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_aca_encAttrs; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_at_role; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_at_clearance; -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509CertificateStructure.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509CertificateStructure.java deleted file mode 100644 index 8b566f371..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509CertificateStructure.java +++ /dev/null @@ -1,62 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * an X509Certificate structure. - *
- * Certificate ::= SEQUENCE { - * tbsCertificate TBSCertificate, - * signatureAlgorithm AlgorithmIdentifier, - * signature BIT STRING - * } - *- * @deprecated use org.bouncycastle.asn1.x509.Certificate - */ -public class X509CertificateStructure extends org.bouncycastle.asn1.ASN1Object { - - public X509CertificateStructure(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public static X509CertificateStructure getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static X509CertificateStructure getInstance(Object obj) { - } - - public TBSCertificateStructure getTBSCertificate() { - } - - public int getVersion() { - } - - public org.bouncycastle.asn1.ASN1Integer getSerialNumber() { - } - - public org.bouncycastle.asn1.x500.X500Name getIssuer() { - } - - public Time getStartDate() { - } - - public Time getEndDate() { - } - - public org.bouncycastle.asn1.x500.X500Name getSubject() { - } - - public SubjectPublicKeyInfo getSubjectPublicKeyInfo() { - } - - public AlgorithmIdentifier getSignatureAlgorithm() { - } - - public org.bouncycastle.asn1.DERBitString getSignature() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509DefaultEntryConverter.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509DefaultEntryConverter.java deleted file mode 100644 index 1abd56521..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509DefaultEntryConverter.java +++ /dev/null @@ -1,27 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * The default converter for X509 DN entries when going from their - * string value to ASN.1 strings. - */ -public class X509DefaultEntryConverter extends X509NameEntryConverter { - - public X509DefaultEntryConverter() { - } - - /** - * Apply default coversion for the given value depending on the oid - * and the character range of the value. - * - * @param oid the object identifier for the DN entry - * @param value the value associated with it - * @return the ASN.1 equivalent for the string value. - */ - public org.bouncycastle.asn1.ASN1Primitive getConvertedValue(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, String value) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509Extension.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509Extension.java deleted file mode 100644 index 97f2bb796..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509Extension.java +++ /dev/null @@ -1,197 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * an object for the elements in the X.509 V3 extension block. - */ -public class X509Extension { - - /** - * Subject Directory Attributes - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier subjectDirectoryAttributes; - - /** - * Subject Key Identifier - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier subjectKeyIdentifier; - - /** - * Key Usage - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier keyUsage; - - /** - * Private Key Usage Period - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier privateKeyUsagePeriod; - - /** - * Subject Alternative Name - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier subjectAlternativeName; - - /** - * Issuer Alternative Name - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier issuerAlternativeName; - - /** - * Basic Constraints - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier basicConstraints; - - /** - * CRL Number - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier cRLNumber; - - /** - * Reason code - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier reasonCode; - - /** - * Hold Instruction Code - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier instructionCode; - - /** - * Invalidity Date - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier invalidityDate; - - /** - * Delta CRL indicator - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier deltaCRLIndicator; - - /** - * Issuing Distribution Point - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier issuingDistributionPoint; - - /** - * Certificate Issuer - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier certificateIssuer; - - /** - * Name Constraints - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier nameConstraints; - - /** - * CRL Distribution Points - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier cRLDistributionPoints; - - /** - * Certificate Policies - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier certificatePolicies; - - /** - * Policy Mappings - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier policyMappings; - - /** - * Authority Key Identifier - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier authorityKeyIdentifier; - - /** - * Policy Constraints - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier policyConstraints; - - /** - * Extended Key Usage - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier extendedKeyUsage; - - /** - * Freshest CRL - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier freshestCRL; - - /** - * Inhibit Any Policy - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier inhibitAnyPolicy; - - /** - * Authority Info Access - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier authorityInfoAccess; - - /** - * Subject Info Access - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier subjectInfoAccess; - - /** - * Logo Type - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier logoType; - - /** - * BiometricInfo - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier biometricInfo; - - /** - * QCStatements - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier qCStatements; - - /** - * Audit identity extension in attribute certificates. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier auditIdentity; - - /** - * NoRevAvail extension in attribute certificates. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier noRevAvail; - - /** - * TargetInformation extension in attribute certificates. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier targetInformation; - - public X509Extension(org.bouncycastle.asn1.DERBoolean critical, org.bouncycastle.asn1.ASN1OctetString value) { - } - - public X509Extension(boolean critical, org.bouncycastle.asn1.ASN1OctetString value) { - } - - public boolean isCritical() { - } - - public org.bouncycastle.asn1.ASN1OctetString getValue() { - } - - public org.bouncycastle.asn1.ASN1Encodable getParsedValue() { - } - - public int hashCode() { - } - - public boolean equals(Object o) { - } - - /** - * Convert the value of the passed in extension to an object - * @param ext the extension to parse - * @return the object the value string contains - * @exception IllegalArgumentException if conversion is not possible - */ - public static org.bouncycastle.asn1.ASN1Primitive convertValueToObject(X509Extension ext) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509Extensions.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509Extensions.java deleted file mode 100644 index 5570df91d..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509Extensions.java +++ /dev/null @@ -1,285 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * @deprecated use Extensions - */ -public class X509Extensions extends org.bouncycastle.asn1.ASN1Object { - - /** - * Subject Directory Attributes - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier SubjectDirectoryAttributes; - - /** - * Subject Key Identifier - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier SubjectKeyIdentifier; - - /** - * Key Usage - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier KeyUsage; - - /** - * Private Key Usage Period - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier PrivateKeyUsagePeriod; - - /** - * Subject Alternative Name - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier SubjectAlternativeName; - - /** - * Issuer Alternative Name - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier IssuerAlternativeName; - - /** - * Basic Constraints - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier BasicConstraints; - - /** - * CRL Number - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier CRLNumber; - - /** - * Reason code - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier ReasonCode; - - /** - * Hold Instruction Code - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier InstructionCode; - - /** - * Invalidity Date - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier InvalidityDate; - - /** - * Delta CRL indicator - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier DeltaCRLIndicator; - - /** - * Issuing Distribution Point - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier IssuingDistributionPoint; - - /** - * Certificate Issuer - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier CertificateIssuer; - - /** - * Name Constraints - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier NameConstraints; - - /** - * CRL Distribution Points - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier CRLDistributionPoints; - - /** - * Certificate Policies - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier CertificatePolicies; - - /** - * Policy Mappings - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier PolicyMappings; - - /** - * Authority Key Identifier - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier AuthorityKeyIdentifier; - - /** - * Policy Constraints - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier PolicyConstraints; - - /** - * Extended Key Usage - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier ExtendedKeyUsage; - - /** - * Freshest CRL - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier FreshestCRL; - - /** - * Inhibit Any Policy - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier InhibitAnyPolicy; - - /** - * Authority Info Access - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier AuthorityInfoAccess; - - /** - * Subject Info Access - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier SubjectInfoAccess; - - /** - * Logo Type - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier LogoType; - - /** - * BiometricInfo - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier BiometricInfo; - - /** - * QCStatements - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier QCStatements; - - /** - * Audit identity extension in attribute certificates. - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier AuditIdentity; - - /** - * NoRevAvail extension in attribute certificates. - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier NoRevAvail; - - /** - * TargetInformation extension in attribute certificates. - * @deprecated use X509Extension value. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier TargetInformation; - - /** - * Constructor from ASN1Sequence. - * - * the extensions are a list of constructed sequences, either with (OID, OctetString) or (OID, Boolean, OctetString) - */ - public X509Extensions(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - /** - * constructor from a table of extensions. - *
- * it's is assumed the table contains OID/String pairs. - */ - public X509Extensions(java.util.Hashtable extensions) { - } - - /** - * Constructor from a table of extensions with ordering. - *
- * It's is assumed the table contains OID/String pairs. - */ - public X509Extensions(java.util.Vector ordering, java.util.Hashtable extensions) { - } - - /** - * Constructor from two vectors - * - * @param objectIDs a vector of the object identifiers. - * @param values a vector of the extension values. - */ - public X509Extensions(java.util.Vector objectIDs, java.util.Vector values) { - } - - public static X509Extensions getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static X509Extensions getInstance(Object obj) { - } - - /** - * return an Enumeration of the extension field's object ids. - */ - public java.util.Enumeration oids() { - } - - /** - * return the extension represented by the object identifier - * passed in. - * - * @return the extension if it's present, null otherwise. - */ - public X509Extension getExtension(org.bouncycastle.asn1.DERObjectIdentifier oid) { - } - - /** - * @deprecated - * @param oid - * @return - */ - public X509Extension getExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier oid) { - } - - /** - *
- * Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension - * - * Extension ::= SEQUENCE { - * extnId EXTENSION.&id ({ExtensionSet}), - * critical BOOLEAN DEFAULT FALSE, - * extnValue OCTET STRING } - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } - - public boolean equivalent(X509Extensions other) { - } - - public org.bouncycastle.asn1.ASN1ObjectIdentifier[] getExtensionOIDs() { - } - - public org.bouncycastle.asn1.ASN1ObjectIdentifier[] getNonCriticalExtensionOIDs() { - } - - public org.bouncycastle.asn1.ASN1ObjectIdentifier[] getCriticalExtensionOIDs() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509ExtensionsGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509ExtensionsGenerator.java deleted file mode 100644 index c95d2a184..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509ExtensionsGenerator.java +++ /dev/null @@ -1,72 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * Generator for X.509 extensions - * @deprecated use org.bouncycastle.asn1.x509.ExtensionsGenerator - */ -public class X509ExtensionsGenerator { - - public X509ExtensionsGenerator() { - } - - /** - * Reset the generator - */ - public void reset() { - } - - /** - * @deprecated use ASN1ObjectIdentifier - */ - public void addExtension(org.bouncycastle.asn1.DERObjectIdentifier oid, boolean critical, org.bouncycastle.asn1.ASN1Encodable value) { - } - - /** - * @deprecated use ASN1ObjectIdentifier - */ - public void addExtension(org.bouncycastle.asn1.DERObjectIdentifier oid, boolean critical, byte[] value) { - } - - /** - * Add an extension with the given oid and the passed in value to be included - * in the OCTET STRING associated with the extension. - * - * @param oid OID for the extension. - * @param critical true if critical, false otherwise. - * @param value the ASN.1 object to be included in the extension. - */ - public void addExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, boolean critical, org.bouncycastle.asn1.ASN1Encodable value) { - } - - /** - * Add an extension with the given oid and the passed in byte array to be wrapped in the - * OCTET STRING associated with the extension. - * - * @param oid OID for the extension. - * @param critical true if critical, false otherwise. - * @param value the byte array to be wrapped. - */ - public void addExtension(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, boolean critical, byte[] value) { - } - - /** - * Return true if there are no extension present in this generator. - * - * @return true if empty, false otherwise - */ - public boolean isEmpty() { - } - - /** - * Generate an X509Extensions object based on the current state of the generator. - * - * @return an X09Extensions object. - */ - public X509Extensions generate() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509Name.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509Name.java deleted file mode 100644 index 2ac3afbf0..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509Name.java +++ /dev/null @@ -1,432 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - *
- * RDNSequence ::= SEQUENCE OF RelativeDistinguishedName - * - * RelativeDistinguishedName ::= SET SIZE (1..MAX) OF AttributeTypeAndValue - * - * AttributeTypeAndValue ::= SEQUENCE { - * type OBJECT IDENTIFIER, - * value ANY } - *- * @deprecated use org.bouncycastle.asn1.x500.X500Name. - */ -public class X509Name extends org.bouncycastle.asn1.ASN1Object { - - /** - * country code - StringType(SIZE(2)) - * @deprecated use a X500NameStyle - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier C; - - /** - * organization - StringType(SIZE(1..64)) - * @deprecated use a X500NameStyle - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier O; - - /** - * organizational unit name - StringType(SIZE(1..64)) - * @deprecated use a X500NameStyle - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier OU; - - /** - * Title - * @deprecated use a X500NameStyle - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier T; - - /** - * common name - StringType(SIZE(1..64)) - * @deprecated use a X500NameStyle - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier CN; - - /** - * device serial number name - StringType(SIZE(1..64)) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier SN; - - /** - * street - StringType(SIZE(1..64)) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier STREET; - - /** - * device serial number name - StringType(SIZE(1..64)) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier SERIALNUMBER; - - /** - * locality name - StringType(SIZE(1..64)) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier L; - - /** - * state, or province name - StringType(SIZE(1..64)) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier ST; - - /** - * Naming attributes of type X520name - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier SURNAME; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier GIVENNAME; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier INITIALS; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier GENERATION; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier UNIQUE_IDENTIFIER; - - /** - * businessCategory - DirectoryString(SIZE(1..128) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier BUSINESS_CATEGORY; - - /** - * postalCode - DirectoryString(SIZE(1..40) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier POSTAL_CODE; - - /** - * dnQualifier - DirectoryString(SIZE(1..64) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier DN_QUALIFIER; - - /** - * RFC 3039 Pseudonym - DirectoryString(SIZE(1..64) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier PSEUDONYM; - - /** - * RFC 3039 DateOfBirth - GeneralizedTime - YYYYMMDD000000Z - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier DATE_OF_BIRTH; - - /** - * RFC 3039 PlaceOfBirth - DirectoryString(SIZE(1..128) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier PLACE_OF_BIRTH; - - /** - * RFC 3039 Gender - PrintableString (SIZE(1)) -- "M", "F", "m" or "f" - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier GENDER; - - /** - * RFC 3039 CountryOfCitizenship - PrintableString (SIZE (2)) -- ISO 3166 - * codes only - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier COUNTRY_OF_CITIZENSHIP; - - /** - * RFC 3039 CountryOfResidence - PrintableString (SIZE (2)) -- ISO 3166 - * codes only - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier COUNTRY_OF_RESIDENCE; - - /** - * ISIS-MTT NameAtBirth - DirectoryString(SIZE(1..64) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier NAME_AT_BIRTH; - - /** - * RFC 3039 PostalAddress - SEQUENCE SIZE (1..6) OF - * DirectoryString(SIZE(1..30)) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier POSTAL_ADDRESS; - - /** - * RFC 2256 dmdName - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier DMD_NAME; - - /** - * id-at-telephoneNumber - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier TELEPHONE_NUMBER; - - /** - * id-at-name - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier NAME; - - /** - * Email address (RSA PKCS#9 extension) - IA5String. - *
Note: if you're trying to be ultra orthodox, don't use this! It shouldn't be in here. - * @deprecated use a X500NameStyle - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier EmailAddress; - - /** - * more from PKCS#9 - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier UnstructuredName; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier UnstructuredAddress; - - /** - * email address in Verisign certificates - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier E; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier DC; - - /** - * LDAP User id. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier UID; - - /** - * determines whether or not strings should be processed and printed - * from back to front. - */ - public static boolean DefaultReverse; - - /** - * default look up table translating OID values into their common symbols following - * the convention in RFC 2253 with a few extras - */ - public static final java.util.Hashtable DefaultSymbols; - - /** - * look up table translating OID values into their common symbols following the convention in RFC 2253 - * - */ - public static final java.util.Hashtable RFC2253Symbols; - - /** - * look up table translating OID values into their common symbols following the convention in RFC 1779 - * - */ - public static final java.util.Hashtable RFC1779Symbols; - - /** - * look up table translating common symbols into their OIDS. - */ - public static final java.util.Hashtable DefaultLookUp; - - /** - * look up table translating OID values into their common symbols - * @deprecated use DefaultSymbols - */ - public static final java.util.Hashtable OIDLookUp; - - /** - * look up table translating string values into their OIDS - - * @deprecated use DefaultLookUp - */ - public static final java.util.Hashtable SymbolLookUp; - - protected X509Name() { - } - - /** - * Constructor from ASN1Sequence - * - * the principal will be a list of constructed sets, each containing an (OID, String) pair. - */ - public X509Name(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - /** - * constructor from a table of attributes. - *
- * it's is assumed the table contains OID/String pairs, and the contents - * of the table are copied into an internal table as part of the - * construction process. - *
- * Note: if the name you are trying to generate should be - * following a specific ordering, you should use the constructor - * with the ordering specified below. - * @deprecated use an ordered constructor! The hashtable ordering is rarely correct - */ - public X509Name(java.util.Hashtable attributes) { - } - - /** - * Constructor from a table of attributes with ordering. - *
- * it's is assumed the table contains OID/String pairs, and the contents - * of the table are copied into an internal table as part of the - * construction process. The ordering vector should contain the OIDs - * in the order they are meant to be encoded or printed in toString. - */ - public X509Name(java.util.Vector ordering, java.util.Hashtable attributes) { - } - - /** - * Constructor from a table of attributes with ordering. - *
- * it's is assumed the table contains OID/String pairs, and the contents - * of the table are copied into an internal table as part of the - * construction process. The ordering vector should contain the OIDs - * in the order they are meant to be encoded or printed in toString. - *
- * The passed in converter will be used to convert the strings into their - * ASN.1 counterparts. - */ - public X509Name(java.util.Vector ordering, java.util.Hashtable attributes, X509NameEntryConverter converter) { - } - - /** - * Takes two vectors one of the oids and the other of the values. - */ - public X509Name(java.util.Vector oids, java.util.Vector values) { - } - - /** - * Takes two vectors one of the oids and the other of the values. - *
- * The passed in converter will be used to convert the strings into their
- * ASN.1 counterparts.
- */
- public X509Name(java.util.Vector oids, java.util.Vector values, X509NameEntryConverter converter) {
- }
-
- /**
- * Takes an X509 dir name as a string of the format "C=AU, ST=Victoria", or
- * some such, converting it into an ordered set of name attributes.
- */
- public X509Name(String dirName) {
- }
-
- /**
- * Takes an X509 dir name as a string of the format "C=AU, ST=Victoria", or
- * some such, converting it into an ordered set of name attributes with each
- * string value being converted to its associated ASN.1 type using the passed
- * in converter.
- */
- public X509Name(String dirName, X509NameEntryConverter converter) {
- }
-
- /**
- * Takes an X509 dir name as a string of the format "C=AU, ST=Victoria", or
- * some such, converting it into an ordered set of name attributes. If reverse
- * is true, create the encoded version of the sequence starting from the
- * last element in the string.
- */
- public X509Name(boolean reverse, String dirName) {
- }
-
- /**
- * Takes an X509 dir name as a string of the format "C=AU, ST=Victoria", or
- * some such, converting it into an ordered set of name attributes with each
- * string value being converted to its associated ASN.1 type using the passed
- * in converter. If reverse is true the ASN.1 sequence representing the DN will
- * be built by starting at the end of the string, rather than the start.
- */
- public X509Name(boolean reverse, String dirName, X509NameEntryConverter converter) {
- }
-
- /**
- * Takes an X509 dir name as a string of the format "C=AU, ST=Victoria", or
- * some such, converting it into an ordered set of name attributes. lookUp
- * should provide a table of lookups, indexed by lowercase only strings and
- * yielding a ASN1ObjectIdentifier, other than that OID. and numeric oids
- * will be processed automatically.
- *
- * If reverse is true, create the encoded version of the sequence
- * starting from the last element in the string.
- * @param reverse true if we should start scanning from the end (RFC 2553).
- * @param lookUp table of names and their oids.
- * @param dirName the X.500 string to be parsed.
- */
- public X509Name(boolean reverse, java.util.Hashtable lookUp, String dirName) {
- }
-
- /**
- * Takes an X509 dir name as a string of the format "C=AU, ST=Victoria", or
- * some such, converting it into an ordered set of name attributes. lookUp
- * should provide a table of lookups, indexed by lowercase only strings and
- * yielding a ASN1ObjectIdentifier, other than that OID. and numeric oids
- * will be processed automatically. The passed in converter is used to convert the
- * string values to the right of each equals sign to their ASN.1 counterparts.
- *
- * @param reverse true if we should start scanning from the end, false otherwise.
- * @param lookUp table of names and oids.
- * @param dirName the string dirName
- * @param converter the converter to convert string values into their ASN.1 equivalents
- */
- public X509Name(boolean reverse, java.util.Hashtable lookUp, String dirName, X509NameEntryConverter converter) {
- }
-
- /**
- * Return a X509Name based on the passed in tagged object.
- *
- * @param obj tag object holding name.
- * @param explicit true if explicitly tagged false otherwise.
- * @return the X509Name
- */
- public static X509Name getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) {
- }
-
- public static X509Name getInstance(Object obj) {
- }
-
- /**
- * return a vector of the oids in the name, in the order they were found.
- */
- public java.util.Vector getOIDs() {
- }
-
- /**
- * return a vector of the values found in the name, in the order they
- * were found.
- */
- public java.util.Vector getValues() {
- }
-
- /**
- * return a vector of the values found in the name, in the order they
- * were found, with the DN label corresponding to passed in oid.
- */
- public java.util.Vector getValues(org.bouncycastle.asn1.ASN1ObjectIdentifier oid) {
- }
-
- public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() {
- }
-
- /**
- * @param inOrder if true the order of both X509 names must be the same,
- * as well as the values associated with each element.
- */
- public boolean equals(Object obj, boolean inOrder) {
- }
-
- public int hashCode() {
- }
-
- /**
- * test for equality - note: case is ignored.
- */
- public boolean equals(Object obj) {
- }
-
- /**
- * convert the structure to a string - if reverse is true the
- * oids and values are listed out starting with the last element
- * in the sequence (ala RFC 2253), otherwise the string will begin
- * with the first element of the structure. If no string definition
- * for the oid is found in oidSymbols the string value of the oid is
- * added. Two standard symbol tables are provided DefaultSymbols, and
- * RFC2253Symbols as part of this class.
- *
- * @param reverse if true start at the end of the sequence and work back.
- * @param oidSymbols look up table strings for oids.
- */
- public String toString(boolean reverse, java.util.Hashtable oidSymbols) {
- }
-
- public String toString() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509NameEntryConverter.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509NameEntryConverter.java
deleted file mode 100644
index 03ac2717b..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509NameEntryConverter.java
+++ /dev/null
@@ -1,79 +0,0 @@
-/**
- *
- * Support classes useful for encoding and processing X.509 certificates.
- */
-package org.bouncycastle.asn1.x509;
-
-
-/**
- * It turns out that the number of standard ways the fields in a DN should be
- * encoded into their ASN.1 counterparts is rapidly approaching the
- * number of machines on the internet. By default the X509Name class
- * will produce UTF8Strings in line with the current recommendations (RFC 3280).
- *
- * An example of an encoder look like below: - *
- * public class X509DirEntryConverter - * extends X509NameEntryConverter - * { - * public ASN1Primitive getConvertedValue( - * ASN1ObjectIdentifier oid, - * String value) - * { - * if (str.length() != 0 && str.charAt(0) == '#') - * { - * return convertHexEncoded(str, 1); - * } - * if (oid.equals(EmailAddress)) - * { - * return new DERIA5String(str); - * } - * else if (canBePrintable(str)) - * { - * return new DERPrintableString(str); - * } - * else if (canBeUTF8(str)) - * { - * return new DERUTF8String(str); - * } - * else - * { - * return new DERBMPString(str); - * } - * } - * } - */ -public abstract class X509NameEntryConverter { - - public X509NameEntryConverter() { - } - - /** - * Convert an inline encoded hex string rendition of an ASN.1 - * object back into its corresponding ASN.1 object. - * - * @param str the hex encoded object - * @param off the index at which the encoding starts - * @return the decoded object - */ - protected org.bouncycastle.asn1.ASN1Primitive convertHexEncoded(String str, int off) { - } - - /** - * return true if the passed in String can be represented without - * loss as a PrintableString, false otherwise. - */ - protected boolean canBePrintable(String str) { - } - - /** - * Convert the passed in String value into the appropriate ASN.1 - * encoded object. - * - * @param oid the oid associated with the value in the DN. - * @param value the value of the particular DN component. - * @return the ASN.1 equivalent for the value. - */ - public abstract org.bouncycastle.asn1.ASN1Primitive getConvertedValue(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, String value) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509NameTokenizer.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509NameTokenizer.java deleted file mode 100644 index 614648563..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509NameTokenizer.java +++ /dev/null @@ -1,27 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -/** - * class for breaking up an X500 Name into it's component tokens, ala - * java.util.StringTokenizer. We need this class as some of the - * lightweight Java environment don't support classes like - * StringTokenizer. - */ -public class X509NameTokenizer { - - public X509NameTokenizer(String oid) { - } - - public X509NameTokenizer(String oid, char seperator) { - } - - public boolean hasMoreTokens() { - } - - public String nextToken() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509ObjectIdentifiers.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509ObjectIdentifiers.java deleted file mode 100644 index 71153b1e2..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/X509ObjectIdentifiers.java +++ /dev/null @@ -1,51 +0,0 @@ -/** - * - * Support classes useful for encoding and processing X.509 certificates. - */ -package org.bouncycastle.asn1.x509; - - -public interface X509ObjectIdentifiers { - - public static final String id = "2.5.4"; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier commonName; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier countryName; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier localityName; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier stateOrProvinceName; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier organization; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier organizationalUnitName; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_at_telephoneNumber; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_at_name; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_SHA1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier ripemd160; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier ripemd160WithRSAEncryption; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_ea_rsa; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_pkix; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_pe; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_ce; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_ad; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_ad_caIssuers; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_ad_ocsp; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier ocspAccessMethod; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier crlAccessMethod; -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/qualified/BiometricData.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/qualified/BiometricData.java deleted file mode 100644 index a84bf7791..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/qualified/BiometricData.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * - * Support classes useful for encoding and processing messages based around RFC3739 - */ -package org.bouncycastle.asn1.x509.qualified; - - -/** - * The BiometricData object. - *- * BiometricData ::= SEQUENCE { - * typeOfBiometricData TypeOfBiometricData, - * hashAlgorithm AlgorithmIdentifier, - * biometricDataHash OCTET STRING, - * sourceDataUri IA5String OPTIONAL } - *- */ -public class BiometricData extends org.bouncycastle.asn1.ASN1Object { - - public BiometricData(TypeOfBiometricData typeOfBiometricData, org.bouncycastle.asn1.x509.AlgorithmIdentifier hashAlgorithm, org.bouncycastle.asn1.ASN1OctetString biometricDataHash, org.bouncycastle.asn1.DERIA5String sourceDataUri) { - } - - public BiometricData(TypeOfBiometricData typeOfBiometricData, org.bouncycastle.asn1.x509.AlgorithmIdentifier hashAlgorithm, org.bouncycastle.asn1.ASN1OctetString biometricDataHash) { - } - - public static BiometricData getInstance(Object obj) { - } - - public TypeOfBiometricData getTypeOfBiometricData() { - } - - public org.bouncycastle.asn1.x509.AlgorithmIdentifier getHashAlgorithm() { - } - - public org.bouncycastle.asn1.ASN1OctetString getBiometricDataHash() { - } - - public org.bouncycastle.asn1.DERIA5String getSourceDataUri() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/qualified/ETSIQCObjectIdentifiers.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/qualified/ETSIQCObjectIdentifiers.java deleted file mode 100644 index 28fc32e5d..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/qualified/ETSIQCObjectIdentifiers.java +++ /dev/null @@ -1,19 +0,0 @@ -/** - * - * Support classes useful for encoding and processing messages based around RFC3739 - */ -package org.bouncycastle.asn1.x509.qualified; - - -public interface ETSIQCObjectIdentifiers { - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_etsi_qcs; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_etsi_qcs_QcCompliance; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_etsi_qcs_LimiteValue; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_etsi_qcs_RetentionPeriod; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_etsi_qcs_QcSSCD; -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/qualified/Iso4217CurrencyCode.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/qualified/Iso4217CurrencyCode.java deleted file mode 100644 index 30eb65279..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/qualified/Iso4217CurrencyCode.java +++ /dev/null @@ -1,40 +0,0 @@ -/** - * - * Support classes useful for encoding and processing messages based around RFC3739 - */ -package org.bouncycastle.asn1.x509.qualified; - - -/** - * The Iso4217CurrencyCode object. - *- * Iso4217CurrencyCode ::= CHOICE { - * alphabetic PrintableString (SIZE 3), --Recommended - * numeric INTEGER (1..999) } - * -- Alphabetic or numeric currency code as defined in ISO 4217 - * -- It is recommended that the Alphabetic form is used - *- */ -public class Iso4217CurrencyCode extends org.bouncycastle.asn1.ASN1Object implements org.bouncycastle.asn1.ASN1Choice { - - public Iso4217CurrencyCode(int numeric) { - } - - public Iso4217CurrencyCode(String alphabetic) { - } - - public static Iso4217CurrencyCode getInstance(Object obj) { - } - - public boolean isAlphabetic() { - } - - public String getAlphabetic() { - } - - public int getNumeric() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/qualified/MonetaryValue.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/qualified/MonetaryValue.java deleted file mode 100644 index ad9f51411..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/qualified/MonetaryValue.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - * - * Support classes useful for encoding and processing messages based around RFC3739 - */ -package org.bouncycastle.asn1.x509.qualified; - - -/** - * The MonetaryValue object. - *- * MonetaryValue ::= SEQUENCE { - * currency Iso4217CurrencyCode, - * amount INTEGER, - * exponent INTEGER } - * -- value = amount * 10^exponent - *- */ -public class MonetaryValue extends org.bouncycastle.asn1.ASN1Object { - - public MonetaryValue(Iso4217CurrencyCode currency, int amount, int exponent) { - } - - public static MonetaryValue getInstance(Object obj) { - } - - public Iso4217CurrencyCode getCurrency() { - } - - public javabc.BigInteger getAmount() { - } - - public javabc.BigInteger getExponent() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/qualified/QCStatement.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/qualified/QCStatement.java deleted file mode 100644 index cdac1cb62..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/qualified/QCStatement.java +++ /dev/null @@ -1,35 +0,0 @@ -/** - * - * Support classes useful for encoding and processing messages based around RFC3739 - */ -package org.bouncycastle.asn1.x509.qualified; - - -/** - * The QCStatement object. - *- * QCStatement ::= SEQUENCE { - * statementId OBJECT IDENTIFIER, - * statementInfo ANY DEFINED BY statementId OPTIONAL} - *- */ -public class QCStatement extends org.bouncycastle.asn1.ASN1Object { - - public QCStatement(org.bouncycastle.asn1.ASN1ObjectIdentifier qcStatementId) { - } - - public QCStatement(org.bouncycastle.asn1.ASN1ObjectIdentifier qcStatementId, org.bouncycastle.asn1.ASN1Encodable qcStatementInfo) { - } - - public static QCStatement getInstance(Object obj) { - } - - public org.bouncycastle.asn1.ASN1ObjectIdentifier getStatementId() { - } - - public org.bouncycastle.asn1.ASN1Encodable getStatementInfo() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/qualified/RFC3739QCObjectIdentifiers.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/qualified/RFC3739QCObjectIdentifiers.java deleted file mode 100644 index 93b40962d..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/qualified/RFC3739QCObjectIdentifiers.java +++ /dev/null @@ -1,12 +0,0 @@ -/** - * - * Support classes useful for encoding and processing messages based around RFC3739 - */ -package org.bouncycastle.asn1.x509.qualified; - - -public class RFC3739QCObjectIdentifiers { - - public RFC3739QCObjectIdentifiers() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/qualified/SemanticsInformation.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/qualified/SemanticsInformation.java deleted file mode 100644 index 9a89efff1..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/qualified/SemanticsInformation.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * - * Support classes useful for encoding and processing messages based around RFC3739 - */ -package org.bouncycastle.asn1.x509.qualified; - - -/** - * The SemanticsInformation object. - *- * SemanticsInformation ::= SEQUENCE { - * semanticsIdentifier OBJECT IDENTIFIER OPTIONAL, - * nameRegistrationAuthorities NameRegistrationAuthorities - * OPTIONAL } - * (WITH COMPONENTS {..., semanticsIdentifier PRESENT}| - * WITH COMPONENTS {..., nameRegistrationAuthorities PRESENT}) - * - * NameRegistrationAuthorities ::= SEQUENCE SIZE (1..MAX) OF - * GeneralName - *- */ -public class SemanticsInformation extends org.bouncycastle.asn1.ASN1Object { - - public SemanticsInformation(org.bouncycastle.asn1.ASN1ObjectIdentifier semanticsIdentifier, org.bouncycastle.asn1.x509.GeneralName[] generalNames) { - } - - public SemanticsInformation(org.bouncycastle.asn1.ASN1ObjectIdentifier semanticsIdentifier) { - } - - public SemanticsInformation(org.bouncycastle.asn1.x509.GeneralName[] generalNames) { - } - - public static SemanticsInformation getInstance(Object obj) { - } - - public org.bouncycastle.asn1.ASN1ObjectIdentifier getSemanticsIdentifier() { - } - - public org.bouncycastle.asn1.x509.GeneralName[] getNameRegistrationAuthorities() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/qualified/TypeOfBiometricData.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/qualified/TypeOfBiometricData.java deleted file mode 100644 index 566908259..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/qualified/TypeOfBiometricData.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * - * Support classes useful for encoding and processing messages based around RFC3739 - */ -package org.bouncycastle.asn1.x509.qualified; - - -/** - * The TypeOfBiometricData object. - *- * TypeOfBiometricData ::= CHOICE { - * predefinedBiometricType PredefinedBiometricType, - * biometricDataOid OBJECT IDENTIFIER } - * - * PredefinedBiometricType ::= INTEGER { - * picture(0),handwritten-signature(1)} - * (picture|handwritten-signature) - *- */ -public class TypeOfBiometricData extends org.bouncycastle.asn1.ASN1Object implements org.bouncycastle.asn1.ASN1Choice { - - public static final int PICTURE = 0; - - public static final int HANDWRITTEN_SIGNATURE = 1; - - public TypeOfBiometricData(int predefinedBiometricType) { - } - - public TypeOfBiometricData(org.bouncycastle.asn1.ASN1ObjectIdentifier BiometricDataID) { - } - - public static TypeOfBiometricData getInstance(Object obj) { - } - - public boolean isPredefined() { - } - - public int getPredefinedBiometricType() { - } - - public org.bouncycastle.asn1.ASN1ObjectIdentifier getBiometricDataOid() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/sigi/NameOrPseudonym.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/sigi/NameOrPseudonym.java deleted file mode 100644 index 24cff6ebf..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/sigi/NameOrPseudonym.java +++ /dev/null @@ -1,89 +0,0 @@ -package org.bouncycastle.asn1.x509.sigi; - - -/** - * Structure for a name or pseudonym. - * - *- * NameOrPseudonym ::= CHOICE { - * surAndGivenName SEQUENCE { - * surName DirectoryString, - * givenName SEQUENCE OF DirectoryString - * }, - * pseudonym DirectoryString - * } - *- * - * @see org.bouncycastle.asn1.x509.sigi.PersonalData - * - */ -public class NameOrPseudonym extends org.bouncycastle.asn1.ASN1Object implements org.bouncycastle.asn1.ASN1Choice { - - /** - * Constructor from DirectoryString. - * - * The sequence is of type NameOrPseudonym: - * - *- * NameOrPseudonym ::= CHOICE { - * surAndGivenName SEQUENCE { - * surName DirectoryString, - * givenName SEQUENCE OF DirectoryString - * }, - * pseudonym DirectoryString - * } - *- * @param pseudonym pseudonym value to use. - */ - public NameOrPseudonym(org.bouncycastle.asn1.x500.DirectoryString pseudonym) { - } - - /** - * Constructor from a given details. - * - * @param pseudonym The pseudonym. - */ - public NameOrPseudonym(String pseudonym) { - } - - /** - * Constructor from a given details. - * - * @param surname The surname. - * @param givenName A sequence of directory strings making up the givenName - */ - public NameOrPseudonym(org.bouncycastle.asn1.x500.DirectoryString surname, org.bouncycastle.asn1.ASN1Sequence givenName) { - } - - public static NameOrPseudonym getInstance(Object obj) { - } - - public org.bouncycastle.asn1.x500.DirectoryString getPseudonym() { - } - - public org.bouncycastle.asn1.x500.DirectoryString getSurname() { - } - - public org.bouncycastle.asn1.x500.DirectoryString[] getGivenName() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - * - * Returns: - * - *- * NameOrPseudonym ::= CHOICE { - * surAndGivenName SEQUENCE { - * surName DirectoryString, - * givenName SEQUENCE OF DirectoryString - * }, - * pseudonym DirectoryString - * } - *- * - * @return a DERObject - */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/sigi/PersonalData.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/sigi/PersonalData.java deleted file mode 100644 index 566e2f064..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/sigi/PersonalData.java +++ /dev/null @@ -1,78 +0,0 @@ -package org.bouncycastle.asn1.x509.sigi; - - -/** - * Contains personal data for the otherName field in the subjectAltNames - * extension. - * - *- * PersonalData ::= SEQUENCE { - * nameOrPseudonym NameOrPseudonym, - * nameDistinguisher [0] INTEGER OPTIONAL, - * dateOfBirth [1] GeneralizedTime OPTIONAL, - * placeOfBirth [2] DirectoryString OPTIONAL, - * gender [3] PrintableString OPTIONAL, - * postalAddress [4] DirectoryString OPTIONAL - * } - *- * - * @see org.bouncycastle.asn1.x509.sigi.NameOrPseudonym - * @see org.bouncycastle.asn1.x509.sigi.SigIObjectIdentifiers - */ -public class PersonalData extends org.bouncycastle.asn1.ASN1Object { - - /** - * Constructor from a given details. - * - * @param nameOrPseudonym Name or pseudonym. - * @param nameDistinguisher Name distinguisher. - * @param dateOfBirth Date of birth. - * @param placeOfBirth Place of birth. - * @param gender Gender. - * @param postalAddress Postal Address. - */ - public PersonalData(NameOrPseudonym nameOrPseudonym, javabc.BigInteger nameDistinguisher, org.bouncycastle.asn1.DERGeneralizedTime dateOfBirth, org.bouncycastle.asn1.x500.DirectoryString placeOfBirth, String gender, org.bouncycastle.asn1.x500.DirectoryString postalAddress) { - } - - public static PersonalData getInstance(Object obj) { - } - - public NameOrPseudonym getNameOrPseudonym() { - } - - public javabc.BigInteger getNameDistinguisher() { - } - - public org.bouncycastle.asn1.DERGeneralizedTime getDateOfBirth() { - } - - public org.bouncycastle.asn1.x500.DirectoryString getPlaceOfBirth() { - } - - public String getGender() { - } - - public org.bouncycastle.asn1.x500.DirectoryString getPostalAddress() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - * - * Returns: - * - *- * PersonalData ::= SEQUENCE { - * nameOrPseudonym NameOrPseudonym, - * nameDistinguisher [0] INTEGER OPTIONAL, - * dateOfBirth [1] GeneralizedTime OPTIONAL, - * placeOfBirth [2] DirectoryString OPTIONAL, - * gender [3] PrintableString OPTIONAL, - * postalAddress [4] DirectoryString OPTIONAL - * } - *- * - * @return a DERObject - */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/sigi/SigIObjectIdentifiers.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/sigi/SigIObjectIdentifiers.java deleted file mode 100644 index acb1edd3d..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x509/sigi/SigIObjectIdentifiers.java +++ /dev/null @@ -1,43 +0,0 @@ -package org.bouncycastle.asn1.x509.sigi; - - -/** - * Object Identifiers of SigI specifciation (German Signature Law - * Interoperability specification). - */ -public interface SigIObjectIdentifiers { - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_sigi; - - /** - * Key purpose IDs for German SigI (Signature Interoperability - * Specification) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_sigi_kp; - - /** - * Certificate policy IDs for German SigI (Signature Interoperability - * Specification) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_sigi_cp; - - /** - * Other Name IDs for German SigI (Signature Interoperability Specification) - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_sigi_on; - - /** - * To be used for for the generation of directory service certificates. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_sigi_kp_directoryService; - - /** - * ID for PersonalData - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_sigi_on_personalData; - - /** - * Certificate is conform to german signature law. - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_sigi_cp_sigconform; -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/DHDomainParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/DHDomainParameters.java deleted file mode 100644 index 0fd7ee836..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/DHDomainParameters.java +++ /dev/null @@ -1,36 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting X9.62 elliptic curve. - */ -package org.bouncycastle.asn1.x9; - - -public class DHDomainParameters extends org.bouncycastle.asn1.ASN1Object { - - public DHDomainParameters(org.bouncycastle.asn1.ASN1Integer p, org.bouncycastle.asn1.ASN1Integer g, org.bouncycastle.asn1.ASN1Integer q, org.bouncycastle.asn1.ASN1Integer j, DHValidationParms validationParms) { - } - - public static DHDomainParameters getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static DHDomainParameters getInstance(Object obj) { - } - - public org.bouncycastle.asn1.ASN1Integer getP() { - } - - public org.bouncycastle.asn1.ASN1Integer getG() { - } - - public org.bouncycastle.asn1.ASN1Integer getQ() { - } - - public org.bouncycastle.asn1.ASN1Integer getJ() { - } - - public DHValidationParms getValidationParms() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/DHPublicKey.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/DHPublicKey.java deleted file mode 100644 index 74608e557..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/DHPublicKey.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting X9.62 elliptic curve. - */ -package org.bouncycastle.asn1.x9; - - -public class DHPublicKey extends org.bouncycastle.asn1.ASN1Object { - - public DHPublicKey(org.bouncycastle.asn1.ASN1Integer y) { - } - - public static DHPublicKey getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static DHPublicKey getInstance(Object obj) { - } - - public org.bouncycastle.asn1.ASN1Integer getY() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/DHValidationParms.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/DHValidationParms.java deleted file mode 100644 index 0da096380..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/DHValidationParms.java +++ /dev/null @@ -1,27 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting X9.62 elliptic curve. - */ -package org.bouncycastle.asn1.x9; - - -public class DHValidationParms extends org.bouncycastle.asn1.ASN1Object { - - public DHValidationParms(org.bouncycastle.asn1.DERBitString seed, org.bouncycastle.asn1.ASN1Integer pgenCounter) { - } - - public static DHValidationParms getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public static DHValidationParms getInstance(Object obj) { - } - - public org.bouncycastle.asn1.DERBitString getSeed() { - } - - public org.bouncycastle.asn1.ASN1Integer getPgenCounter() { - } - - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/KeySpecificInfo.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/KeySpecificInfo.java deleted file mode 100644 index daaac5082..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/KeySpecificInfo.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting X9.62 elliptic curve. - */ -package org.bouncycastle.asn1.x9; - - -/** - * ASN.1 def for Diffie-Hellman key exchange KeySpecificInfo structure. See - * RFC 2631, or X9.42, for further details. - */ -public class KeySpecificInfo extends org.bouncycastle.asn1.ASN1Object { - - public KeySpecificInfo(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm, org.bouncycastle.asn1.ASN1OctetString counter) { - } - - public KeySpecificInfo(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public org.bouncycastle.asn1.ASN1ObjectIdentifier getAlgorithm() { - } - - public org.bouncycastle.asn1.ASN1OctetString getCounter() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - *- * KeySpecificInfo ::= SEQUENCE { - * algorithm OBJECT IDENTIFIER, - * counter OCTET STRING SIZE (4..4) - * } - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/OtherInfo.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/OtherInfo.java deleted file mode 100644 index facebf772..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/OtherInfo.java +++ /dev/null @@ -1,41 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting X9.62 elliptic curve. - */ -package org.bouncycastle.asn1.x9; - - -/** - * ANS.1 def for Diffie-Hellman key exchange OtherInfo structure. See - * RFC 2631, or X9.42, for further details. - */ -public class OtherInfo extends org.bouncycastle.asn1.ASN1Object { - - public OtherInfo(KeySpecificInfo keyInfo, org.bouncycastle.asn1.ASN1OctetString partyAInfo, org.bouncycastle.asn1.ASN1OctetString suppPubInfo) { - } - - public OtherInfo(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public KeySpecificInfo getKeyInfo() { - } - - public org.bouncycastle.asn1.ASN1OctetString getPartyAInfo() { - } - - public org.bouncycastle.asn1.ASN1OctetString getSuppPubInfo() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - *- * OtherInfo ::= SEQUENCE { - * keyInfo KeySpecificInfo, - * partyAInfo [0] OCTET STRING OPTIONAL, - * suppPubInfo [2] OCTET STRING - * } - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X962NamedCurves.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X962NamedCurves.java deleted file mode 100644 index b43051cfd..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X962NamedCurves.java +++ /dev/null @@ -1,49 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting X9.62 elliptic curve. - */ -package org.bouncycastle.asn1.x9; - - -/** - * table of the current named curves defined in X.962 EC-DSA. - */ -public class X962NamedCurves { - - public X962NamedCurves() { - } - - public static X9ECParameters getByName(String name) { - } - - /** - * return the X9ECParameters object for the named curve represented by - * the passed in object identifier. Null if the curve isn't present. - * - * @param oid an object identifier representing a named curve, if present. - */ - public static X9ECParameters getByOID(org.bouncycastle.asn1.ASN1ObjectIdentifier oid) { - } - - /** - * return the object identifier signified by the passed in name. Null - * if there is no object identifier associated with name. - * - * @return the object identifier associated with name, if present. - */ - public static org.bouncycastle.asn1.ASN1ObjectIdentifier getOID(String name) { - } - - /** - * return the named curve name represented by the given object identifier. - */ - public static String getName(org.bouncycastle.asn1.ASN1ObjectIdentifier oid) { - } - - /** - * returns an enumeration containing the name strings for curves - * contained in this structure. - */ - public static java.util.Enumeration getNames() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X962Parameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X962Parameters.java deleted file mode 100644 index a2e476c57..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X962Parameters.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting X9.62 elliptic curve. - */ -package org.bouncycastle.asn1.x9; - - -public class X962Parameters extends org.bouncycastle.asn1.ASN1Object implements org.bouncycastle.asn1.ASN1Choice { - - public X962Parameters(X9ECParameters ecParameters) { - } - - public X962Parameters(org.bouncycastle.asn1.ASN1ObjectIdentifier namedCurve) { - } - - public X962Parameters(org.bouncycastle.asn1.ASN1Primitive obj) { - } - - public static X962Parameters getInstance(Object obj) { - } - - public static X962Parameters getInstance(org.bouncycastle.asn1.ASN1TaggedObject obj, boolean explicit) { - } - - public boolean isNamedCurve() { - } - - public boolean isImplicitlyCA() { - } - - public org.bouncycastle.asn1.ASN1Primitive getParameters() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - *- * Parameters ::= CHOICE { - * ecParameters ECParameters, - * namedCurve CURVES.&id({CurveNames}), - * implicitlyCA NULL - * } - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X9Curve.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X9Curve.java deleted file mode 100644 index bb6c1ed32..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X9Curve.java +++ /dev/null @@ -1,41 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting X9.62 elliptic curve. - */ -package org.bouncycastle.asn1.x9; - - -/** - * ASN.1 def for Elliptic-Curve Curve structure. See - * X9.62, for further details. - */ -public class X9Curve extends org.bouncycastle.asn1.ASN1Object implements X9ObjectIdentifiers { - - public X9Curve(org.bouncycastle.math.ec.ECCurve curve) { - } - - public X9Curve(org.bouncycastle.math.ec.ECCurve curve, byte[] seed) { - } - - public X9Curve(X9FieldID fieldID, org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public org.bouncycastle.math.ec.ECCurve getCurve() { - } - - public byte[] getSeed() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - *- * Curve ::= SEQUENCE { - * a FieldElement, - * b FieldElement, - * seed BIT STRING OPTIONAL - * } - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X9ECParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X9ECParameters.java deleted file mode 100644 index 6dfa64717..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X9ECParameters.java +++ /dev/null @@ -1,56 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting X9.62 elliptic curve. - */ -package org.bouncycastle.asn1.x9; - - -/** - * ASN.1 def for Elliptic-Curve ECParameters structure. See - * X9.62, for further details. - */ -public class X9ECParameters extends org.bouncycastle.asn1.ASN1Object implements X9ObjectIdentifiers { - - public X9ECParameters(org.bouncycastle.math.ec.ECCurve curve, org.bouncycastle.math.ec.ECPoint g, javabc.BigInteger n) { - } - - public X9ECParameters(org.bouncycastle.math.ec.ECCurve curve, org.bouncycastle.math.ec.ECPoint g, javabc.BigInteger n, javabc.BigInteger h) { - } - - public X9ECParameters(org.bouncycastle.math.ec.ECCurve curve, org.bouncycastle.math.ec.ECPoint g, javabc.BigInteger n, javabc.BigInteger h, byte[] seed) { - } - - public static X9ECParameters getInstance(Object obj) { - } - - public org.bouncycastle.math.ec.ECCurve getCurve() { - } - - public org.bouncycastle.math.ec.ECPoint getG() { - } - - public javabc.BigInteger getN() { - } - - public javabc.BigInteger getH() { - } - - public byte[] getSeed() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - *- * ECParameters ::= SEQUENCE { - * version INTEGER { ecpVer1(1) } (ecpVer1), - * fieldID FieldID {{FieldTypes}}, - * curve X9Curve, - * base X9ECPoint, - * order INTEGER, - * cofactor INTEGER OPTIONAL - * } - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X9ECParametersHolder.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X9ECParametersHolder.java deleted file mode 100644 index 1a2dfb518..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X9ECParametersHolder.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting X9.62 elliptic curve. - */ -package org.bouncycastle.asn1.x9; - - -public abstract class X9ECParametersHolder { - - public X9ECParametersHolder() { - } - - public X9ECParameters getParameters() { - } - - protected abstract X9ECParameters createParameters() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X9ECPoint.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X9ECPoint.java deleted file mode 100644 index ee8b66cb4..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X9ECPoint.java +++ /dev/null @@ -1,32 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting X9.62 elliptic curve. - */ -package org.bouncycastle.asn1.x9; - - -/** - * class for describing an ECPoint as a DER object. - */ -public class X9ECPoint extends org.bouncycastle.asn1.ASN1Object { - - public X9ECPoint(org.bouncycastle.math.ec.ECPoint p) { - } - - public X9ECPoint(org.bouncycastle.math.ec.ECCurve c, org.bouncycastle.asn1.ASN1OctetString s) { - } - - public org.bouncycastle.math.ec.ECPoint getPoint() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - *- * ECPoint ::= OCTET STRING - *- *- * Octet string produced using ECPoint.getEncoded(). - */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X9FieldElement.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X9FieldElement.java deleted file mode 100644 index 70e2ccdc7..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X9FieldElement.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting X9.62 elliptic curve. - */ -package org.bouncycastle.asn1.x9; - - -/** - * class for processing an FieldElement as a DER object. - */ -public class X9FieldElement extends org.bouncycastle.asn1.ASN1Object { - - protected org.bouncycastle.math.ec.ECFieldElement f; - - public X9FieldElement(org.bouncycastle.math.ec.ECFieldElement f) { - } - - public X9FieldElement(javabc.BigInteger p, org.bouncycastle.asn1.ASN1OctetString s) { - } - - public X9FieldElement(int m, int k1, int k2, int k3, org.bouncycastle.asn1.ASN1OctetString s) { - } - - public org.bouncycastle.math.ec.ECFieldElement getValue() { - } - - /** - * Produce an object suitable for an ASN1OutputStream. - *
- * FieldElement ::= OCTET STRING - *- *- *
- *
- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X9FieldID.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X9FieldID.java deleted file mode 100644 index 83211f99d..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X9FieldID.java +++ /dev/null @@ -1,60 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting X9.62 elliptic curve. - */ -package org.bouncycastle.asn1.x9; - - -/** - * ASN.1 def for Elliptic-Curve Field ID structure. See - * X9.62, for further details. - */ -public class X9FieldID extends org.bouncycastle.asn1.ASN1Object implements X9ObjectIdentifiers { - - /** - * Constructor for elliptic curves over prime fields - *- if q is an odd prime then the field element is - * processed as an Integer and converted to an octet string - * according to x 9.62 4.3.1.
- *- if q is 2m then the bit string - * contained in the field element is converted into an octet - * string with the same ordering padded at the front if necessary. - *
- *F2
. - * @param primeP The primep
defining the prime field. - */ - public X9FieldID(javabc.BigInteger primeP) { - } - - /** - * Constructor for elliptic curves over binary fields - *F2m
. - * @param m The exponentm
of - *F2m
. - * @param k1 The integerk1
wherexm + - * xk3 + xk2 + xk1 + 1
- * represents the reduction polynomialf(z)
. - * @param k2 The integerk2
wherexm + - * xk3 + xk2 + xk1 + 1
- * represents the reduction polynomialf(z)
. - * @param k3 The integerk3
wherexm + - * xk3 + xk2 + xk1 + 1
- * represents the reduction polynomialf(z)
.. - */ - public X9FieldID(int m, int k1, int k2, int k3) { - } - - public X9FieldID(org.bouncycastle.asn1.ASN1Sequence seq) { - } - - public org.bouncycastle.asn1.ASN1ObjectIdentifier getIdentifier() { - } - - public org.bouncycastle.asn1.ASN1Primitive getParameters() { - } - - /** - * Produce a DER encoding of the following structure. - *- * FieldID ::= SEQUENCE { - * fieldType FIELD-ID.&id({IOSet}), - * parameters FIELD-ID.&Type({IOSet}{@fieldType}) - * } - *- */ - public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X9IntegerConverter.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X9IntegerConverter.java deleted file mode 100644 index c7e3fe5a0..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X9IntegerConverter.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting X9.62 elliptic curve. - */ -package org.bouncycastle.asn1.x9; - - -public class X9IntegerConverter { - - public X9IntegerConverter() { - } - - public int getByteLength(org.bouncycastle.math.ec.ECCurve c) { - } - - public int getByteLength(org.bouncycastle.math.ec.ECFieldElement fe) { - } - - public byte[] integerToBytes(javabc.BigInteger s, int qLength) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X9ObjectIdentifiers.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X9ObjectIdentifiers.java deleted file mode 100644 index c47fda73b..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/asn1/x9/X9ObjectIdentifiers.java +++ /dev/null @@ -1,145 +0,0 @@ -/** - * - * Support classes useful for encoding and supporting X9.62 elliptic curve. - */ -package org.bouncycastle.asn1.x9; - - -public interface X9ObjectIdentifiers { - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier ansi_X9_62; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_fieldType; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier prime_field; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier characteristic_two_field; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier gnBasis; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier tpBasis; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier ppBasis; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_ecSigType; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier ecdsa_with_SHA1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_publicKeyType; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_ecPublicKey; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier ecdsa_with_SHA2; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier ecdsa_with_SHA224; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier ecdsa_with_SHA256; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier ecdsa_with_SHA384; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier ecdsa_with_SHA512; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier ellipticCurve; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier cTwoCurve; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier c2pnb163v1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier c2pnb163v2; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier c2pnb163v3; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier c2pnb176w1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier c2tnb191v1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier c2tnb191v2; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier c2tnb191v3; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier c2onb191v4; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier c2onb191v5; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier c2pnb208w1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier c2tnb239v1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier c2tnb239v2; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier c2tnb239v3; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier c2onb239v4; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier c2onb239v5; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier c2pnb272w1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier c2pnb304w1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier c2tnb359v1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier c2pnb368w1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier c2tnb431r1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier primeCurve; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier prime192v1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier prime192v2; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier prime192v3; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier prime239v1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier prime239v2; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier prime239v3; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier prime256v1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_dsa; - - /** - * id-dsa-with-sha1 OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840) x9-57 - * (10040) x9cm(4) 3 } - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier id_dsa_with_sha1; - - /** - * X9.63 - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier x9_63_scheme; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier dhSinglePass_stdDH_sha1kdf_scheme; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier dhSinglePass_cofactorDH_sha1kdf_scheme; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier mqvSinglePass_sha1kdf_scheme; - - /** - * X9.42 - */ - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier ansi_X9_42; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier dhpublicnumber; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier x9_42_schemes; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier dhStatic; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier dhEphem; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier dhOneFlow; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier dhHybrid1; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier dhHybrid2; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier dhHybridOneFlow; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier mqv2; - - public static final org.bouncycastle.asn1.ASN1ObjectIdentifier mqv1; -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/AsymmetricBlockCipher.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/AsymmetricBlockCipher.java deleted file mode 100644 index 9228dda49..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/AsymmetricBlockCipher.java +++ /dev/null @@ -1,48 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -/** - * base interface that a public/private key block cipher needs - * to conform to. - */ -public interface AsymmetricBlockCipher { - - /** - * initialise the cipher. - * - * @param forEncryption if true the cipher is initialised for - * encryption, if false for decryption. - * @param param the key and other data required by the cipher. - */ - public void init(boolean forEncryption, CipherParameters param); - - /** - * returns the largest size an input block can be. - * - * @return maximum size for an input block. - */ - public int getInputBlockSize(); - - /** - * returns the maximum size of the block produced by this cipher. - * - * @return maximum size of the output block produced by the cipher. - */ - public int getOutputBlockSize(); - - /** - * process the block of len bytes stored in in from offset inOff. - * - * @param in the input data - * @param inOff offset into the in array where the data starts - * @param len the length of the block to be processed. - * @return the resulting byte array of the encryption/decryption process. - * @exception InvalidCipherTextException data decrypts improperly. - * @exception DataLengthException the input data is too large for the cipher. - */ - public byte[] processBlock(byte[] in, int inOff, int len); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/AsymmetricCipherKeyPair.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/AsymmetricCipherKeyPair.java deleted file mode 100644 index 8b0b5cd18..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/AsymmetricCipherKeyPair.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -/** - * a holding class for public/private parameter pairs. - */ -public class AsymmetricCipherKeyPair { - - /** - * basic constructor. - * - * @param publicParam a public key parameters object. - * @param privateParam the corresponding private key parameters. - */ - public AsymmetricCipherKeyPair(CipherParameters publicParam, CipherParameters privateParam) { - } - - /** - * return the public key parameters. - * - * @return the public key parameters. - */ - public CipherParameters getPublic() { - } - - /** - * return the private key parameters. - * - * @return the private key parameters. - */ - public CipherParameters getPrivate() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/AsymmetricCipherKeyPairGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/AsymmetricCipherKeyPairGenerator.java deleted file mode 100644 index dd7cdea51..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/AsymmetricCipherKeyPairGenerator.java +++ /dev/null @@ -1,26 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -/** - * interface that a public/private key pair generator should conform to. - */ -public interface AsymmetricCipherKeyPairGenerator { - - /** - * intialise the key pair generator. - * - * @param param the parameters the key pair is to be initialised with. - */ - public void init(KeyGenerationParameters param); - - /** - * return an AsymmetricCipherKeyPair containing the generated keys. - * - * @return an AsymmetricCipherKeyPair containing the generated keys. - */ - public AsymmetricCipherKeyPair generateKeyPair(); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/BasicAgreement.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/BasicAgreement.java deleted file mode 100644 index fca4932a4..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/BasicAgreement.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -/** - * The basic interface that basic Diffie-Hellman implementations - * conforms to. - */ -public interface BasicAgreement { - - /** - * initialise the agreement engine. - */ - public void init(CipherParameters param); - - /** - * given a public key from a given party calculate the next - * message in the agreement sequence. - */ - public javabc.BigInteger calculateAgreement(CipherParameters pubKey); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/BlockCipher.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/BlockCipher.java deleted file mode 100644 index 36709d44a..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/BlockCipher.java +++ /dev/null @@ -1,58 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -/** - * Block cipher engines are expected to conform to this interface. - */ -public interface BlockCipher { - - /** - * Initialise the cipher. - * - * @param forEncryption if true the cipher is initialised for - * encryption, if false for decryption. - * @param params the key and other data required by the cipher. - * @exception IllegalArgumentException if the params argument is - * inappropriate. - */ - public void init(boolean forEncryption, CipherParameters params); - - /** - * Return the name of the algorithm the cipher implements. - * - * @return the name of the algorithm the cipher implements. - */ - public String getAlgorithmName(); - - /** - * Return the block size for this cipher (in bytes). - * - * @return the block size for this cipher in bytes. - */ - public int getBlockSize(); - - /** - * Process one block of input from the array in and write it to - * the out array. - * - * @param in the array containing the input data. - * @param inOff offset into the in array the data starts at. - * @param out the array the output data will be copied into. - * @param outOff the offset into the out array the output will start at. - * @exception DataLengthException if there isn't enough data in in, or - * space in out. - * @exception IllegalStateException if the cipher isn't initialised. - * @return the number of bytes processed and produced. - */ - public int processBlock(byte[] in, int inOff, byte[] out, int outOff); - - /** - * Reset the cipher. After resetting the cipher is in the same state - * as it was after the last init (if there was one). - */ - public void reset(); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/BufferedAsymmetricBlockCipher.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/BufferedAsymmetricBlockCipher.java deleted file mode 100644 index 06336a864..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/BufferedAsymmetricBlockCipher.java +++ /dev/null @@ -1,102 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -/** - * a buffer wrapper for an asymmetric block cipher, allowing input - * to be accumulated in a piecemeal fashion until final processing. - */ -public class BufferedAsymmetricBlockCipher { - - protected byte[] buf; - - protected int bufOff; - - /** - * base constructor. - * - * @param cipher the cipher this buffering object wraps. - */ - public BufferedAsymmetricBlockCipher(AsymmetricBlockCipher cipher) { - } - - /** - * return the underlying cipher for the buffer. - * - * @return the underlying cipher for the buffer. - */ - public AsymmetricBlockCipher getUnderlyingCipher() { - } - - /** - * return the amount of data sitting in the buffer. - * - * @return the amount of data sitting in the buffer. - */ - public int getBufferPosition() { - } - - /** - * initialise the buffer and the underlying cipher. - * - * @param forEncryption if true the cipher is initialised for - * encryption, if false for decryption. - * @param params the key and other data required by the cipher. - */ - public void init(boolean forEncryption, CipherParameters params) { - } - - /** - * returns the largest size an input block can be. - * - * @return maximum size for an input block. - */ - public int getInputBlockSize() { - } - - /** - * returns the maximum size of the block produced by this cipher. - * - * @return maximum size of the output block produced by the cipher. - */ - public int getOutputBlockSize() { - } - - /** - * add another byte for processing. - * - * @param in the input byte. - */ - public void processByte(byte in) { - } - - /** - * add len bytes to the buffer for processing. - * - * @param in the input data - * @param inOff offset into the in array where the data starts - * @param len the length of the block to be processed. - */ - public void processBytes(byte[] in, int inOff, int len) { - } - - /** - * process the contents of the buffer using the underlying - * cipher. - * - * @return the result of the encryption/decryption process on the - * buffer. - * @exception InvalidCipherTextException if we are given a garbage block. - */ - public byte[] doFinal() { - } - - /** - * Reset the buffer and the underlying cipher. - */ - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/BufferedBlockCipher.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/BufferedBlockCipher.java deleted file mode 100644 index 2fd7874d8..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/BufferedBlockCipher.java +++ /dev/null @@ -1,145 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -/** - * A wrapper class that allows block ciphers to be used to process data in - * a piecemeal fashion. The BufferedBlockCipher outputs a block only when the - * buffer is full and more data is being added, or on a doFinal. - *- * Note: in the case where the underlying cipher is either a CFB cipher or an - * OFB one the last block may not be a multiple of the block size. - */ -public class BufferedBlockCipher { - - protected byte[] buf; - - protected int bufOff; - - protected boolean forEncryption; - - protected BlockCipher cipher; - - protected boolean partialBlockOkay; - - protected boolean pgpCFB; - - /** - * constructor for subclasses - */ - protected BufferedBlockCipher() { - } - - /** - * Create a buffered block cipher without padding. - * - * @param cipher the underlying block cipher this buffering object wraps. - */ - public BufferedBlockCipher(BlockCipher cipher) { - } - - /** - * return the cipher this object wraps. - * - * @return the cipher this object wraps. - */ - public BlockCipher getUnderlyingCipher() { - } - - /** - * initialise the cipher. - * - * @param forEncryption if true the cipher is initialised for - * encryption, if false for decryption. - * @param params the key and other data required by the cipher. - * @exception IllegalArgumentException if the params argument is - * inappropriate. - */ - public void init(boolean forEncryption, CipherParameters params) { - } - - /** - * return the blocksize for the underlying cipher. - * - * @return the blocksize for the underlying cipher. - */ - public int getBlockSize() { - } - - /** - * return the size of the output buffer required for an update - * an input of len bytes. - * - * @param len the length of the input. - * @return the space required to accommodate a call to update - * with len bytes of input. - */ - public int getUpdateOutputSize(int len) { - } - - /** - * return the size of the output buffer required for an update plus a - * doFinal with an input of 'length' bytes. - * - * @param length the length of the input. - * @return the space required to accommodate a call to update and doFinal - * with 'length' bytes of input. - */ - public int getOutputSize(int length) { - } - - /** - * process a single byte, producing an output block if neccessary. - * - * @param in the input byte. - * @param out the space for any output that might be produced. - * @param outOff the offset from which the output will be copied. - * @return the number of output bytes copied to out. - * @exception DataLengthException if there isn't enough space in out. - * @exception IllegalStateException if the cipher isn't initialised. - */ - public int processByte(byte in, byte[] out, int outOff) { - } - - /** - * process an array of bytes, producing output if necessary. - * - * @param in the input byte array. - * @param inOff the offset at which the input data starts. - * @param len the number of bytes to be copied out of the input array. - * @param out the space for any output that might be produced. - * @param outOff the offset from which the output will be copied. - * @return the number of output bytes copied to out. - * @exception DataLengthException if there isn't enough space in out. - * @exception IllegalStateException if the cipher isn't initialised. - */ - public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) { - } - - /** - * Process the last block in the buffer. - * - * @param out the array the block currently being held is copied into. - * @param outOff the offset at which the copying starts. - * @return the number of output bytes copied to out. - * @exception DataLengthException if there is insufficient space in out for - * the output, or the input is not block size aligned and should be. - * @exception IllegalStateException if the underlying cipher is not - * initialised. - * @exception InvalidCipherTextException if padding is expected and not found. - * @exception DataLengthException if the input is not block size - * aligned. - */ - public int doFinal(byte[] out, int outOff) { - } - - /** - * Reset the buffer and cipher. After resetting the object is in the same - * state as it was after the last init (if there was one). - */ - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/CipherKeyGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/CipherKeyGenerator.java deleted file mode 100644 index d0b3820a0..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/CipherKeyGenerator.java +++ /dev/null @@ -1,35 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -/** - * The base class for symmetric, or secret, cipher key generators. - */ -public class CipherKeyGenerator { - - protected javabc.SecureRandom random; - - protected int strength; - - public CipherKeyGenerator() { - } - - /** - * initialise the key generator. - * - * @param param the parameters to be used for key generation - */ - public void init(KeyGenerationParameters param) { - } - - /** - * generate a secret key. - * - * @return a byte array containing the key value. - */ - public byte[] generateKey() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/CipherParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/CipherParameters.java deleted file mode 100644 index e240b0a86..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/CipherParameters.java +++ /dev/null @@ -1,12 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -/** - * all parameter classes implement this. - */ -public interface CipherParameters { -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/CryptoException.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/CryptoException.java deleted file mode 100644 index 9a2036a78..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/CryptoException.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -/** - * the foundation class for the hard exceptions thrown by the crypto packages. - */ -public class CryptoException extends Exception { - - /** - * base constructor. - */ - public CryptoException() { - } - - /** - * create a CryptoException with the given message. - * - * @param message the message to be carried with the exception. - */ - public CryptoException(String message) { - } - - /** - * Create a CryptoException with the given message and underlying cause. - * - * @param message message describing exception. - * @param cause the throwable that was the underlying cause. - */ - public CryptoException(String message, Throwable cause) { - } - - public Throwable getCause() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/DSA.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/DSA.java deleted file mode 100644 index b2d4ff254..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/DSA.java +++ /dev/null @@ -1,39 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -/** - * interface for classes implementing algorithms modeled similar to the Digital Signature Alorithm. - */ -public interface DSA { - - /** - * initialise the signer for signature generation or signature - * verification. - * - * @param forSigning true if we are generating a signature, false - * otherwise. - * @param param key parameters for signature generation. - */ - public void init(boolean forSigning, CipherParameters param); - - /** - * sign the passed in message (usually the output of a hash function). - * - * @param message the message to be signed. - * @return two big integers representing the r and s values respectively. - */ - public javabc.BigInteger[] generateSignature(byte[] message); - - /** - * verify the message message against the signature values r and s. - * - * @param message the message that was supposed to have been signed. - * @param r the r signature value. - * @param s the s signature value. - */ - public boolean verifySignature(byte[] message, javabc.BigInteger r, javabc.BigInteger s); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/DataLengthException.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/DataLengthException.java deleted file mode 100644 index 9848ec168..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/DataLengthException.java +++ /dev/null @@ -1,29 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -/** - * this exception is thrown if a buffer that is meant to have output - * copied into it turns out to be too short, or if we've been given - * insufficient input. In general this exception will get thrown rather - * than an ArrayOutOfBounds exception. - */ -public class DataLengthException extends RuntimeCryptoException { - - /** - * base constructor. - */ - public DataLengthException() { - } - - /** - * create a DataLengthException with the given message. - * - * @param message the message to be carried with the exception. - */ - public DataLengthException(String message) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/DerivationFunction.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/DerivationFunction.java deleted file mode 100644 index adb822a78..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/DerivationFunction.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -/** - * base interface for general purpose byte derivation functions. - */ -public interface DerivationFunction { - - public void init(DerivationParameters param); - - /** - * return the message digest used as the basis for the function - */ - public Digest getDigest(); - - public int generateBytes(byte[] out, int outOff, int len); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/DerivationParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/DerivationParameters.java deleted file mode 100644 index 0b30b6c59..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/DerivationParameters.java +++ /dev/null @@ -1,12 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -/** - * Parameters for key/byte stream derivation classes - */ -public interface DerivationParameters { -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/Digest.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/Digest.java deleted file mode 100644 index c4c4fd920..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/Digest.java +++ /dev/null @@ -1,56 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -/** - * interface that a message digest conforms to. - */ -public interface Digest { - - /** - * return the algorithm name - * - * @return the algorithm name - */ - public String getAlgorithmName(); - - /** - * return the size, in bytes, of the digest produced by this message digest. - * - * @return the size, in bytes, of the digest produced by this message digest. - */ - public int getDigestSize(); - - /** - * update the message digest with a single byte. - * - * @param in the input byte to be entered. - */ - public void update(byte in); - - /** - * update the message digest with a block of bytes. - * - * @param in the byte array containing the data. - * @param inOff the offset into the byte array where the data starts. - * @param len the length of the data. - */ - public void update(byte[] in, int inOff, int len); - - /** - * close the digest, producing the final digest value. The doFinal - * call leaves the digest reset. - * - * @param out the array the digest is to be copied into. - * @param outOff the offset into the out array the digest is to start at. - */ - public int doFinal(byte[] out, int outOff); - - /** - * reset the digest back to it's initial state. - */ - public void reset(); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/ExtendedDigest.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/ExtendedDigest.java deleted file mode 100644 index 8223c7ead..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/ExtendedDigest.java +++ /dev/null @@ -1,17 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -public interface ExtendedDigest extends Digest { - - /** - * Return the size in bytes of the internal buffer the digest applies it's compression - * function to. - * - * @return byte length of the digests internal buffer. - */ - public int getByteLength(); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/InvalidCipherTextException.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/InvalidCipherTextException.java deleted file mode 100644 index 47360dbb2..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/InvalidCipherTextException.java +++ /dev/null @@ -1,27 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -/** - * this exception is thrown whenever we find something we don't expect in a - * message. - */ -public class InvalidCipherTextException extends CryptoException { - - /** - * base constructor. - */ - public InvalidCipherTextException() { - } - - /** - * create a InvalidCipherTextException with the given message. - * - * @param message the message to be carried with the exception. - */ - public InvalidCipherTextException(String message) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/KeyGenerationParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/KeyGenerationParameters.java deleted file mode 100644 index 4d0ef4a02..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/KeyGenerationParameters.java +++ /dev/null @@ -1,39 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -/** - * The base class for parameters to key generators. - */ -public class KeyGenerationParameters { - - /** - * initialise the generator with a source of randomness - * and a strength (in bits). - * - * @param random the random byte source. - * @param strength the size, in bits, of the keys we want to produce. - */ - public KeyGenerationParameters(javabc.SecureRandom random, int strength) { - } - - /** - * return the random source associated with this - * generator. - * - * @return the generators random source. - */ - public javabc.SecureRandom getRandom() { - } - - /** - * return the bit strength for keys produced by this generator, - * - * @return the strength of the keys this generator produces (in bits). - */ - public int getStrength() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/Mac.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/Mac.java deleted file mode 100644 index 26f18dc14..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/Mac.java +++ /dev/null @@ -1,71 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -/** - * The base interface for implementations of message authentication codes (MACs). - */ -public interface Mac { - - /** - * Initialise the MAC. - * - * @param params the key and other data required by the MAC. - * @exception IllegalArgumentException if the params argument is - * inappropriate. - */ - public void init(CipherParameters params); - - /** - * Return the name of the algorithm the MAC implements. - * - * @return the name of the algorithm the MAC implements. - */ - public String getAlgorithmName(); - - /** - * Return the block size for this MAC (in bytes). - * - * @return the block size for this MAC in bytes. - */ - public int getMacSize(); - - /** - * add a single byte to the mac for processing. - * - * @param in the byte to be processed. - * @exception IllegalStateException if the MAC is not initialised. - */ - public void update(byte in); - - /** - * @param in the array containing the input. - * @param inOff the index in the array the data begins at. - * @param len the length of the input starting at inOff. - * @exception IllegalStateException if the MAC is not initialised. - * @exception DataLengthException if there isn't enough data in in. - */ - public void update(byte[] in, int inOff, int len); - - /** - * Compute the final stage of the MAC writing the output to the out - * parameter. - *
- * doFinal leaves the MAC in the same state it was after the last init. - * - * @param out the array the MAC is to be output to. - * @param outOff the offset into the out buffer the output is to start at. - * @exception DataLengthException if there isn't enough space in out. - * @exception IllegalStateException if the MAC is not initialised. - */ - public int doFinal(byte[] out, int outOff); - - /** - * Reset the MAC. At the end of resetting the MAC should be in the - * in the same state it was after the last init (if there was one). - */ - public void reset(); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/MaxBytesExceededException.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/MaxBytesExceededException.java deleted file mode 100644 index d6acfac80..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/MaxBytesExceededException.java +++ /dev/null @@ -1,27 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -/** - * this exception is thrown whenever a cipher requires a change of key, iv - * or similar after x amount of bytes enciphered - */ -public class MaxBytesExceededException extends RuntimeCryptoException { - - /** - * base constructor. - */ - public MaxBytesExceededException() { - } - - /** - * create an with the given message. - * - * @param message the message to be carried with the exception. - */ - public MaxBytesExceededException(String message) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/PBEParametersGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/PBEParametersGenerator.java deleted file mode 100644 index 86c4d036d..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/PBEParametersGenerator.java +++ /dev/null @@ -1,119 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -/** - * super class for all Password Based Encryption (PBE) parameter generator classes. - */ -public abstract class PBEParametersGenerator { - - protected byte[] password; - - protected byte[] salt; - - protected int iterationCount; - - /** - * base constructor. - */ - protected PBEParametersGenerator() { - } - - /** - * initialise the PBE generator. - * - * @param password the password converted into bytes (see below). - * @param salt the salt to be mixed with the password. - * @param iterationCount the number of iterations the "mixing" function - * is to be applied for. - */ - public void init(byte[] password, byte[] salt, int iterationCount) { - } - - /** - * return the password byte array. - * - * @return the password byte array. - */ - public byte[] getPassword() { - } - - /** - * return the salt byte array. - * - * @return the salt byte array. - */ - public byte[] getSalt() { - } - - /** - * return the iteration count. - * - * @return the iteration count. - */ - public int getIterationCount() { - } - - /** - * generate derived parameters for a key of length keySize. - * - * @param keySize the length, in bits, of the key required. - * @return a parameters object representing a key. - */ - public abstract CipherParameters generateDerivedParameters(int keySize) { - } - - /** - * generate derived parameters for a key of length keySize, and - * an initialisation vector (IV) of length ivSize. - * - * @param keySize the length, in bits, of the key required. - * @param ivSize the length, in bits, of the iv required. - * @return a parameters object representing a key and an IV. - */ - public abstract CipherParameters generateDerivedParameters(int keySize, int ivSize) { - } - - /** - * generate derived parameters for a key of length keySize, specifically - * for use with a MAC. - * - * @param keySize the length, in bits, of the key required. - * @return a parameters object representing a key. - */ - public abstract CipherParameters generateDerivedMacParameters(int keySize) { - } - - /** - * converts a password to a byte array according to the scheme in - * PKCS5 (ascii, no padding) - * - * @param password a character array representing the password. - * @return a byte array representing the password. - */ - public static byte[] PKCS5PasswordToBytes(char[] password) { - } - - /** - * converts a password to a byte array according to the scheme in - * PKCS5 (UTF-8, no padding) - * - * @param password a character array representing the password. - * @return a byte array representing the password. - */ - public static byte[] PKCS5PasswordToUTF8Bytes(char[] password) { - } - - /** - * converts a password to a byte array according to the scheme in - * PKCS12 (unicode, big endian, 2 zero pad bytes at the end). - * - * @param password a character array representing the password. - * @return a byte array representing the password. - */ - public static byte[] PKCS12PasswordToBytes(char[] password) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/RuntimeCryptoException.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/RuntimeCryptoException.java deleted file mode 100644 index 80e51bcc7..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/RuntimeCryptoException.java +++ /dev/null @@ -1,26 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -/** - * the foundation class for the exceptions thrown by the crypto packages. - */ -public class RuntimeCryptoException extends RuntimeException { - - /** - * base constructor. - */ - public RuntimeCryptoException() { - } - - /** - * create a RuntimeCryptoException with the given message. - * - * @param message the message to be carried with the exception. - */ - public RuntimeCryptoException(String message) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/Signer.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/Signer.java deleted file mode 100644 index 933140128..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/Signer.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -/** - * Generic signer interface for hash based and message recovery signers. - */ -public interface Signer { - - /** - * Initialise the signer for signing or verification. - * - * @param forSigning true if for signing, false otherwise - * @param param necessary parameters. - */ - public void init(boolean forSigning, CipherParameters param); - - /** - * update the internal digest with the byte b - */ - public void update(byte b); - - /** - * update the internal digest with the byte array in - */ - public void update(byte[] in, int off, int len); - - /** - * generate a signature for the message we've been loaded with using - * the key we were initialised with. - */ - public byte[] generateSignature(); - - /** - * return true if the internal state represents the signature described - * in the passed in array. - */ - public boolean verifySignature(byte[] signature); - - /** - * reset the internal state - */ - public void reset(); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/SignerWithRecovery.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/SignerWithRecovery.java deleted file mode 100644 index cf68858c3..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/SignerWithRecovery.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -/** - * Signer with message recovery. - */ -public interface SignerWithRecovery extends Signer { - - /** - * Returns true if the signer has recovered the full message as - * part of signature verification. - * - * @return true if full message recovered. - */ - public boolean hasFullMessage(); - - /** - * Returns a reference to what message was recovered (if any). - * - * @return full/partial message, null if nothing. - */ - public byte[] getRecoveredMessage(); - - /** - * Perform an update with the recovered message before adding any other data. This must - * be the first update method called, and calling it will result in the signer assuming - * that further calls to update will include message content past what is recoverable. - * - * @param signature the signature that we are in the process of verifying. - * @throws IllegalStateException - */ - public void updateWithRecoveredMessage(byte[] signature); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/StreamBlockCipher.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/StreamBlockCipher.java deleted file mode 100644 index 7463c1c47..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/StreamBlockCipher.java +++ /dev/null @@ -1,69 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -/** - * a wrapper for block ciphers with a single byte block size, so that they - * can be treated like stream ciphers. - */ -public class StreamBlockCipher implements StreamCipher { - - /** - * basic constructor. - * - * @param cipher the block cipher to be wrapped. - * @exception IllegalArgumentException if the cipher has a block size other than - * one. - */ - public StreamBlockCipher(BlockCipher cipher) { - } - - /** - * initialise the underlying cipher. - * - * @param forEncryption true if we are setting up for encryption, false otherwise. - * @param params the necessary parameters for the underlying cipher to be initialised. - */ - public void init(boolean forEncryption, CipherParameters params) { - } - - /** - * return the name of the algorithm we are wrapping. - * - * @return the name of the algorithm we are wrapping. - */ - public String getAlgorithmName() { - } - - /** - * encrypt/decrypt a single byte returning the result. - * - * @param in the byte to be processed. - * @return the result of processing the input byte. - */ - public byte returnByte(byte in) { - } - - /** - * process a block of bytes from in putting the result into out. - * - * @param in the input byte array. - * @param inOff the offset into the in array where the data to be processed starts. - * @param len the number of bytes to be processed. - * @param out the output buffer the processed bytes go into. - * @param outOff the offset into the output byte array the processed data stars at. - * @exception DataLengthException if the output buffer is too small. - */ - public void processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) { - } - - /** - * reset the underlying cipher. This leaves it in the same state - * it was at after the last init (if there was one). - */ - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/StreamCipher.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/StreamCipher.java deleted file mode 100644 index 66cf085ae..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/StreamCipher.java +++ /dev/null @@ -1,56 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -/** - * the interface stream ciphers conform to. - */ -public interface StreamCipher { - - /** - * Initialise the cipher. - * - * @param forEncryption if true the cipher is initialised for - * encryption, if false for decryption. - * @param params the key and other data required by the cipher. - * @exception IllegalArgumentException if the params argument is - * inappropriate. - */ - public void init(boolean forEncryption, CipherParameters params); - - /** - * Return the name of the algorithm the cipher implements. - * - * @return the name of the algorithm the cipher implements. - */ - public String getAlgorithmName(); - - /** - * encrypt/decrypt a single byte returning the result. - * - * @param in the byte to be processed. - * @return the result of processing the input byte. - */ - public byte returnByte(byte in); - - /** - * process a block of bytes from in putting the result into out. - * - * @param in the input byte array. - * @param inOff the offset into the in array where the data to be processed starts. - * @param len the number of bytes to be processed. - * @param out the output buffer the processed bytes go into. - * @param outOff the offset into the output byte array the processed data starts at. - * @exception DataLengthException if the output buffer is too small. - */ - public void processBytes(byte[] in, int inOff, int len, byte[] out, int outOff); - - /** - * reset the cipher. This leaves it in the same state - * it was at after the last init (if there was one). - */ - public void reset(); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/Wrapper.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/Wrapper.java deleted file mode 100644 index 21932cdfd..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/Wrapper.java +++ /dev/null @@ -1,22 +0,0 @@ -/** - * - * Base classes for the lightweight API. - */ -package org.bouncycastle.crypto; - - -public interface Wrapper { - - public void init(boolean forWrapping, CipherParameters param); - - /** - * Return the name of the algorithm the wrapper implements. - * - * @return the name of the algorithm the wrapper implements. - */ - public String getAlgorithmName(); - - public byte[] wrap(byte[] in, int inOff, int inLen); - - public byte[] unwrap(byte[] in, int inOff, int inLen); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/DHAgreement.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/DHAgreement.java deleted file mode 100644 index 6e58f3487..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/DHAgreement.java +++ /dev/null @@ -1,40 +0,0 @@ -/** - * - * Basic key agreement classes. - */ -package org.bouncycastle.crypto.agreement; - - -/** - * a Diffie-Hellman key exchange engine. - *
- * note: This uses MTI/A0 key agreement in order to make the key agreement - * secure against passive attacks. If you're doing Diffie-Hellman and both - * parties have long term public keys you should look at using this. For - * further information have a look at RFC 2631. - *
- * It's possible to extend this to more than two parties as well, for the moment - * that is left as an exercise for the reader. - */ -public class DHAgreement { - - public DHAgreement() { - } - - public void init(org.bouncycastle.crypto.CipherParameters param) { - } - - /** - * calculate our initial message. - */ - public javabc.BigInteger calculateMessage() { - } - - /** - * given a message from a given party and the corresponding public key, - * calculate the next message in the agreement sequence. In this case - * this will represent the shared secret. - */ - public javabc.BigInteger calculateAgreement(org.bouncycastle.crypto.params.DHPublicKeyParameters pub, javabc.BigInteger message) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/DHBasicAgreement.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/DHBasicAgreement.java deleted file mode 100644 index 804876a2e..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/DHBasicAgreement.java +++ /dev/null @@ -1,29 +0,0 @@ -/** - * - * Basic key agreement classes. - */ -package org.bouncycastle.crypto.agreement; - - -/** - * a Diffie-Hellman key agreement class. - *
- * note: This is only the basic algorithm, it doesn't take advantage of - * long term public keys if they are available. See the DHAgreement class - * for a "better" implementation. - */ -public class DHBasicAgreement implements org.bouncycastle.crypto.BasicAgreement { - - public DHBasicAgreement() { - } - - public void init(org.bouncycastle.crypto.CipherParameters param) { - } - - /** - * given a short term public key from a given party calculate the next - * message in the agreement sequence. - */ - public javabc.BigInteger calculateAgreement(org.bouncycastle.crypto.CipherParameters pubKey) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/ECDHBasicAgreement.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/ECDHBasicAgreement.java deleted file mode 100644 index 19ab5d04d..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/ECDHBasicAgreement.java +++ /dev/null @@ -1,32 +0,0 @@ -/** - * - * Basic key agreement classes. - */ -package org.bouncycastle.crypto.agreement; - - -/** - * P1363 7.2.1 ECSVDP-DH - * - * ECSVDP-DH is Elliptic Curve Secret Value Derivation Primitive, - * Diffie-Hellman version. It is based on the work of [DH76], [Mil86], - * and [Kob87]. This primitive derives a shared secret value from one - * party's private key and another party's public key, where both have - * the same set of EC domain parameters. If two parties correctly - * execute this primitive, they will produce the same output. This - * primitive can be invoked by a scheme to derive a shared secret key; - * specifically, it may be used with the schemes ECKAS-DH1 and - * DL/ECKAS-DH2. It assumes that the input keys are valid (see also - * Section 7.2.2). - */ -public class ECDHBasicAgreement implements org.bouncycastle.crypto.BasicAgreement { - - public ECDHBasicAgreement() { - } - - public void init(org.bouncycastle.crypto.CipherParameters key) { - } - - public javabc.BigInteger calculateAgreement(org.bouncycastle.crypto.CipherParameters pubKey) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/ECDHCBasicAgreement.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/ECDHCBasicAgreement.java deleted file mode 100644 index 0f3d5e6e4..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/ECDHCBasicAgreement.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - * - * Basic key agreement classes. - */ -package org.bouncycastle.crypto.agreement; - - -/** - * P1363 7.2.2 ECSVDP-DHC - * - * ECSVDP-DHC is Elliptic Curve Secret Value Derivation Primitive, - * Diffie-Hellman version with cofactor multiplication. It is based on - * the work of [DH76], [Mil86], [Kob87], [LMQ98] and [Kal98a]. This - * primitive derives a shared secret value from one party's private key - * and another party's public key, where both have the same set of EC - * domain parameters. If two parties correctly execute this primitive, - * they will produce the same output. This primitive can be invoked by a - * scheme to derive a shared secret key; specifically, it may be used - * with the schemes ECKAS-DH1 and DL/ECKAS-DH2. It does not assume the - * validity of the input public key (see also Section 7.2.1). - *
- * Note: As stated P1363 compatibility mode with ECDH can be preset, and - * in this case the implementation doesn't have a ECDH compatibility mode - * (if you want that just use ECDHBasicAgreement and note they both implement - * BasicAgreement!). - */ -public class ECDHCBasicAgreement implements org.bouncycastle.crypto.BasicAgreement { - - public ECDHCBasicAgreement() { - } - - public void init(org.bouncycastle.crypto.CipherParameters key) { - } - - public javabc.BigInteger calculateAgreement(org.bouncycastle.crypto.CipherParameters pubKey) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/ECMQVBasicAgreement.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/ECMQVBasicAgreement.java deleted file mode 100644 index 1486ed777..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/ECMQVBasicAgreement.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - * - * Basic key agreement classes. - */ -package org.bouncycastle.crypto.agreement; - - -public class ECMQVBasicAgreement implements org.bouncycastle.crypto.BasicAgreement { - - public ECMQVBasicAgreement() { - } - - public void init(org.bouncycastle.crypto.CipherParameters key) { - } - - public javabc.BigInteger calculateAgreement(org.bouncycastle.crypto.CipherParameters pubKey) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/srp/SRP6Client.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/srp/SRP6Client.java deleted file mode 100644 index 2b04743ce..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/srp/SRP6Client.java +++ /dev/null @@ -1,65 +0,0 @@ -package org.bouncycastle.crypto.agreement.srp; - - -/** - * Implements the client side SRP-6a protocol. Note that this class is stateful, and therefore NOT threadsafe. - * This implementation of SRP is based on the optimized message sequence put forth by Thomas Wu in the paper - * "SRP-6: Improvements and Refinements to the Secure Remote Password Protocol, 2002" - */ -public class SRP6Client { - - protected javabc.BigInteger N; - - protected javabc.BigInteger g; - - protected javabc.BigInteger a; - - protected javabc.BigInteger A; - - protected javabc.BigInteger B; - - protected javabc.BigInteger x; - - protected javabc.BigInteger u; - - protected javabc.BigInteger S; - - protected org.bouncycastle.crypto.Digest digest; - - protected javabc.SecureRandom random; - - public SRP6Client() { - } - - /** - * Initialises the client to begin new authentication attempt - * @param N The safe prime associated with the client's verifier - * @param g The group parameter associated with the client's verifier - * @param digest The digest algorithm associated with the client's verifier - * @param random For key generation - */ - public void init(javabc.BigInteger N, javabc.BigInteger g, org.bouncycastle.crypto.Digest digest, javabc.SecureRandom random) { - } - - /** - * Generates client's credentials given the client's salt, identity and password - * @param salt The salt used in the client's verifier. - * @param identity The user's identity (eg. username) - * @param password The user's password - * @return Client's public value to send to server - */ - public javabc.BigInteger generateClientCredentials(byte[] salt, byte[] identity, byte[] password) { - } - - /** - * Generates client's verification message given the server's credentials - * @param serverB The server's credentials - * @return Client's verification message for the server - * @throws CryptoException If server's credentials are invalid - */ - public javabc.BigInteger calculateSecret(javabc.BigInteger serverB) { - } - - protected javabc.BigInteger selectPrivateValue() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/srp/SRP6Server.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/srp/SRP6Server.java deleted file mode 100644 index 4964db3eb..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/srp/SRP6Server.java +++ /dev/null @@ -1,63 +0,0 @@ -package org.bouncycastle.crypto.agreement.srp; - - -/** - * Implements the server side SRP-6a protocol. Note that this class is stateful, and therefore NOT threadsafe. - * This implementation of SRP is based on the optimized message sequence put forth by Thomas Wu in the paper - * "SRP-6: Improvements and Refinements to the Secure Remote Password Protocol, 2002" - */ -public class SRP6Server { - - protected javabc.BigInteger N; - - protected javabc.BigInteger g; - - protected javabc.BigInteger v; - - protected javabc.SecureRandom random; - - protected org.bouncycastle.crypto.Digest digest; - - protected javabc.BigInteger A; - - protected javabc.BigInteger b; - - protected javabc.BigInteger B; - - protected javabc.BigInteger u; - - protected javabc.BigInteger S; - - public SRP6Server() { - } - - /** - * Initialises the server to accept a new client authentication attempt - * @param N The safe prime associated with the client's verifier - * @param g The group parameter associated with the client's verifier - * @param v The client's verifier - * @param digest The digest algorithm associated with the client's verifier - * @param random For key generation - */ - public void init(javabc.BigInteger N, javabc.BigInteger g, javabc.BigInteger v, org.bouncycastle.crypto.Digest digest, javabc.SecureRandom random) { - } - - /** - * Generates the server's credentials that are to be sent to the client. - * @return The server's public value to the client - */ - public javabc.BigInteger generateServerCredentials() { - } - - /** - * Processes the client's credentials. If valid the shared secret is generated and returned. - * @param clientA The client's credentials - * @return A shared secret BigInteger - * @throws CryptoException If client's credentials are invalid - */ - public javabc.BigInteger calculateSecret(javabc.BigInteger clientA) { - } - - protected javabc.BigInteger selectPrivateValue() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/srp/SRP6Util.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/srp/SRP6Util.java deleted file mode 100644 index 353f3cde5..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/srp/SRP6Util.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.bouncycastle.crypto.agreement.srp; - - -public class SRP6Util { - - public SRP6Util() { - } - - public static javabc.BigInteger calculateK(org.bouncycastle.crypto.Digest digest, javabc.BigInteger N, javabc.BigInteger g) { - } - - public static javabc.BigInteger calculateU(org.bouncycastle.crypto.Digest digest, javabc.BigInteger N, javabc.BigInteger A, javabc.BigInteger B) { - } - - public static javabc.BigInteger calculateX(org.bouncycastle.crypto.Digest digest, javabc.BigInteger N, byte[] salt, byte[] identity, byte[] password) { - } - - public static javabc.BigInteger generatePrivateValue(org.bouncycastle.crypto.Digest digest, javabc.BigInteger N, javabc.BigInteger g, javabc.SecureRandom random) { - } - - public static javabc.BigInteger validatePublicValue(javabc.BigInteger N, javabc.BigInteger val) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/srp/SRP6VerifierGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/srp/SRP6VerifierGenerator.java deleted file mode 100644 index e3c83ed7a..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/agreement/srp/SRP6VerifierGenerator.java +++ /dev/null @@ -1,37 +0,0 @@ -package org.bouncycastle.crypto.agreement.srp; - - -/** - * Generates new SRP verifier for user - */ -public class SRP6VerifierGenerator { - - protected javabc.BigInteger N; - - protected javabc.BigInteger g; - - protected org.bouncycastle.crypto.Digest digest; - - public SRP6VerifierGenerator() { - } - - /** - * Initialises generator to create new verifiers - * @param N The safe prime to use (see DHParametersGenerator) - * @param g The group parameter to use (see DHParametersGenerator) - * @param digest The digest to use. The same digest type will need to be used later for the actual authentication - * attempt. Also note that the final session key size is dependent on the chosen digest. - */ - public void init(javabc.BigInteger N, javabc.BigInteger g, org.bouncycastle.crypto.Digest digest) { - } - - /** - * Creates a new SRP verifier - * @param salt The salt to use, generally should be large and random - * @param identity The user's identifying information (eg. username) - * @param password The user's password - * @return A new verifier for use in future SRP authentication - */ - public javabc.BigInteger generateVerifier(byte[] salt, byte[] identity, byte[] password) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/GeneralDigest.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/GeneralDigest.java deleted file mode 100644 index c62483a30..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/GeneralDigest.java +++ /dev/null @@ -1,51 +0,0 @@ -/** - * - * Message digest classes. - */ -package org.bouncycastle.crypto.digests; - - -/** - * base implementation of MD4 family style digest as outlined in - * "Handbook of Applied Cryptography", pages 344 - 347. - */ -public abstract class GeneralDigest implements org.bouncycastle.crypto.ExtendedDigest { - - /** - * Standard constructor - */ - protected GeneralDigest() { - } - - /** - * Copy constructor. We are using copy constructors in place - * of the Object.clone() interface as this interface is not - * supported by J2ME. - */ - protected GeneralDigest(GeneralDigest t) { - } - - public void update(byte in) { - } - - public void update(byte[] in, int inOff, int len) { - } - - public void finish() { - } - - public void reset() { - } - - public int getByteLength() { - } - - protected abstract void processWord(byte[] in, int inOff) { - } - - protected abstract void processLength(long bitLength) { - } - - protected abstract void processBlock() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/LongDigest.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/LongDigest.java deleted file mode 100644 index df4712cab..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/LongDigest.java +++ /dev/null @@ -1,66 +0,0 @@ -/** - * - * Message digest classes. - */ -package org.bouncycastle.crypto.digests; - - -/** - * Base class for SHA-384 and SHA-512. - */ -public abstract class LongDigest implements org.bouncycastle.crypto.ExtendedDigest { - - protected long H1; - - protected long H2; - - protected long H3; - - protected long H4; - - protected long H5; - - protected long H6; - - protected long H7; - - protected long H8; - - /** - * Constructor for variable length word - */ - protected LongDigest() { - } - - /** - * Copy constructor. We are using copy constructors in place - * of the Object.clone() interface as this interface is not - * supported by J2ME. - */ - protected LongDigest(LongDigest t) { - } - - public void update(byte in) { - } - - public void update(byte[] in, int inOff, int len) { - } - - public void finish() { - } - - public void reset() { - } - - public int getByteLength() { - } - - protected void processWord(byte[] in, int inOff) { - } - - protected void processLength(long lowW, long hiW) { - } - - protected void processBlock() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/MD2Digest.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/MD2Digest.java deleted file mode 100644 index 66ff5e606..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/MD2Digest.java +++ /dev/null @@ -1,78 +0,0 @@ -/** - * - * Message digest classes. - */ -package org.bouncycastle.crypto.digests; - - -/** - * implementation of MD2 - * as outlined in RFC1319 by B.Kaliski from RSA Laboratories April 1992 - */ -public class MD2Digest implements org.bouncycastle.crypto.ExtendedDigest { - - public MD2Digest() { - } - - public MD2Digest(MD2Digest t) { - } - - /** - * return the algorithm name - * - * @return the algorithm name - */ - public String getAlgorithmName() { - } - - /** - * return the size, in bytes, of the digest produced by this message digest. - * - * @return the size, in bytes, of the digest produced by this message digest. - */ - public int getDigestSize() { - } - - /** - * close the digest, producing the final digest value. The doFinal - * call leaves the digest reset. - * - * @param out the array the digest is to be copied into. - * @param outOff the offset into the out array the digest is to start at. - */ - public int doFinal(byte[] out, int outOff) { - } - - /** - * reset the digest back to it's initial state. - */ - public void reset() { - } - - /** - * update the message digest with a single byte. - * - * @param in the input byte to be entered. - */ - public void update(byte in) { - } - - /** - * update the message digest with a block of bytes. - * - * @param in the byte array containing the data. - * @param inOff the offset into the byte array where the data starts. - * @param len the length of the data. - */ - public void update(byte[] in, int inOff, int len) { - } - - protected void processCheckSum(byte[] m) { - } - - protected void processBlock(byte[] m) { - } - - public int getByteLength() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/MD4Digest.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/MD4Digest.java deleted file mode 100644 index ee06d2a0c..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/MD4Digest.java +++ /dev/null @@ -1,53 +0,0 @@ -/** - * - * Message digest classes. - */ -package org.bouncycastle.crypto.digests; - - -/** - * implementation of MD4 as RFC 1320 by R. Rivest, MIT Laboratory for - * Computer Science and RSA Data Security, Inc. - *
- * NOTE: This algorithm is only included for backwards compatability - * with legacy applications, it's not secure, don't use it for anything new! - */ -public class MD4Digest extends GeneralDigest { - - /** - * Standard constructor - */ - public MD4Digest() { - } - - /** - * Copy constructor. This will copy the state of the provided - * message digest. - */ - public MD4Digest(MD4Digest t) { - } - - public String getAlgorithmName() { - } - - public int getDigestSize() { - } - - protected void processWord(byte[] in, int inOff) { - } - - protected void processLength(long bitLength) { - } - - public int doFinal(byte[] out, int outOff) { - } - - /** - * reset the chaining variables to the IV values. - */ - public void reset() { - } - - protected void processBlock() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/MD5Digest.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/MD5Digest.java deleted file mode 100644 index 74d24c6d3..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/MD5Digest.java +++ /dev/null @@ -1,49 +0,0 @@ -/** - * - * Message digest classes. - */ -package org.bouncycastle.crypto.digests; - - -/** - * implementation of MD5 as outlined in "Handbook of Applied Cryptography", pages 346 - 347. - */ -public class MD5Digest extends GeneralDigest { - - /** - * Standard constructor - */ - public MD5Digest() { - } - - /** - * Copy constructor. This will copy the state of the provided - * message digest. - */ - public MD5Digest(MD5Digest t) { - } - - public String getAlgorithmName() { - } - - public int getDigestSize() { - } - - protected void processWord(byte[] in, int inOff) { - } - - protected void processLength(long bitLength) { - } - - public int doFinal(byte[] out, int outOff) { - } - - /** - * reset the chaining variables to the IV values. - */ - public void reset() { - } - - protected void processBlock() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/NullDigest.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/NullDigest.java deleted file mode 100644 index 15ace49b2..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/NullDigest.java +++ /dev/null @@ -1,30 +0,0 @@ -/** - * - * Message digest classes. - */ -package org.bouncycastle.crypto.digests; - - -public class NullDigest implements org.bouncycastle.crypto.Digest { - - public NullDigest() { - } - - public String getAlgorithmName() { - } - - public int getDigestSize() { - } - - public void update(byte in) { - } - - public void update(byte[] in, int inOff, int len) { - } - - public int doFinal(byte[] out, int outOff) { - } - - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/RIPEMD128Digest.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/RIPEMD128Digest.java deleted file mode 100644 index 7c7ac3b13..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/RIPEMD128Digest.java +++ /dev/null @@ -1,49 +0,0 @@ -/** - * - * Message digest classes. - */ -package org.bouncycastle.crypto.digests; - - -/** - * implementation of RIPEMD128 - */ -public class RIPEMD128Digest extends GeneralDigest { - - /** - * Standard constructor - */ - public RIPEMD128Digest() { - } - - /** - * Copy constructor. This will copy the state of the provided - * message digest. - */ - public RIPEMD128Digest(RIPEMD128Digest t) { - } - - public String getAlgorithmName() { - } - - public int getDigestSize() { - } - - protected void processWord(byte[] in, int inOff) { - } - - protected void processLength(long bitLength) { - } - - public int doFinal(byte[] out, int outOff) { - } - - /** - * reset the chaining variables to the IV values. - */ - public void reset() { - } - - protected void processBlock() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/RIPEMD160Digest.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/RIPEMD160Digest.java deleted file mode 100644 index 8d794f24c..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/RIPEMD160Digest.java +++ /dev/null @@ -1,50 +0,0 @@ -/** - * - * Message digest classes. - */ -package org.bouncycastle.crypto.digests; - - -/** - * implementation of RIPEMD see, - * http://www.esat.kuleuven.ac.be/~bosselae/ripemd160.html - */ -public class RIPEMD160Digest extends GeneralDigest { - - /** - * Standard constructor - */ - public RIPEMD160Digest() { - } - - /** - * Copy constructor. This will copy the state of the provided - * message digest. - */ - public RIPEMD160Digest(RIPEMD160Digest t) { - } - - public String getAlgorithmName() { - } - - public int getDigestSize() { - } - - protected void processWord(byte[] in, int inOff) { - } - - protected void processLength(long bitLength) { - } - - public int doFinal(byte[] out, int outOff) { - } - - /** - * reset the chaining variables to the IV values. - */ - public void reset() { - } - - protected void processBlock() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/RIPEMD256Digest.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/RIPEMD256Digest.java deleted file mode 100644 index 099059182..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/RIPEMD256Digest.java +++ /dev/null @@ -1,51 +0,0 @@ -/** - * - * Message digest classes. - */ -package org.bouncycastle.crypto.digests; - - -/** - * implementation of RIPEMD256. - *
- * note: this algorithm offers the same level of security as RIPEMD128. - */ -public class RIPEMD256Digest extends GeneralDigest { - - /** - * Standard constructor - */ - public RIPEMD256Digest() { - } - - /** - * Copy constructor. This will copy the state of the provided - * message digest. - */ - public RIPEMD256Digest(RIPEMD256Digest t) { - } - - public String getAlgorithmName() { - } - - public int getDigestSize() { - } - - protected void processWord(byte[] in, int inOff) { - } - - protected void processLength(long bitLength) { - } - - public int doFinal(byte[] out, int outOff) { - } - - /** - * reset the chaining variables to the IV values. - */ - public void reset() { - } - - protected void processBlock() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/RIPEMD320Digest.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/RIPEMD320Digest.java deleted file mode 100644 index 9bd899f12..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/RIPEMD320Digest.java +++ /dev/null @@ -1,52 +0,0 @@ -/** - * - * Message digest classes. - */ -package org.bouncycastle.crypto.digests; - - -/** - * implementation of RIPEMD 320. - *
- * Note: this implementation offers the same level of security - * as RIPEMD 160. - */ -public class RIPEMD320Digest extends GeneralDigest { - - /** - * Standard constructor - */ - public RIPEMD320Digest() { - } - - /** - * Copy constructor. This will copy the state of the provided - * message digest. - */ - public RIPEMD320Digest(RIPEMD320Digest t) { - } - - public String getAlgorithmName() { - } - - public int getDigestSize() { - } - - protected void processWord(byte[] in, int inOff) { - } - - protected void processLength(long bitLength) { - } - - public int doFinal(byte[] out, int outOff) { - } - - /** - * reset the chaining variables to the IV values. - */ - public void reset() { - } - - protected void processBlock() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/SHA1Digest.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/SHA1Digest.java deleted file mode 100644 index c5026ab24..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/SHA1Digest.java +++ /dev/null @@ -1,52 +0,0 @@ -/** - * - * Message digest classes. - */ -package org.bouncycastle.crypto.digests; - - -/** - * implementation of SHA-1 as outlined in "Handbook of Applied Cryptography", pages 346 - 349. - * - * It is interesting to ponder why the, apart from the extra IV, the other difference here from MD5 - * is the "endienness" of the word processing! - */ -public class SHA1Digest extends GeneralDigest { - - /** - * Standard constructor - */ - public SHA1Digest() { - } - - /** - * Copy constructor. This will copy the state of the provided - * message digest. - */ - public SHA1Digest(SHA1Digest t) { - } - - public String getAlgorithmName() { - } - - public int getDigestSize() { - } - - protected void processWord(byte[] in, int inOff) { - } - - protected void processLength(long bitLength) { - } - - public int doFinal(byte[] out, int outOff) { - } - - /** - * reset the chaining variables - */ - public void reset() { - } - - protected void processBlock() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/SHA224Digest.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/SHA224Digest.java deleted file mode 100644 index 44408f28d..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/SHA224Digest.java +++ /dev/null @@ -1,57 +0,0 @@ -/** - * - * Message digest classes. - */ -package org.bouncycastle.crypto.digests; - - -/** - * SHA-224 as described in RFC 3874 - *
- * block word digest - * SHA-1 512 32 160 - * SHA-224 512 32 224 - * SHA-256 512 32 256 - * SHA-384 1024 64 384 - * SHA-512 1024 64 512 - *- */ -public class SHA224Digest extends GeneralDigest { - - /** - * Standard constructor - */ - public SHA224Digest() { - } - - /** - * Copy constructor. This will copy the state of the provided - * message digest. - */ - public SHA224Digest(SHA224Digest t) { - } - - public String getAlgorithmName() { - } - - public int getDigestSize() { - } - - protected void processWord(byte[] in, int inOff) { - } - - protected void processLength(long bitLength) { - } - - public int doFinal(byte[] out, int outOff) { - } - - /** - * reset the chaining variables - */ - public void reset() { - } - - protected void processBlock() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/SHA256Digest.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/SHA256Digest.java deleted file mode 100644 index 62635da3e..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/SHA256Digest.java +++ /dev/null @@ -1,57 +0,0 @@ -/** - * - * Message digest classes. - */ -package org.bouncycastle.crypto.digests; - - -/** - * FIPS 180-2 implementation of SHA-256. - * - *- * block word digest - * SHA-1 512 32 160 - * SHA-256 512 32 256 - * SHA-384 1024 64 384 - * SHA-512 1024 64 512 - *- */ -public class SHA256Digest extends GeneralDigest { - - /** - * Standard constructor - */ - public SHA256Digest() { - } - - /** - * Copy constructor. This will copy the state of the provided - * message digest. - */ - public SHA256Digest(SHA256Digest t) { - } - - public String getAlgorithmName() { - } - - public int getDigestSize() { - } - - protected void processWord(byte[] in, int inOff) { - } - - protected void processLength(long bitLength) { - } - - public int doFinal(byte[] out, int outOff) { - } - - /** - * reset the chaining variables - */ - public void reset() { - } - - protected void processBlock() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/SHA384Digest.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/SHA384Digest.java deleted file mode 100644 index 3481eb6d6..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/SHA384Digest.java +++ /dev/null @@ -1,48 +0,0 @@ -/** - * - * Message digest classes. - */ -package org.bouncycastle.crypto.digests; - - -/** - * FIPS 180-2 implementation of SHA-384. - * - *- * block word digest - * SHA-1 512 32 160 - * SHA-256 512 32 256 - * SHA-384 1024 64 384 - * SHA-512 1024 64 512 - *- */ -public class SHA384Digest extends LongDigest { - - /** - * Standard constructor - */ - public SHA384Digest() { - } - - /** - * Copy constructor. This will copy the state of the provided - * message digest. - */ - public SHA384Digest(SHA384Digest t) { - } - - public String getAlgorithmName() { - } - - public int getDigestSize() { - } - - public int doFinal(byte[] out, int outOff) { - } - - /** - * reset the chaining variables - */ - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/SHA512Digest.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/SHA512Digest.java deleted file mode 100644 index d8a4f497c..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/SHA512Digest.java +++ /dev/null @@ -1,48 +0,0 @@ -/** - * - * Message digest classes. - */ -package org.bouncycastle.crypto.digests; - - -/** - * FIPS 180-2 implementation of SHA-512. - * - *- * block word digest - * SHA-1 512 32 160 - * SHA-256 512 32 256 - * SHA-384 1024 64 384 - * SHA-512 1024 64 512 - *- */ -public class SHA512Digest extends LongDigest { - - /** - * Standard constructor - */ - public SHA512Digest() { - } - - /** - * Copy constructor. This will copy the state of the provided - * message digest. - */ - public SHA512Digest(SHA512Digest t) { - } - - public String getAlgorithmName() { - } - - public int getDigestSize() { - } - - public int doFinal(byte[] out, int outOff) { - } - - /** - * reset the chaining variables - */ - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/ShortenedDigest.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/ShortenedDigest.java deleted file mode 100644 index b4a238714..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/ShortenedDigest.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * - * Message digest classes. - */ -package org.bouncycastle.crypto.digests; - - -/** - * Wrapper class that reduces the output length of a particular digest to - * only the first n bytes of the digest function. - */ -public class ShortenedDigest implements org.bouncycastle.crypto.ExtendedDigest { - - /** - * Base constructor. - * - * @param baseDigest underlying digest to use. - * @param length length in bytes of the output of doFinal. - * @exception IllegalArgumentException if baseDigest is null, or length is greater than baseDigest.getDigestSize(). - */ - public ShortenedDigest(org.bouncycastle.crypto.ExtendedDigest baseDigest, int length) { - } - - public String getAlgorithmName() { - } - - public int getDigestSize() { - } - - public void update(byte in) { - } - - public void update(byte[] in, int inOff, int len) { - } - - public int doFinal(byte[] out, int outOff) { - } - - public void reset() { - } - - public int getByteLength() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/TigerDigest.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/TigerDigest.java deleted file mode 100644 index df96b140e..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/TigerDigest.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - * - * Message digest classes. - */ -package org.bouncycastle.crypto.digests; - - -/** - * implementation of Tiger based on: - * - * http://www.cs.technion.ac.il/~biham/Reports/Tiger - */ -public class TigerDigest implements org.bouncycastle.crypto.ExtendedDigest { - - /** - * Standard constructor - */ - public TigerDigest() { - } - - /** - * Copy constructor. This will copy the state of the provided - * message digest. - */ - public TigerDigest(TigerDigest t) { - } - - public String getAlgorithmName() { - } - - public int getDigestSize() { - } - - public void update(byte in) { - } - - public void update(byte[] in, int inOff, int len) { - } - - public void unpackWord(long r, byte[] out, int outOff) { - } - - public int doFinal(byte[] out, int outOff) { - } - - /** - * reset the chaining variables - */ - public void reset() { - } - - public int getByteLength() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/WhirlpoolDigest.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/WhirlpoolDigest.java deleted file mode 100644 index 2c4ef6543..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/digests/WhirlpoolDigest.java +++ /dev/null @@ -1,51 +0,0 @@ -/** - * - * Message digest classes. - */ -package org.bouncycastle.crypto.digests; - - -/** - * Implementation of WhirlpoolDigest, based on Java source published by Barreto - * and Rijmen. - * - */ -public final class WhirlpoolDigest implements org.bouncycastle.crypto.ExtendedDigest { - - public WhirlpoolDigest() { - } - - /** - * Copy constructor. This will copy the state of the provided message - * digest. - */ - public WhirlpoolDigest(WhirlpoolDigest originalDigest) { - } - - public String getAlgorithmName() { - } - - public int getDigestSize() { - } - - public int doFinal(byte[] out, int outOff) { - } - - /** - * reset the chaining variables - */ - public void reset() { - } - - protected void processBlock() { - } - - public void update(byte in) { - } - - public void update(byte[] in, int inOff, int len) { - } - - public int getByteLength() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/encodings/ISO9796d1Encoding.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/encodings/ISO9796d1Encoding.java deleted file mode 100644 index e8a8da8bb..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/encodings/ISO9796d1Encoding.java +++ /dev/null @@ -1,55 +0,0 @@ -/** - * - * Block encodings for asymmetric ciphers. - */ -package org.bouncycastle.crypto.encodings; - - -/** - * ISO 9796-1 padding. Note in the light of recent results you should - * only use this with RSA (rather than the "simpler" Rabin keys) and you - * should never use it with anything other than a hash (ie. even if the - * message is small don't sign the message, sign it's hash) or some "random" - * value. See your favorite search engine for details. - */ -public class ISO9796d1Encoding implements org.bouncycastle.crypto.AsymmetricBlockCipher { - - public ISO9796d1Encoding(org.bouncycastle.crypto.AsymmetricBlockCipher cipher) { - } - - public org.bouncycastle.crypto.AsymmetricBlockCipher getUnderlyingCipher() { - } - - public void init(boolean forEncryption, org.bouncycastle.crypto.CipherParameters param) { - } - - /** - * return the input block size. The largest message we can process - * is (key_size_in_bits + 3)/16, which in our world comes to - * key_size_in_bytes / 2. - */ - public int getInputBlockSize() { - } - - /** - * return the maximum possible size for the output. - */ - public int getOutputBlockSize() { - } - - /** - * set the number of bits in the next message to be treated as - * pad bits. - */ - public void setPadBits(int padBits) { - } - - /** - * retrieve the number of pad bits in the last decoded message. - */ - public int getPadBits() { - } - - public byte[] processBlock(byte[] in, int inOff, int inLen) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/encodings/OAEPEncoding.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/encodings/OAEPEncoding.java deleted file mode 100644 index 676286264..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/encodings/OAEPEncoding.java +++ /dev/null @@ -1,49 +0,0 @@ -/** - * - * Block encodings for asymmetric ciphers. - */ -package org.bouncycastle.crypto.encodings; - - -/** - * Optimal Asymmetric Encryption Padding (OAEP) - see PKCS 1 V 2. - */ -public class OAEPEncoding implements org.bouncycastle.crypto.AsymmetricBlockCipher { - - public OAEPEncoding(org.bouncycastle.crypto.AsymmetricBlockCipher cipher) { - } - - public OAEPEncoding(org.bouncycastle.crypto.AsymmetricBlockCipher cipher, org.bouncycastle.crypto.Digest hash) { - } - - public OAEPEncoding(org.bouncycastle.crypto.AsymmetricBlockCipher cipher, org.bouncycastle.crypto.Digest hash, byte[] encodingParams) { - } - - public OAEPEncoding(org.bouncycastle.crypto.AsymmetricBlockCipher cipher, org.bouncycastle.crypto.Digest hash, org.bouncycastle.crypto.Digest mgf1Hash, byte[] encodingParams) { - } - - public org.bouncycastle.crypto.AsymmetricBlockCipher getUnderlyingCipher() { - } - - public void init(boolean forEncryption, org.bouncycastle.crypto.CipherParameters param) { - } - - public int getInputBlockSize() { - } - - public int getOutputBlockSize() { - } - - public byte[] processBlock(byte[] in, int inOff, int inLen) { - } - - public byte[] encodeBlock(byte[] in, int inOff, int inLen) { - } - - /** - * @exception InvalidCipherTextException if the decrypted block turns out to - * be badly formatted. - */ - public byte[] decodeBlock(byte[] in, int inOff, int inLen) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/encodings/PKCS1Encoding.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/encodings/PKCS1Encoding.java deleted file mode 100644 index fdd462c6c..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/encodings/PKCS1Encoding.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * - * Block encodings for asymmetric ciphers. - */ -package org.bouncycastle.crypto.encodings; - - -/** - * this does your basic PKCS 1 v1.5 padding - whether or not you should be using this - * depends on your application - see PKCS1 Version 2 for details. - */ -public class PKCS1Encoding implements org.bouncycastle.crypto.AsymmetricBlockCipher { - - /** - * some providers fail to include the leading zero in PKCS1 encoded blocks. If you need to - * work with one of these set the system property org.bouncycastle.pkcs1.strict to false. - *- * The system property is checked during construction of the encoding object, it is set to - * true by default. - *
- */ - public static final String STRICT_LENGTH_ENABLED_PROPERTY = "org.bouncycastle.pkcs1.strict"; - - /** - * Basic constructor. - * @param cipher - */ - public PKCS1Encoding(org.bouncycastle.crypto.AsymmetricBlockCipher cipher) { - } - - public org.bouncycastle.crypto.AsymmetricBlockCipher getUnderlyingCipher() { - } - - public void init(boolean forEncryption, org.bouncycastle.crypto.CipherParameters param) { - } - - public int getInputBlockSize() { - } - - public int getOutputBlockSize() { - } - - public byte[] processBlock(byte[] in, int inOff, int inLen) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/AESEngine.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/AESEngine.java deleted file mode 100644 index bb5f4be28..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/AESEngine.java +++ /dev/null @@ -1,60 +0,0 @@ -/** - * - * Basic cipher classes. - */ -package org.bouncycastle.crypto.engines; - - -/** - * an implementation of the AES (Rijndael), from FIPS-197. - *- * For further details see: http://csrc.nist.gov/encryption/aes/. - * - * This implementation is based on optimizations from Dr. Brian Gladman's paper and C code at - * http://fp.gladman.plus.com/cryptography_technology/rijndael/ - * - * There are three levels of tradeoff of speed vs memory - * Because java has no preprocessor, they are written as three separate classes from which to choose - * - * The fastest uses 8Kbytes of static tables to precompute round calculations, 4 256 word tables for encryption - * and 4 for decryption. - * - * The middle performance version uses only one 256 word table for each, for a total of 2Kbytes, - * adding 12 rotate operations per round to compute the values contained in the other tables from - * the contents of the first. - * - * The slowest version uses no static tables at all and computes the values in each round. - *
- * This file contains the middle performance version with 2Kbytes of static tables for round precomputation. - */ -public class AESEngine implements org.bouncycastle.crypto.BlockCipher { - - /** - * default constructor - 128 bit block size. - */ - public AESEngine() { - } - - /** - * initialise an AES cipher. - * - * @param forEncryption whether or not we are for encryption. - * @param params the parameters required to set up the cipher. - * @exception IllegalArgumentException if the params argument is - * inappropriate. - */ - public void init(boolean forEncryption, org.bouncycastle.crypto.CipherParameters params) { - } - - public String getAlgorithmName() { - } - - public int getBlockSize() { - } - - public int processBlock(byte[] in, int inOff, byte[] out, int outOff) { - } - - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/AESFastEngine.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/AESFastEngine.java deleted file mode 100644 index 9a4d60741..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/AESFastEngine.java +++ /dev/null @@ -1,60 +0,0 @@ -/** - * - * Basic cipher classes. - */ -package org.bouncycastle.crypto.engines; - - -/** - * an implementation of the AES (Rijndael), from FIPS-197. - *
- * For further details see: http://csrc.nist.gov/encryption/aes/. - * - * This implementation is based on optimizations from Dr. Brian Gladman's paper and C code at - * http://fp.gladman.plus.com/cryptography_technology/rijndael/ - * - * There are three levels of tradeoff of speed vs memory - * Because java has no preprocessor, they are written as three separate classes from which to choose - * - * The fastest uses 8Kbytes of static tables to precompute round calculations, 4 256 word tables for encryption - * and 4 for decryption. - * - * The middle performance version uses only one 256 word table for each, for a total of 2Kbytes, - * adding 12 rotate operations per round to compute the values contained in the other tables from - * the contents of the first - * - * The slowest version uses no static tables at all and computes the values in each round - *
- * This file contains the fast version with 8Kbytes of static tables for round precomputation - */ -public class AESFastEngine implements org.bouncycastle.crypto.BlockCipher { - - /** - * default constructor - 128 bit block size. - */ - public AESFastEngine() { - } - - /** - * initialise an AES cipher. - * - * @param forEncryption whether or not we are for encryption. - * @param params the parameters required to set up the cipher. - * @exception IllegalArgumentException if the params argument is - * inappropriate. - */ - public void init(boolean forEncryption, org.bouncycastle.crypto.CipherParameters params) { - } - - public String getAlgorithmName() { - } - - public int getBlockSize() { - } - - public int processBlock(byte[] in, int inOff, byte[] out, int outOff) { - } - - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/AESLightEngine.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/AESLightEngine.java deleted file mode 100644 index 53511ce29..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/AESLightEngine.java +++ /dev/null @@ -1,62 +0,0 @@ -/** - * - * Basic cipher classes. - */ -package org.bouncycastle.crypto.engines; - - -/** - * an implementation of the AES (Rijndael), from FIPS-197. - *
- * For further details see: http://csrc.nist.gov/encryption/aes/. - * - * This implementation is based on optimizations from Dr. Brian Gladman's paper and C code at - * http://fp.gladman.plus.com/cryptography_technology/rijndael/ - * - * There are three levels of tradeoff of speed vs memory - * Because java has no preprocessor, they are written as three separate classes from which to choose - * - * The fastest uses 8Kbytes of static tables to precompute round calculations, 4 256 word tables for encryption - * and 4 for decryption. - * - * The middle performance version uses only one 256 word table for each, for a total of 2Kbytes, - * adding 12 rotate operations per round to compute the values contained in the other tables from - * the contents of the first - * - * The slowest version uses no static tables at all and computes the values - * in each round. - *
- * This file contains the slowest performance version with no static tables - * for round precomputation, but it has the smallest foot print. - */ -public class AESLightEngine implements org.bouncycastle.crypto.BlockCipher { - - /** - * default constructor - 128 bit block size. - */ - public AESLightEngine() { - } - - /** - * initialise an AES cipher. - * - * @param forEncryption whether or not we are for encryption. - * @param params the parameters required to set up the cipher. - * @exception IllegalArgumentException if the params argument is - * inappropriate. - */ - public void init(boolean forEncryption, org.bouncycastle.crypto.CipherParameters params) { - } - - public String getAlgorithmName() { - } - - public int getBlockSize() { - } - - public int processBlock(byte[] in, int inOff, byte[] out, int outOff) { - } - - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/AESWrapEngine.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/AESWrapEngine.java deleted file mode 100644 index 3750bcbc6..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/AESWrapEngine.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - * - * Basic cipher classes. - */ -package org.bouncycastle.crypto.engines; - - -/** - * an implementation of the AES Key Wrapper from the NIST Key Wrap - * Specification. - *
- * For further details see: http://csrc.nist.gov/encryption/kms/key-wrap.pdf. - */ -public class AESWrapEngine extends RFC3394WrapEngine { - - public AESWrapEngine() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/BlowfishEngine.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/BlowfishEngine.java deleted file mode 100644 index cf441f7d5..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/BlowfishEngine.java +++ /dev/null @@ -1,41 +0,0 @@ -/** - * - * Basic cipher classes. - */ -package org.bouncycastle.crypto.engines; - - -/** - * A class that provides Blowfish key encryption operations, - * such as encoding data and generating keys. - * All the algorithms herein are from Applied Cryptography - * and implement a simplified cryptography interface. - */ -public final class BlowfishEngine implements org.bouncycastle.crypto.BlockCipher { - - public BlowfishEngine() { - } - - /** - * initialise a Blowfish cipher. - * - * @param encrypting whether or not we are for encryption. - * @param params the parameters required to set up the cipher. - * @exception IllegalArgumentException if the params argument is - * inappropriate. - */ - public void init(boolean encrypting, org.bouncycastle.crypto.CipherParameters params) { - } - - public String getAlgorithmName() { - } - - public final int processBlock(byte[] in, int inOff, byte[] out, int outOff) { - } - - public void reset() { - } - - public int getBlockSize() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/DESEngine.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/DESEngine.java deleted file mode 100644 index 4dff94d1a..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/DESEngine.java +++ /dev/null @@ -1,59 +0,0 @@ -/** - * - * Basic cipher classes. - */ -package org.bouncycastle.crypto.engines; - - -/** - * a class that provides a basic DES engine. - */ -public class DESEngine implements org.bouncycastle.crypto.BlockCipher { - - protected static final int BLOCK_SIZE = 8; - - /** - * standard constructor. - */ - public DESEngine() { - } - - /** - * initialise a DES cipher. - * - * @param encrypting whether or not we are for encryption. - * @param params the parameters required to set up the cipher. - * @exception IllegalArgumentException if the params argument is - * inappropriate. - */ - public void init(boolean encrypting, org.bouncycastle.crypto.CipherParameters params) { - } - - public String getAlgorithmName() { - } - - public int getBlockSize() { - } - - public int processBlock(byte[] in, int inOff, byte[] out, int outOff) { - } - - public void reset() { - } - - /** - * generate an integer based working key based on our secret key - * and what we processing we are planning to do. - * - * Acknowledgements for this routine go to James Gillogly & Phil Karn. - * (whoever, and wherever they are!). - */ - protected int[] generateWorkingKey(boolean encrypting, byte[] key) { - } - - /** - * the DES engine. - */ - protected void desFunc(int[] wKey, byte[] in, int inOff, byte[] out, int outOff) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/DESedeEngine.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/DESedeEngine.java deleted file mode 100644 index 6fefdd5f8..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/DESedeEngine.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * - * Basic cipher classes. - */ -package org.bouncycastle.crypto.engines; - - -/** - * a class that provides a basic DESede (or Triple DES) engine. - */ -public class DESedeEngine extends DESEngine { - - protected static final int BLOCK_SIZE = 8; - - /** - * standard constructor. - */ - public DESedeEngine() { - } - - /** - * initialise a DESede cipher. - * - * @param encrypting whether or not we are for encryption. - * @param params the parameters required to set up the cipher. - * @exception IllegalArgumentException if the params argument is - * inappropriate. - */ - public void init(boolean encrypting, org.bouncycastle.crypto.CipherParameters params) { - } - - public String getAlgorithmName() { - } - - public int getBlockSize() { - } - - public int processBlock(byte[] in, int inOff, byte[] out, int outOff) { - } - - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/DESedeWrapEngine.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/DESedeWrapEngine.java deleted file mode 100644 index 9fb49d285..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/DESedeWrapEngine.java +++ /dev/null @@ -1,65 +0,0 @@ -/** - * - * Basic cipher classes. - */ -package org.bouncycastle.crypto.engines; - - -/** - * Wrap keys according to - * - * draft-ietf-smime-key-wrap-01.txt. - *
- * Note: - *
- * http://www.ecrypt.eu.org/stream/p3ciphers/hc/hc128_p3.pdf - *
- * It is a third phase candidate in the eStream contest, and is patent-free. - * No attacks are known as of today (April 2007). See - * - * http://www.ecrypt.eu.org/stream/hcp3.html - *
- */ -public class HC128Engine implements org.bouncycastle.crypto.StreamCipher { - - public HC128Engine() { - } - - public String getAlgorithmName() { - } - - /** - * Initialise a HC-128 cipher. - * - * @param forEncryption whether or not we are for encryption. Irrelevant, as - * encryption and decryption are the same. - * @param params the parameters required to set up the cipher. - * @throws IllegalArgumentException if the params argument is - * inappropriate (ie. the key is not 128 bit long). - */ - public void init(boolean forEncryption, org.bouncycastle.crypto.CipherParameters params) { - } - - public void processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) { - } - - public void reset() { - } - - public byte returnByte(byte in) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/HC256Engine.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/HC256Engine.java deleted file mode 100644 index 24d10676b..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/HC256Engine.java +++ /dev/null @@ -1,50 +0,0 @@ -/** - * - * Basic cipher classes. - */ -package org.bouncycastle.crypto.engines; - - -/** - * HC-256 is a software-efficient stream cipher created by Hongjun Wu. It - * generates keystream from a 256-bit secret key and a 256-bit initialization - * vector. - *- * http://www.ecrypt.eu.org/stream/p3ciphers/hc/hc256_p3.pdf - *
- * Its brother, HC-128, is a third phase candidate in the eStream contest. - * The algorithm is patent-free. No attacks are known as of today (April 2007). - * See - * - * http://www.ecrypt.eu.org/stream/hcp3.html - *
- */ -public class HC256Engine implements org.bouncycastle.crypto.StreamCipher { - - public HC256Engine() { - } - - public String getAlgorithmName() { - } - - /** - * Initialise a HC-256 cipher. - * - * @param forEncryption whether or not we are for encryption. Irrelevant, as - * encryption and decryption are the same. - * @param params the parameters required to set up the cipher. - * @throws IllegalArgumentException if the params argument is - * inappropriate (ie. the key is not 256 bit long). - */ - public void init(boolean forEncryption, org.bouncycastle.crypto.CipherParameters params) { - } - - public void processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) { - } - - public void reset() { - } - - public byte returnByte(byte in) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/IDEAEngine.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/IDEAEngine.java deleted file mode 100644 index 6de44f32c..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/IDEAEngine.java +++ /dev/null @@ -1,61 +0,0 @@ -/** - * - * Basic cipher classes. - */ -package org.bouncycastle.crypto.engines; - - -/** - * A class that provides a basic International Data Encryption Algorithm (IDEA) engine. - *- * This implementation is based on the "HOWTO: INTERNATIONAL DATA ENCRYPTION ALGORITHM" - * implementation summary by Fauzan Mirza (F.U.Mirza@sheffield.ac.uk). (baring 1 typo at the - * end of the mulinv function!). - *
- * It can be found at ftp://ftp.funet.fi/pub/crypt/cryptography/symmetric/idea/ - *
- * Note 1: This algorithm is patented in the USA, Japan, and Europe including - * at least Austria, France, Germany, Italy, Netherlands, Spain, Sweden, Switzerland - * and the United Kingdom. Non-commercial use is free, however any commercial - * products are liable for royalties. Please see - * www.mediacrypt.com for - * further details. This announcement has been included at the request of - * the patent holders. - *
- * Note 2: Due to the requests concerning the above, this algorithm is now only - * included in the extended Bouncy Castle provider and JCE signed jars. It is - * not included in the default distributions. - */ -public class IDEAEngine implements org.bouncycastle.crypto.BlockCipher { - - protected static final int BLOCK_SIZE = 8; - - /** - * standard constructor. - */ - public IDEAEngine() { - } - - /** - * initialise an IDEA cipher. - * - * @param forEncryption whether or not we are for encryption. - * @param params the parameters required to set up the cipher. - * @exception IllegalArgumentException if the params argument is - * inappropriate. - */ - public void init(boolean forEncryption, org.bouncycastle.crypto.CipherParameters params) { - } - - public String getAlgorithmName() { - } - - public int getBlockSize() { - } - - public int processBlock(byte[] in, int inOff, byte[] out, int outOff) { - } - - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/IESEngine.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/IESEngine.java deleted file mode 100644 index 963caa976..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/IESEngine.java +++ /dev/null @@ -1,50 +0,0 @@ -/** - * - * Basic cipher classes. - */ -package org.bouncycastle.crypto.engines; - - -/** - * support class for constructing integrated encryption ciphers - * for doing basic message exchanges on top of key agreement ciphers - */ -public class IESEngine { - - /** - * set up for use with stream mode, where the key derivation function - * is used to provide a stream of bytes to xor with the message. - * - * @param agree the key agreement used as the basis for the encryption - * @param kdf the key derivation function used for byte generation - * @param mac the message authentication code generator for the message - */ - public IESEngine(org.bouncycastle.crypto.BasicAgreement agree, org.bouncycastle.crypto.DerivationFunction kdf, org.bouncycastle.crypto.Mac mac) { - } - - /** - * set up for use in conjunction with a block cipher to handle the - * message. - * - * @param agree the key agreement used as the basis for the encryption - * @param kdf the key derivation function used for byte generation - * @param mac the message authentication code generator for the message - * @param cipher the cipher to used for encrypting the message - */ - public IESEngine(org.bouncycastle.crypto.BasicAgreement agree, org.bouncycastle.crypto.DerivationFunction kdf, org.bouncycastle.crypto.Mac mac, org.bouncycastle.crypto.BufferedBlockCipher cipher) { - } - - /** - * Initialise the encryptor. - * - * @param forEncryption whether or not this is encryption/decryption. - * @param privParam our private key parameters - * @param pubParam the recipient's/sender's public key parameters - * @param param encoding and derivation parameters. - */ - public void init(boolean forEncryption, org.bouncycastle.crypto.CipherParameters privParam, org.bouncycastle.crypto.CipherParameters pubParam, org.bouncycastle.crypto.CipherParameters param) { - } - - public byte[] processBlock(byte[] in, int inOff, int inLen) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/NullEngine.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/NullEngine.java deleted file mode 100644 index 6ddb484d5..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/NullEngine.java +++ /dev/null @@ -1,36 +0,0 @@ -/** - * - * Basic cipher classes. - */ -package org.bouncycastle.crypto.engines; - - -/** - * The no-op engine that just copies bytes through, irrespective of whether encrypting and decrypting. - * Provided for the sake of completeness. - */ -public class NullEngine implements org.bouncycastle.crypto.BlockCipher { - - protected static final int BLOCK_SIZE = 1; - - /** - * Standard constructor. - */ - public NullEngine() { - } - - public void init(boolean forEncryption, org.bouncycastle.crypto.CipherParameters params) { - } - - public String getAlgorithmName() { - } - - public int getBlockSize() { - } - - public int processBlock(byte[] in, int inOff, byte[] out, int outOff) { - } - - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/RFC3211WrapEngine.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/RFC3211WrapEngine.java deleted file mode 100644 index e56c758a9..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/RFC3211WrapEngine.java +++ /dev/null @@ -1,28 +0,0 @@ -/** - * - * Basic cipher classes. - */ -package org.bouncycastle.crypto.engines; - - -/** - * an implementation of the RFC 3211 Key Wrap - * Specification. - */ -public class RFC3211WrapEngine implements org.bouncycastle.crypto.Wrapper { - - public RFC3211WrapEngine(org.bouncycastle.crypto.BlockCipher engine) { - } - - public void init(boolean forWrapping, org.bouncycastle.crypto.CipherParameters param) { - } - - public String getAlgorithmName() { - } - - public byte[] wrap(byte[] in, int inOff, int inLen) { - } - - public byte[] unwrap(byte[] in, int inOff, int inLen) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/RFC3394WrapEngine.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/RFC3394WrapEngine.java deleted file mode 100644 index 35f71e168..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/RFC3394WrapEngine.java +++ /dev/null @@ -1,31 +0,0 @@ -/** - * - * Basic cipher classes. - */ -package org.bouncycastle.crypto.engines; - - -/** - * an implementation of the AES Key Wrapper from the NIST Key Wrap - * Specification as described in RFC 3394. - *
- * For further details see: http://www.ietf.org/rfc/rfc3394.txt
- * and http://csrc.nist.gov/encryption/kms/key-wrap.pdf.
- */
-public class RFC3394WrapEngine implements org.bouncycastle.crypto.Wrapper {
-
- public RFC3394WrapEngine(org.bouncycastle.crypto.BlockCipher engine) {
- }
-
- public void init(boolean forWrapping, org.bouncycastle.crypto.CipherParameters param) {
- }
-
- public String getAlgorithmName() {
- }
-
- public byte[] wrap(byte[] in, int inOff, int inLen) {
- }
-
- public byte[] unwrap(byte[] in, int inOff, int inLen) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/RSABlindedEngine.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/RSABlindedEngine.java
deleted file mode 100644
index 8f5248082..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/RSABlindedEngine.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- *
- * Basic cipher classes.
- */
-package org.bouncycastle.crypto.engines;
-
-
-/**
- * this does your basic RSA algorithm with blinding
- */
-public class RSABlindedEngine implements org.bouncycastle.crypto.AsymmetricBlockCipher {
-
- public RSABlindedEngine() {
- }
-
- /**
- * initialise the RSA engine.
- *
- * @param forEncryption true if we are encrypting, false otherwise.
- * @param param the necessary RSA key parameters.
- */
- public void init(boolean forEncryption, org.bouncycastle.crypto.CipherParameters param) {
- }
-
- /**
- * Return the maximum size for an input block to this engine.
- * For RSA this is always one byte less than the key size on
- * encryption, and the same length as the key size on decryption.
- *
- * @return maximum size for an input block.
- */
- public int getInputBlockSize() {
- }
-
- /**
- * Return the maximum size for an output block to this engine.
- * For RSA this is always one byte less than the key size on
- * decryption, and the same length as the key size on encryption.
- *
- * @return maximum size for an output block.
- */
- public int getOutputBlockSize() {
- }
-
- /**
- * Process a single block using the basic RSA algorithm.
- *
- * @param in the input array.
- * @param inOff the offset into the input buffer where the data starts.
- * @param inLen the length of the data to be processed.
- * @return the result of the RSA process.
- * @exception DataLengthException the input block is too large.
- */
- public byte[] processBlock(byte[] in, int inOff, int inLen) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/RSABlindingEngine.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/RSABlindingEngine.java
deleted file mode 100644
index 2c24d4689..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/RSABlindingEngine.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/**
- *
- * Basic cipher classes.
- */
-package org.bouncycastle.crypto.engines;
-
-
-/**
- * This does your basic RSA Chaum's blinding and unblinding as outlined in
- * "Handbook of Applied Cryptography", page 475. You need to use this if you are
- * trying to get another party to generate signatures without them being aware
- * of the message they are signing.
- */
-public class RSABlindingEngine implements org.bouncycastle.crypto.AsymmetricBlockCipher {
-
- public RSABlindingEngine() {
- }
-
- /**
- * Initialise the blinding engine.
- *
- * @param forEncryption true if we are encrypting (blinding), false otherwise.
- * @param param the necessary RSA key parameters.
- */
- public void init(boolean forEncryption, org.bouncycastle.crypto.CipherParameters param) {
- }
-
- /**
- * Return the maximum size for an input block to this engine.
- * For RSA this is always one byte less than the key size on
- * encryption, and the same length as the key size on decryption.
- *
- * @return maximum size for an input block.
- */
- public int getInputBlockSize() {
- }
-
- /**
- * Return the maximum size for an output block to this engine.
- * For RSA this is always one byte less than the key size on
- * decryption, and the same length as the key size on encryption.
- *
- * @return maximum size for an output block.
- */
- public int getOutputBlockSize() {
- }
-
- /**
- * Process a single block using the RSA blinding algorithm.
- *
- * @param in the input array.
- * @param inOff the offset into the input buffer where the data starts.
- * @param inLen the length of the data to be processed.
- * @return the result of the RSA process.
- * @throws DataLengthException the input block is too large.
- */
- public byte[] processBlock(byte[] in, int inOff, int inLen) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/RSAEngine.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/RSAEngine.java
deleted file mode 100644
index dd6ddf425..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/RSAEngine.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- *
- * Basic cipher classes.
- */
-package org.bouncycastle.crypto.engines;
-
-
-/**
- * this does your basic RSA algorithm.
- */
-public class RSAEngine implements org.bouncycastle.crypto.AsymmetricBlockCipher {
-
- public RSAEngine() {
- }
-
- /**
- * initialise the RSA engine.
- *
- * @param forEncryption true if we are encrypting, false otherwise.
- * @param param the necessary RSA key parameters.
- */
- public void init(boolean forEncryption, org.bouncycastle.crypto.CipherParameters param) {
- }
-
- /**
- * Return the maximum size for an input block to this engine.
- * For RSA this is always one byte less than the key size on
- * encryption, and the same length as the key size on decryption.
- *
- * @return maximum size for an input block.
- */
- public int getInputBlockSize() {
- }
-
- /**
- * Return the maximum size for an output block to this engine.
- * For RSA this is always one byte less than the key size on
- * decryption, and the same length as the key size on encryption.
- *
- * @return maximum size for an output block.
- */
- public int getOutputBlockSize() {
- }
-
- /**
- * Process a single block using the basic RSA algorithm.
- *
- * @param in the input array.
- * @param inOff the offset into the input buffer where the data starts.
- * @param inLen the length of the data to be processed.
- * @return the result of the RSA process.
- * @exception DataLengthException the input block is too large.
- */
- public byte[] processBlock(byte[] in, int inOff, int inLen) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/Salsa20Engine.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/Salsa20Engine.java
deleted file mode 100644
index d46b8c178..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/engines/Salsa20Engine.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/**
- *
- * Basic cipher classes.
- */
-package org.bouncycastle.crypto.engines;
-
-
-/**
- * Implementation of Daniel J. Bernstein's Salsa20 stream cipher, Snuffle 2005
- */
-public class Salsa20Engine implements org.bouncycastle.crypto.StreamCipher {
-
- public Salsa20Engine() {
- }
-
- /**
- * initialise a Salsa20 cipher.
- *
- * @param forEncryption whether or not we are for encryption.
- * @param params the parameters required to set up the cipher.
- * @exception IllegalArgumentException if the params argument is
- * inappropriate.
- */
- public void init(boolean forEncryption, org.bouncycastle.crypto.CipherParameters params) {
- }
-
- public String getAlgorithmName() {
- }
-
- public byte returnByte(byte in) {
- }
-
- public void processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) {
- }
-
- public void reset() {
- }
-
- /**
- * Salsa20 function
- *
- * @param input input data
- *
- * @return keystream
- */
- public static void salsaCore(int rounds, int[] input, int[] x) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/BaseKDFBytesGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/BaseKDFBytesGenerator.java
deleted file mode 100644
index a2b2eb381..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/BaseKDFBytesGenerator.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
- *
- * Generators for keys, key pairs and password based encryption algorithms.
- */
-package org.bouncycastle.crypto.generators;
-
-
-/**
- * Basic KDF generator for derived keys and ivs as defined by IEEE P1363a/ISO 18033
- *
- * This implementation is based on ISO 18033/P1363a.
- */
-public class BaseKDFBytesGenerator implements org.bouncycastle.crypto.DerivationFunction {
-
- /**
- * Construct a KDF Parameters generator.
- *
- * @param counterStart value of counter. - * @param digest the digest to be used as the source of derived keys. - */ - protected BaseKDFBytesGenerator(int counterStart, org.bouncycastle.crypto.Digest digest) { - } - - public void init(org.bouncycastle.crypto.DerivationParameters param) { - } - - /** - * return the underlying digest. - */ - public org.bouncycastle.crypto.Digest getDigest() { - } - - /** - * fill len bytes of the output buffer with bytes generated from - * the derivation function. - * - * @throws IllegalArgumentException if the size of the request will cause an overflow. - * @throws DataLengthException if the out buffer is too small. - */ - public int generateBytes(byte[] out, int outOff, int len) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/DESKeyGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/DESKeyGenerator.java deleted file mode 100644 index 4307b1cd5..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/DESKeyGenerator.java +++ /dev/null @@ -1,25 +0,0 @@ -/** - * - * Generators for keys, key pairs and password based encryption algorithms. - */ -package org.bouncycastle.crypto.generators; - - -public class DESKeyGenerator extends org.bouncycastle.crypto.CipherKeyGenerator { - - public DESKeyGenerator() { - } - - /** - * initialise the key generator - if strength is set to zero - * the key generated will be 64 bits in size, otherwise - * strength can be 64 or 56 bits (if you don't count the parity bits). - * - * @param param the parameters to be used for key generation - */ - public void init(org.bouncycastle.crypto.KeyGenerationParameters param) { - } - - public byte[] generateKey() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/DESedeKeyGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/DESedeKeyGenerator.java deleted file mode 100644 index 26e08724a..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/DESedeKeyGenerator.java +++ /dev/null @@ -1,27 +0,0 @@ -/** - * - * Generators for keys, key pairs and password based encryption algorithms. - */ -package org.bouncycastle.crypto.generators; - - -public class DESedeKeyGenerator extends DESKeyGenerator { - - public DESedeKeyGenerator() { - } - - /** - * initialise the key generator - if strength is set to zero - * the key generated will be 192 bits in size, otherwise - * strength can be 128 or 192 (or 112 or 168 if you don't count - * parity bits), depending on whether you wish to do 2-key or 3-key - * triple DES. - * - * @param param the parameters to be used for key generation - */ - public void init(org.bouncycastle.crypto.KeyGenerationParameters param) { - } - - public byte[] generateKey() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/DHBasicKeyPairGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/DHBasicKeyPairGenerator.java deleted file mode 100644 index baa3336a7..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/DHBasicKeyPairGenerator.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * - * Generators for keys, key pairs and password based encryption algorithms. - */ -package org.bouncycastle.crypto.generators; - - -/** - * a basic Diffie-Hellman key pair generator. - * - * This generates keys consistent for use with the basic algorithm for - * Diffie-Hellman. - */ -public class DHBasicKeyPairGenerator implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator { - - public DHBasicKeyPairGenerator() { - } - - public void init(org.bouncycastle.crypto.KeyGenerationParameters param) { - } - - public org.bouncycastle.crypto.AsymmetricCipherKeyPair generateKeyPair() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/DHKeyPairGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/DHKeyPairGenerator.java deleted file mode 100644 index 4bc719765..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/DHKeyPairGenerator.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * - * Generators for keys, key pairs and password based encryption algorithms. - */ -package org.bouncycastle.crypto.generators; - - -/** - * a Diffie-Hellman key pair generator. - * - * This generates keys consistent for use in the MTI/A0 key agreement protocol - * as described in "Handbook of Applied Cryptography", Pages 516-519. - */ -public class DHKeyPairGenerator implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator { - - public DHKeyPairGenerator() { - } - - public void init(org.bouncycastle.crypto.KeyGenerationParameters param) { - } - - public org.bouncycastle.crypto.AsymmetricCipherKeyPair generateKeyPair() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/DHParametersGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/DHParametersGenerator.java deleted file mode 100644 index 4f968a1ec..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/DHParametersGenerator.java +++ /dev/null @@ -1,31 +0,0 @@ -/** - * - * Generators for keys, key pairs and password based encryption algorithms. - */ -package org.bouncycastle.crypto.generators; - - -public class DHParametersGenerator { - - public DHParametersGenerator() { - } - - /** - * Initialise the parameters generator. - * - * @param size bit length for the prime p - * @param certainty level of certainty for the prime number tests - * @param random a source of randomness - */ - public void init(int size, int certainty, javabc.SecureRandom random) { - } - - /** - * which generates the p and g values from the given parameters, - * returning the DHParameters object. - *
- * Note: can take a while... - */ - public org.bouncycastle.crypto.params.DHParameters generateParameters() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/DSAKeyPairGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/DSAKeyPairGenerator.java deleted file mode 100644 index 7c8670f90..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/DSAKeyPairGenerator.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * - * Generators for keys, key pairs and password based encryption algorithms. - */ -package org.bouncycastle.crypto.generators; - - -/** - * a DSA key pair generator. - * - * This generates DSA keys in line with the method described - * in FIPS 186-3 B.1 FFC Key Pair Generation. - */ -public class DSAKeyPairGenerator implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator { - - public DSAKeyPairGenerator() { - } - - public void init(org.bouncycastle.crypto.KeyGenerationParameters param) { - } - - public org.bouncycastle.crypto.AsymmetricCipherKeyPair generateKeyPair() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/DSAParametersGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/DSAParametersGenerator.java deleted file mode 100644 index 78fedcc0e..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/DSAParametersGenerator.java +++ /dev/null @@ -1,34 +0,0 @@ -/** - * - * Generators for keys, key pairs and password based encryption algorithms. - */ -package org.bouncycastle.crypto.generators; - - -/** - * generate suitable parameters for DSA, in line with FIPS 186-2. - */ -public class DSAParametersGenerator { - - public DSAParametersGenerator() { - } - - /** - * initialise the key generator. - * - * @param size size of the key (range 2^512 -> 2^1024 - 64 bit increments) - * @param certainty measure of robustness of prime (for FIPS 186-2 compliance this should be at least 80). - * @param random random byte source. - */ - public void init(int size, int certainty, javabc.SecureRandom random) { - } - - /** - * which generates the p and g values from the given parameters, - * returning the DSAParameters object. - *
- * Note: can take a while... - */ - public org.bouncycastle.crypto.params.DSAParameters generateParameters() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/ECKeyPairGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/ECKeyPairGenerator.java deleted file mode 100644 index 1ba2ce913..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/ECKeyPairGenerator.java +++ /dev/null @@ -1,22 +0,0 @@ -/** - * - * Generators for keys, key pairs and password based encryption algorithms. - */ -package org.bouncycastle.crypto.generators; - - -public class ECKeyPairGenerator implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator, org.bouncycastle.math.ec.ECConstants { - - public ECKeyPairGenerator() { - } - - public void init(org.bouncycastle.crypto.KeyGenerationParameters param) { - } - - /** - * Given the domain parameters this routine generates an EC key - * pair in accordance with X9.62 section 5.2.1 pages 26, 27. - */ - public org.bouncycastle.crypto.AsymmetricCipherKeyPair generateKeyPair() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/ElGamalKeyPairGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/ElGamalKeyPairGenerator.java deleted file mode 100644 index 114e96de9..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/ElGamalKeyPairGenerator.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * - * Generators for keys, key pairs and password based encryption algorithms. - */ -package org.bouncycastle.crypto.generators; - - -/** - * a ElGamal key pair generator. - *
- * This generates keys consistent for use with ElGamal as described in - * page 164 of "Handbook of Applied Cryptography". - */ -public class ElGamalKeyPairGenerator implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator { - - public ElGamalKeyPairGenerator() { - } - - public void init(org.bouncycastle.crypto.KeyGenerationParameters param) { - } - - public org.bouncycastle.crypto.AsymmetricCipherKeyPair generateKeyPair() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/ElGamalParametersGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/ElGamalParametersGenerator.java deleted file mode 100644 index 4c7752bc4..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/ElGamalParametersGenerator.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * - * Generators for keys, key pairs and password based encryption algorithms. - */ -package org.bouncycastle.crypto.generators; - - -public class ElGamalParametersGenerator { - - public ElGamalParametersGenerator() { - } - - public void init(int size, int certainty, javabc.SecureRandom random) { - } - - /** - * which generates the p and g values from the given parameters, - * returning the ElGamalParameters object. - *
- * Note: can take a while...
- */
- public org.bouncycastle.crypto.params.ElGamalParameters generateParameters() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/GOST3410KeyPairGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/GOST3410KeyPairGenerator.java
deleted file mode 100644
index 22caa977e..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/GOST3410KeyPairGenerator.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- *
- * Generators for keys, key pairs and password based encryption algorithms.
- */
-package org.bouncycastle.crypto.generators;
-
-
-/**
- * a GOST3410 key pair generator.
- * This generates GOST3410 keys in line with the method described
- * in GOST R 34.10-94.
- */
-public class GOST3410KeyPairGenerator implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator {
-
- public GOST3410KeyPairGenerator() {
- }
-
- public void init(org.bouncycastle.crypto.KeyGenerationParameters param) {
- }
-
- public org.bouncycastle.crypto.AsymmetricCipherKeyPair generateKeyPair() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/GOST3410ParametersGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/GOST3410ParametersGenerator.java
deleted file mode 100644
index b0c10397e..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/GOST3410ParametersGenerator.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- *
- * Generators for keys, key pairs and password based encryption algorithms.
- */
-package org.bouncycastle.crypto.generators;
-
-
-/**
- * generate suitable parameters for GOST3410.
- */
-public class GOST3410ParametersGenerator {
-
- public GOST3410ParametersGenerator() {
- }
-
- /**
- * initialise the key generator.
- *
- * @param size size of the key
- * @param typeproc type procedure A,B = 1; A',B' - else
- * @param random random byte source.
- */
- public void init(int size, int typeproc, javabc.SecureRandom random) {
- }
-
- /**
- * which generates the p , q and a values from the given parameters,
- * returning the GOST3410Parameters object.
- */
- public org.bouncycastle.crypto.params.GOST3410Parameters generateParameters() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/KDF1BytesGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/KDF1BytesGenerator.java
deleted file mode 100644
index 9641f5cc1..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/KDF1BytesGenerator.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- *
- * Generators for keys, key pairs and password based encryption algorithms.
- */
-package org.bouncycastle.crypto.generators;
-
-
-/**
- * KDF1 generator for derived keys and ivs as defined by IEEE P1363a/ISO 18033
- *
- * This implementation is based on ISO 18033/IEEE P1363a.
- */
-public class KDF1BytesGenerator extends BaseKDFBytesGenerator {
-
- /**
- * Construct a KDF1 byte generator.
- *
- * @param digest the digest to be used as the source of derived keys.
- */
- public KDF1BytesGenerator(org.bouncycastle.crypto.Digest digest) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/KDF2BytesGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/KDF2BytesGenerator.java
deleted file mode 100644
index 9cd8cbf5e..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/KDF2BytesGenerator.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- *
- * Generators for keys, key pairs and password based encryption algorithms.
- */
-package org.bouncycastle.crypto.generators;
-
-
-/**
- * KDF2 generator for derived keys and ivs as defined by IEEE P1363a/ISO 18033
- *
- * This implementation is based on IEEE P1363/ISO 18033.
- */
-public class KDF2BytesGenerator extends BaseKDFBytesGenerator {
-
- /**
- * Construct a KDF2 bytes generator. Generates key material
- * according to IEEE P1363 or ISO 18033 depending on the initialisation.
- *
- * @param digest the digest to be used as the source of derived keys. - */ - public KDF2BytesGenerator(org.bouncycastle.crypto.Digest digest) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/MGF1BytesGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/MGF1BytesGenerator.java deleted file mode 100644 index 7ff80671b..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/MGF1BytesGenerator.java +++ /dev/null @@ -1,36 +0,0 @@ -/** - * - * Generators for keys, key pairs and password based encryption algorithms. - */ -package org.bouncycastle.crypto.generators; - - -/** - * Generator for MGF1 as defined in PKCS 1v2 - */ -public class MGF1BytesGenerator implements org.bouncycastle.crypto.DerivationFunction { - - /** - * @param digest the digest to be used as the source of generated bytes - */ - public MGF1BytesGenerator(org.bouncycastle.crypto.Digest digest) { - } - - public void init(org.bouncycastle.crypto.DerivationParameters param) { - } - - /** - * return the underlying digest. - */ - public org.bouncycastle.crypto.Digest getDigest() { - } - - /** - * fill len bytes of the output buffer with bytes generated from - * the derivation function. - * - * @throws DataLengthException if the out buffer is too small. - */ - public int generateBytes(byte[] out, int outOff, int len) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/NaccacheSternKeyPairGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/NaccacheSternKeyPairGenerator.java deleted file mode 100644 index 94d5cee92..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/NaccacheSternKeyPairGenerator.java +++ /dev/null @@ -1,23 +0,0 @@ -/** - * - * Generators for keys, key pairs and password based encryption algorithms. - */ -package org.bouncycastle.crypto.generators; - - -/** - * Key generation parameters for NaccacheStern cipher. For details on this cipher, please see - * - * http://www.gemplus.com/smart/rd/publications/pdf/NS98pkcs.pdf - */ -public class NaccacheSternKeyPairGenerator implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator { - - public NaccacheSternKeyPairGenerator() { - } - - public void init(org.bouncycastle.crypto.KeyGenerationParameters param) { - } - - public org.bouncycastle.crypto.AsymmetricCipherKeyPair generateKeyPair() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/OpenSSLPBEParametersGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/OpenSSLPBEParametersGenerator.java deleted file mode 100644 index 6bfedc9c9..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/OpenSSLPBEParametersGenerator.java +++ /dev/null @@ -1,66 +0,0 @@ -/** - * - * Generators for keys, key pairs and password based encryption algorithms. - */ -package org.bouncycastle.crypto.generators; - - -/** - * Generator for PBE derived keys and ivs as usd by OpenSSL. - *
- * The scheme is a simple extension of PKCS 5 V2.0 Scheme 1 using MD5 with an - * iteration count of 1. - *
- */ -public class OpenSSLPBEParametersGenerator extends org.bouncycastle.crypto.PBEParametersGenerator { - - /** - * Construct a OpenSSL Parameters generator. - */ - public OpenSSLPBEParametersGenerator() { - } - - /** - * Initialise - note the iteration count for this algorithm is fixed at 1. - * - * @param password password to use. - * @param salt salt to use. - */ - public void init(byte[] password, byte[] salt) { - } - - /** - * Generate a key parameter derived from the password, salt, and iteration - * count we are currently initialised with. - * - * @param keySize the size of the key we want (in bits) - * @return a KeyParameter object. - * @exception IllegalArgumentException if the key length larger than the base hash size. - */ - public org.bouncycastle.crypto.CipherParameters generateDerivedParameters(int keySize) { - } - - /** - * Generate a key with initialisation vector parameter derived from - * the password, salt, and iteration count we are currently initialised - * with. - * - * @param keySize the size of the key we want (in bits) - * @param ivSize the size of the iv we want (in bits) - * @return a ParametersWithIV object. - * @exception IllegalArgumentException if keySize + ivSize is larger than the base hash size. - */ - public org.bouncycastle.crypto.CipherParameters generateDerivedParameters(int keySize, int ivSize) { - } - - /** - * Generate a key parameter for use with a MAC derived from the password, - * salt, and iteration count we are currently initialised with. - * - * @param keySize the size of the key we want (in bits) - * @return a KeyParameter object. - * @exception IllegalArgumentException if the key length larger than the base hash size. - */ - public org.bouncycastle.crypto.CipherParameters generateDerivedMacParameters(int keySize) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/PKCS12ParametersGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/PKCS12ParametersGenerator.java deleted file mode 100644 index 35d4525c2..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/PKCS12ParametersGenerator.java +++ /dev/null @@ -1,64 +0,0 @@ -/** - * - * Generators for keys, key pairs and password based encryption algorithms. - */ -package org.bouncycastle.crypto.generators; - - -/** - * Generator for PBE derived keys and ivs as defined by PKCS 12 V1.0. - *
- * The document this implementation is based on can be found at - * - * RSA's PKCS12 Page - */ -public class PKCS12ParametersGenerator extends org.bouncycastle.crypto.PBEParametersGenerator { - - public static final int KEY_MATERIAL = 1; - - public static final int IV_MATERIAL = 2; - - public static final int MAC_MATERIAL = 3; - - /** - * Construct a PKCS 12 Parameters generator. This constructor will - * accept any digest which also implements ExtendedDigest. - * - * @param digest the digest to be used as the source of derived keys. - * @exception IllegalArgumentException if an unknown digest is passed in. - */ - public PKCS12ParametersGenerator(org.bouncycastle.crypto.Digest digest) { - } - - /** - * Generate a key parameter derived from the password, salt, and iteration - * count we are currently initialised with. - * - * @param keySize the size of the key we want (in bits) - * @return a KeyParameter object. - */ - public org.bouncycastle.crypto.CipherParameters generateDerivedParameters(int keySize) { - } - - /** - * Generate a key with initialisation vector parameter derived from - * the password, salt, and iteration count we are currently initialised - * with. - * - * @param keySize the size of the key we want (in bits) - * @param ivSize the size of the iv we want (in bits) - * @return a ParametersWithIV object. - */ - public org.bouncycastle.crypto.CipherParameters generateDerivedParameters(int keySize, int ivSize) { - } - - /** - * Generate a key parameter for use with a MAC derived from the password, - * salt, and iteration count we are currently initialised with. - * - * @param keySize the size of the key we want (in bits) - * @return a KeyParameter object. - */ - public org.bouncycastle.crypto.CipherParameters generateDerivedMacParameters(int keySize) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/PKCS5S1ParametersGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/PKCS5S1ParametersGenerator.java deleted file mode 100644 index 19f53fd01..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/PKCS5S1ParametersGenerator.java +++ /dev/null @@ -1,61 +0,0 @@ -/** - * - * Generators for keys, key pairs and password based encryption algorithms. - */ -package org.bouncycastle.crypto.generators; - - -/** - * Generator for PBE derived keys and ivs as defined by PKCS 5 V2.0 Scheme 1. - * Note this generator is limited to the size of the hash produced by the - * digest used to drive it. - *
- * The document this implementation is based on can be found at - * - * RSA's PKCS5 Page - */ -public class PKCS5S1ParametersGenerator extends org.bouncycastle.crypto.PBEParametersGenerator { - - /** - * Construct a PKCS 5 Scheme 1 Parameters generator. - * - * @param digest the digest to be used as the source of derived keys. - */ - public PKCS5S1ParametersGenerator(org.bouncycastle.crypto.Digest digest) { - } - - /** - * Generate a key parameter derived from the password, salt, and iteration - * count we are currently initialised with. - * - * @param keySize the size of the key we want (in bits) - * @return a KeyParameter object. - * @exception IllegalArgumentException if the key length larger than the base hash size. - */ - public org.bouncycastle.crypto.CipherParameters generateDerivedParameters(int keySize) { - } - - /** - * Generate a key with initialisation vector parameter derived from - * the password, salt, and iteration count we are currently initialised - * with. - * - * @param keySize the size of the key we want (in bits) - * @param ivSize the size of the iv we want (in bits) - * @return a ParametersWithIV object. - * @exception IllegalArgumentException if keySize + ivSize is larger than the base hash size. - */ - public org.bouncycastle.crypto.CipherParameters generateDerivedParameters(int keySize, int ivSize) { - } - - /** - * Generate a key parameter for use with a MAC derived from the password, - * salt, and iteration count we are currently initialised with. - * - * @param keySize the size of the key we want (in bits) - * @return a KeyParameter object. - * @exception IllegalArgumentException if the key length larger than the base hash size. - */ - public org.bouncycastle.crypto.CipherParameters generateDerivedMacParameters(int keySize) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/PKCS5S2ParametersGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/PKCS5S2ParametersGenerator.java deleted file mode 100644 index b5b27ba31..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/PKCS5S2ParametersGenerator.java +++ /dev/null @@ -1,58 +0,0 @@ -/** - * - * Generators for keys, key pairs and password based encryption algorithms. - */ -package org.bouncycastle.crypto.generators; - - -/** - * Generator for PBE derived keys and ivs as defined by PKCS 5 V2.0 Scheme 2. - * This generator uses a SHA-1 HMac as the calculation function. - *
- * The document this implementation is based on can be found at - * - * RSA's PKCS5 Page - */ -public class PKCS5S2ParametersGenerator extends org.bouncycastle.crypto.PBEParametersGenerator { - - /** - * construct a PKCS5 Scheme 2 Parameters generator. - */ - public PKCS5S2ParametersGenerator() { - } - - public PKCS5S2ParametersGenerator(org.bouncycastle.crypto.Digest digest) { - } - - /** - * Generate a key parameter derived from the password, salt, and iteration - * count we are currently initialised with. - * - * @param keySize the size of the key we want (in bits) - * @return a KeyParameter object. - */ - public org.bouncycastle.crypto.CipherParameters generateDerivedParameters(int keySize) { - } - - /** - * Generate a key with initialisation vector parameter derived from - * the password, salt, and iteration count we are currently initialised - * with. - * - * @param keySize the size of the key we want (in bits) - * @param ivSize the size of the iv we want (in bits) - * @return a ParametersWithIV object. - */ - public org.bouncycastle.crypto.CipherParameters generateDerivedParameters(int keySize, int ivSize) { - } - - /** - * Generate a key parameter for use with a MAC derived from the password, - * salt, and iteration count we are currently initialised with. - * - * @param keySize the size of the key we want (in bits) - * @return a KeyParameter object. - */ - public org.bouncycastle.crypto.CipherParameters generateDerivedMacParameters(int keySize) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/RSABlindingFactorGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/RSABlindingFactorGenerator.java deleted file mode 100644 index c7a44514f..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/RSABlindingFactorGenerator.java +++ /dev/null @@ -1,33 +0,0 @@ -/** - * - * Generators for keys, key pairs and password based encryption algorithms. - */ -package org.bouncycastle.crypto.generators; - - -/** - * Generate a random factor suitable for use with RSA blind signatures - * as outlined in Chaum's blinding and unblinding as outlined in - * "Handbook of Applied Cryptography", page 475. - */ -public class RSABlindingFactorGenerator { - - public RSABlindingFactorGenerator() { - } - - /** - * Initialise the factor generator - * - * @param param the necessary RSA key parameters. - */ - public void init(org.bouncycastle.crypto.CipherParameters param) { - } - - /** - * Generate a suitable blind factor for the public key the generator was initialised with. - * - * @return a random blind factor - */ - public javabc.BigInteger generateBlindingFactor() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/RSAKeyPairGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/RSAKeyPairGenerator.java deleted file mode 100644 index 5ae78b7ff..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/RSAKeyPairGenerator.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * - * Generators for keys, key pairs and password based encryption algorithms. - */ -package org.bouncycastle.crypto.generators; - - -/** - * an RSA key pair generator. - */ -public class RSAKeyPairGenerator implements org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator { - - public RSAKeyPairGenerator() { - } - - public void init(org.bouncycastle.crypto.KeyGenerationParameters param) { - } - - public org.bouncycastle.crypto.AsymmetricCipherKeyPair generateKeyPair() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/SCrypt.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/SCrypt.java deleted file mode 100644 index 2d961bbe8..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/generators/SCrypt.java +++ /dev/null @@ -1,15 +0,0 @@ -/** - * - * Generators for keys, key pairs and password based encryption algorithms. - */ -package org.bouncycastle.crypto.generators; - - -public class SCrypt { - - public SCrypt() { - } - - public static byte[] generate(byte[] P, byte[] S, int N, int r, int p, int dkLen) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/io/CipherInputStream.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/io/CipherInputStream.java deleted file mode 100644 index 9034231f2..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/io/CipherInputStream.java +++ /dev/null @@ -1,51 +0,0 @@ -/** - * - * Classes for doing "enhanced" I/O with Digests and MACs. - */ -package org.bouncycastle.crypto.io; - - -/** - * A CipherInputStream is composed of an InputStream and a BufferedBlockCipher so - * that read() methods return data that are read in from the - * underlying InputStream but have been additionally processed by the - * Cipher. The Cipher must be fully initialized before being used by - * a CipherInputStream. - *
- * For example, if the Cipher is initialized for decryption, the
- * CipherInputStream will attempt to read in data and decrypt them,
- * before returning the decrypted data.
- */
-public class CipherInputStream extends javabc.FilterInputStream {
-
- /**
- * Constructs a CipherInputStream from an InputStream and a
- * BufferedBlockCipher.
- */
- public CipherInputStream(java.io.InputStream is, org.bouncycastle.crypto.BufferedBlockCipher cipher) {
- }
-
- public CipherInputStream(java.io.InputStream is, org.bouncycastle.crypto.StreamCipher cipher) {
- }
-
- public int read() {
- }
-
- public int read(byte[] b) {
- }
-
- public int read(byte[] b, int off, int len) {
- }
-
- public long skip(long n) {
- }
-
- public int available() {
- }
-
- public void close() {
- }
-
- public boolean markSupported() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/io/CipherOutputStream.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/io/CipherOutputStream.java
deleted file mode 100644
index 7f76a6125..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/io/CipherOutputStream.java
+++ /dev/null
@@ -1,95 +0,0 @@
-/**
- *
- * Classes for doing "enhanced" I/O with Digests and MACs.
- */
-package org.bouncycastle.crypto.io;
-
-
-public class CipherOutputStream extends javabc.FilterOutputStream {
-
- /**
- * Constructs a CipherOutputStream from an OutputStream and a
- * BufferedBlockCipher.
- */
- public CipherOutputStream(java.io.OutputStream os, org.bouncycastle.crypto.BufferedBlockCipher cipher) {
- }
-
- /**
- * Constructs a CipherOutputStream from an OutputStream and a
- * BufferedBlockCipher.
- */
- public CipherOutputStream(java.io.OutputStream os, org.bouncycastle.crypto.StreamCipher cipher) {
- }
-
- /**
- * Writes the specified byte to this output stream.
- *
- * @param b the byte
.
- * @exception java.io.IOException if an I/O error occurs.
- */
- public void write(int b) {
- }
-
- /**
- * Writes b.length
bytes from the specified byte array
- * to this output stream.
- *
- * The write
method of
- * CipherOutputStream
calls the write
- * method of three arguments with the three arguments
- * b
, 0
, and b.length
.
- *
- * @param b the data.
- * @exception java.io.IOException if an I/O error occurs.
- * @see #write(byte[], int, int)
- */
- public void write(byte[] b) {
- }
-
- /**
- * Writes len
bytes from the specified byte array
- * starting at offset off
to this output stream.
- *
- * @param b the data.
- * @param off the start offset in the data.
- * @param len the number of bytes to write.
- * @exception java.io.IOException if an I/O error occurs.
- */
- public void write(byte[] b, int off, int len) {
- }
-
- /**
- * Flushes this output stream by forcing any buffered output bytes
- * that have already been processed by the encapsulated cipher object
- * to be written out.
- *
- *
- * Any bytes buffered by the encapsulated cipher
- * and waiting to be processed by it will not be written out. For example,
- * if the encapsulated cipher is a block cipher, and the total number of
- * bytes written using one of the write
methods is less than
- * the cipher's block size, no bytes will be written out.
- *
- * @exception java.io.IOException if an I/O error occurs.
- */
- public void flush() {
- }
-
- /**
- * Closes this output stream and releases any system resources
- * associated with this stream.
- *
- * This method invokes the doFinal
method of the encapsulated
- * cipher object, which causes any bytes buffered by the encapsulated
- * cipher to be processed. The result is written out by calling the
- * flush
method of this output stream.
- *
- * This method resets the encapsulated cipher object to its initial state
- * and calls the close
method of the underlying output
- * stream.
- *
- * @exception java.io.IOException if an I/O error occurs.
- */
- public void close() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/io/DigestInputStream.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/io/DigestInputStream.java
deleted file mode 100644
index 23bb43695..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/io/DigestInputStream.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- *
- * Classes for doing "enhanced" I/O with Digests and MACs.
- */
-package org.bouncycastle.crypto.io;
-
-
-public class DigestInputStream extends javabc.FilterInputStream {
-
- protected org.bouncycastle.crypto.Digest digest;
-
- public DigestInputStream(java.io.InputStream stream, org.bouncycastle.crypto.Digest digest) {
- }
-
- public int read() {
- }
-
- public int read(byte[] b, int off, int len) {
- }
-
- public org.bouncycastle.crypto.Digest getDigest() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/io/DigestOutputStream.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/io/DigestOutputStream.java
deleted file mode 100644
index 97995c090..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/io/DigestOutputStream.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- *
- * Classes for doing "enhanced" I/O with Digests and MACs.
- */
-package org.bouncycastle.crypto.io;
-
-
-public class DigestOutputStream extends java.io.OutputStream {
-
- protected org.bouncycastle.crypto.Digest digest;
-
- public DigestOutputStream(org.bouncycastle.crypto.Digest Digest) {
- }
-
- public void write(int b) {
- }
-
- public void write(byte[] b, int off, int len) {
- }
-
- public byte[] getDigest() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/io/MacInputStream.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/io/MacInputStream.java
deleted file mode 100644
index 18f9af4b8..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/io/MacInputStream.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- *
- * Classes for doing "enhanced" I/O with Digests and MACs.
- */
-package org.bouncycastle.crypto.io;
-
-
-public class MacInputStream extends javabc.FilterInputStream {
-
- protected org.bouncycastle.crypto.Mac mac;
-
- public MacInputStream(java.io.InputStream stream, org.bouncycastle.crypto.Mac mac) {
- }
-
- public int read() {
- }
-
- public int read(byte[] b, int off, int len) {
- }
-
- public org.bouncycastle.crypto.Mac getMac() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/io/MacOutputStream.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/io/MacOutputStream.java
deleted file mode 100644
index f46e63046..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/io/MacOutputStream.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- *
- * Classes for doing "enhanced" I/O with Digests and MACs.
- */
-package org.bouncycastle.crypto.io;
-
-
-public class MacOutputStream extends java.io.OutputStream {
-
- protected org.bouncycastle.crypto.Mac mac;
-
- public MacOutputStream(org.bouncycastle.crypto.Mac mac) {
- }
-
- public void write(int b) {
- }
-
- public void write(byte[] b, int off, int len) {
- }
-
- public byte[] getMac() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/io/SignerInputStream.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/io/SignerInputStream.java
deleted file mode 100644
index 524c41579..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/io/SignerInputStream.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- *
- * Classes for doing "enhanced" I/O with Digests and MACs.
- */
-package org.bouncycastle.crypto.io;
-
-
-public class SignerInputStream extends javabc.FilterInputStream {
-
- protected org.bouncycastle.crypto.Signer signer;
-
- public SignerInputStream(java.io.InputStream stream, org.bouncycastle.crypto.Signer signer) {
- }
-
- public int read() {
- }
-
- public int read(byte[] b, int off, int len) {
- }
-
- public org.bouncycastle.crypto.Signer getSigner() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/io/SignerOutputStream.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/io/SignerOutputStream.java
deleted file mode 100644
index c9fab396a..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/io/SignerOutputStream.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- *
- * Classes for doing "enhanced" I/O with Digests and MACs.
- */
-package org.bouncycastle.crypto.io;
-
-
-public class SignerOutputStream extends java.io.OutputStream {
-
- protected org.bouncycastle.crypto.Signer signer;
-
- public SignerOutputStream(org.bouncycastle.crypto.Signer Signer) {
- }
-
- public void write(int b) {
- }
-
- public void write(byte[] b, int off, int len) {
- }
-
- public org.bouncycastle.crypto.Signer getSigner() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/BlockCipherMac.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/BlockCipherMac.java
deleted file mode 100644
index b6fa818c4..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/BlockCipherMac.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/**
- *
- * Classes for creating MACs and HMACs.
- */
-package org.bouncycastle.crypto.macs;
-
-
-public class BlockCipherMac implements org.bouncycastle.crypto.Mac {
-
- /**
- * create a standard MAC based on a block cipher. This will produce an
- * authentication code half the length of the block size of the cipher.
- *
- * @param cipher the cipher to be used as the basis of the MAC generation.
- * @deprecated use CBCBlockCipherMac
- */
- public BlockCipherMac(org.bouncycastle.crypto.BlockCipher cipher) {
- }
-
- /**
- * create a standard MAC based on a block cipher with the size of the
- * MAC been given in bits.
- *
- * Note: the size of the MAC must be at least 16 bits (FIPS Publication 113), - * and in general should be less than the size of the block cipher as it reduces - * the chance of an exhaustive attack (see Handbook of Applied Cryptography). - * - * @param cipher the cipher to be used as the basis of the MAC generation. - * @param macSizeInBits the size of the MAC in bits, must be a multiple of 8. - * @deprecated use CBCBlockCipherMac - */ - public BlockCipherMac(org.bouncycastle.crypto.BlockCipher cipher, int macSizeInBits) { - } - - public String getAlgorithmName() { - } - - public void init(org.bouncycastle.crypto.CipherParameters params) { - } - - public int getMacSize() { - } - - public void update(byte in) { - } - - public void update(byte[] in, int inOff, int len) { - } - - public int doFinal(byte[] out, int outOff) { - } - - /** - * Reset the mac generator. - */ - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/CBCBlockCipherMac.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/CBCBlockCipherMac.java deleted file mode 100644 index d4e1fa5de..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/CBCBlockCipherMac.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - * - * Classes for creating MACs and HMACs. - */ -package org.bouncycastle.crypto.macs; - - -/** - * standard CBC Block Cipher MAC - if no padding is specified the default of - * pad of zeroes is used. - */ -public class CBCBlockCipherMac implements org.bouncycastle.crypto.Mac { - - /** - * create a standard MAC based on a CBC block cipher. This will produce an - * authentication code half the length of the block size of the cipher. - * - * @param cipher the cipher to be used as the basis of the MAC generation. - */ - public CBCBlockCipherMac(org.bouncycastle.crypto.BlockCipher cipher) { - } - - /** - * create a standard MAC based on a CBC block cipher. This will produce an - * authentication code half the length of the block size of the cipher. - * - * @param cipher the cipher to be used as the basis of the MAC generation. - * @param padding the padding to be used to complete the last block. - */ - public CBCBlockCipherMac(org.bouncycastle.crypto.BlockCipher cipher, org.bouncycastle.crypto.paddings.BlockCipherPadding padding) { - } - - /** - * create a standard MAC based on a block cipher with the size of the - * MAC been given in bits. This class uses CBC mode as the basis for the - * MAC generation. - *
- * Note: the size of the MAC must be at least 24 bits (FIPS Publication 81), - * or 16 bits if being used as a data authenticator (FIPS Publication 113), - * and in general should be less than the size of the block cipher as it reduces - * the chance of an exhaustive attack (see Handbook of Applied Cryptography). - * - * @param cipher the cipher to be used as the basis of the MAC generation. - * @param macSizeInBits the size of the MAC in bits, must be a multiple of 8. - */ - public CBCBlockCipherMac(org.bouncycastle.crypto.BlockCipher cipher, int macSizeInBits) { - } - - /** - * create a standard MAC based on a block cipher with the size of the - * MAC been given in bits. This class uses CBC mode as the basis for the - * MAC generation. - *
- * Note: the size of the MAC must be at least 24 bits (FIPS Publication 81), - * or 16 bits if being used as a data authenticator (FIPS Publication 113), - * and in general should be less than the size of the block cipher as it reduces - * the chance of an exhaustive attack (see Handbook of Applied Cryptography). - * - * @param cipher the cipher to be used as the basis of the MAC generation. - * @param macSizeInBits the size of the MAC in bits, must be a multiple of 8. - * @param padding the padding to be used to complete the last block. - */ - public CBCBlockCipherMac(org.bouncycastle.crypto.BlockCipher cipher, int macSizeInBits, org.bouncycastle.crypto.paddings.BlockCipherPadding padding) { - } - - public String getAlgorithmName() { - } - - public void init(org.bouncycastle.crypto.CipherParameters params) { - } - - public int getMacSize() { - } - - public void update(byte in) { - } - - public void update(byte[] in, int inOff, int len) { - } - - public int doFinal(byte[] out, int outOff) { - } - - /** - * Reset the mac generator. - */ - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/CFBBlockCipherMac.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/CFBBlockCipherMac.java deleted file mode 100644 index fec83b438..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/CFBBlockCipherMac.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - * - * Classes for creating MACs and HMACs. - */ -package org.bouncycastle.crypto.macs; - - -public class CFBBlockCipherMac implements org.bouncycastle.crypto.Mac { - - /** - * create a standard MAC based on a CFB block cipher. This will produce an - * authentication code half the length of the block size of the cipher, with - * the CFB mode set to 8 bits. - * - * @param cipher the cipher to be used as the basis of the MAC generation. - */ - public CFBBlockCipherMac(org.bouncycastle.crypto.BlockCipher cipher) { - } - - /** - * create a standard MAC based on a CFB block cipher. This will produce an - * authentication code half the length of the block size of the cipher, with - * the CFB mode set to 8 bits. - * - * @param cipher the cipher to be used as the basis of the MAC generation. - * @param padding the padding to be used. - */ - public CFBBlockCipherMac(org.bouncycastle.crypto.BlockCipher cipher, org.bouncycastle.crypto.paddings.BlockCipherPadding padding) { - } - - /** - * create a standard MAC based on a block cipher with the size of the - * MAC been given in bits. This class uses CFB mode as the basis for the - * MAC generation. - *
- * Note: the size of the MAC must be at least 24 bits (FIPS Publication 81), - * or 16 bits if being used as a data authenticator (FIPS Publication 113), - * and in general should be less than the size of the block cipher as it reduces - * the chance of an exhaustive attack (see Handbook of Applied Cryptography). - * - * @param cipher the cipher to be used as the basis of the MAC generation. - * @param cfbBitSize the size of an output block produced by the CFB mode. - * @param macSizeInBits the size of the MAC in bits, must be a multiple of 8. - */ - public CFBBlockCipherMac(org.bouncycastle.crypto.BlockCipher cipher, int cfbBitSize, int macSizeInBits) { - } - - /** - * create a standard MAC based on a block cipher with the size of the - * MAC been given in bits. This class uses CFB mode as the basis for the - * MAC generation. - *
- * Note: the size of the MAC must be at least 24 bits (FIPS Publication 81), - * or 16 bits if being used as a data authenticator (FIPS Publication 113), - * and in general should be less than the size of the block cipher as it reduces - * the chance of an exhaustive attack (see Handbook of Applied Cryptography). - * - * @param cipher the cipher to be used as the basis of the MAC generation. - * @param cfbBitSize the size of an output block produced by the CFB mode. - * @param macSizeInBits the size of the MAC in bits, must be a multiple of 8. - * @param padding a padding to be used. - */ - public CFBBlockCipherMac(org.bouncycastle.crypto.BlockCipher cipher, int cfbBitSize, int macSizeInBits, org.bouncycastle.crypto.paddings.BlockCipherPadding padding) { - } - - public String getAlgorithmName() { - } - - public void init(org.bouncycastle.crypto.CipherParameters params) { - } - - public int getMacSize() { - } - - public void update(byte in) { - } - - public void update(byte[] in, int inOff, int len) { - } - - public int doFinal(byte[] out, int outOff) { - } - - /** - * Reset the mac generator. - */ - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/CMac.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/CMac.java deleted file mode 100644 index bf533bc8f..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/CMac.java +++ /dev/null @@ -1,77 +0,0 @@ -/** - * - * Classes for creating MACs and HMACs. - */ -package org.bouncycastle.crypto.macs; - - -/** - * CMAC - as specified at www.nuee.nagoya-u.ac.jp/labs/tiwata/omac/omac.html - *
- * CMAC is analogous to OMAC1 - see also en.wikipedia.org/wiki/CMAC - *
- * CMAC is a NIST recomendation - see - * csrc.nist.gov/CryptoToolkit/modes/800-38_Series_Publications/SP800-38B.pdf - *
- * CMAC/OMAC1 is a blockcipher-based message authentication code designed and - * analyzed by Tetsu Iwata and Kaoru Kurosawa. - *
- * CMAC/OMAC1 is a simple variant of the CBC MAC (Cipher Block Chaining Message - * Authentication Code). OMAC stands for One-Key CBC MAC. - *
- * It supports 128- or 64-bits block ciphers, with any key size, and returns - * a MAC with dimension less or equal to the block size of the underlying - * cipher. - *
- */ -public class CMac implements org.bouncycastle.crypto.Mac { - - /** - * create a standard MAC based on a CBC block cipher (64 or 128 bit block). - * This will produce an authentication code the length of the block size - * of the cipher. - * - * @param cipher the cipher to be used as the basis of the MAC generation. - */ - public CMac(org.bouncycastle.crypto.BlockCipher cipher) { - } - - /** - * create a standard MAC based on a block cipher with the size of the - * MAC been given in bits. - * - * Note: the size of the MAC must be at least 24 bits (FIPS Publication 81), - * or 16 bits if being used as a data authenticator (FIPS Publication 113), - * and in general should be less than the size of the block cipher as it reduces - * the chance of an exhaustive attack (see Handbook of Applied Cryptography). - * - * @param cipher the cipher to be used as the basis of the MAC generation. - * @param macSizeInBits the size of the MAC in bits, must be a multiple of 8 and <= 128. - */ - public CMac(org.bouncycastle.crypto.BlockCipher cipher, int macSizeInBits) { - } - - public String getAlgorithmName() { - } - - public void init(org.bouncycastle.crypto.CipherParameters params) { - } - - public int getMacSize() { - } - - public void update(byte in) { - } - - public void update(byte[] in, int inOff, int len) { - } - - public int doFinal(byte[] out, int outOff) { - } - - /** - * Reset the mac generator. - */ - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/GOST28147Mac.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/GOST28147Mac.java deleted file mode 100644 index 99270763c..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/GOST28147Mac.java +++ /dev/null @@ -1,36 +0,0 @@ -/** - * - * Classes for creating MACs and HMACs. - */ -package org.bouncycastle.crypto.macs; - - -/** - * implementation of GOST 28147-89 MAC - */ -public class GOST28147Mac implements org.bouncycastle.crypto.Mac { - - public GOST28147Mac() { - } - - public void init(org.bouncycastle.crypto.CipherParameters params) { - } - - public String getAlgorithmName() { - } - - public int getMacSize() { - } - - public void update(byte in) { - } - - public void update(byte[] in, int inOff, int len) { - } - - public int doFinal(byte[] out, int outOff) { - } - - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/HMac.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/HMac.java deleted file mode 100644 index fa13f842a..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/HMac.java +++ /dev/null @@ -1,50 +0,0 @@ -/** - * - * Classes for creating MACs and HMACs. - */ -package org.bouncycastle.crypto.macs; - - -/** - * HMAC implementation based on RFC2104 - * - * H(K XOR opad, H(K XOR ipad, text)) - */ -public class HMac implements org.bouncycastle.crypto.Mac { - - /** - * Base constructor for one of the standard digest algorithms that the - * byteLength of the algorithm is know for. - * - * @param digest the digest. - */ - public HMac(org.bouncycastle.crypto.Digest digest) { - } - - public String getAlgorithmName() { - } - - public org.bouncycastle.crypto.Digest getUnderlyingDigest() { - } - - public void init(org.bouncycastle.crypto.CipherParameters params) { - } - - public int getMacSize() { - } - - public void update(byte in) { - } - - public void update(byte[] in, int inOff, int len) { - } - - public int doFinal(byte[] out, int outOff) { - } - - /** - * Reset the mac generator. - */ - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/ISO9797Alg3Mac.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/ISO9797Alg3Mac.java deleted file mode 100644 index 8305d92b0..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/ISO9797Alg3Mac.java +++ /dev/null @@ -1,93 +0,0 @@ -/** - * - * Classes for creating MACs and HMACs. - */ -package org.bouncycastle.crypto.macs; - - -/** - * DES based CBC Block Cipher MAC according to ISO9797, algorithm 3 (ANSI X9.19 Retail MAC) - * - * This could as well be derived from CBCBlockCipherMac, but then the property mac in the base - * class must be changed to protected - */ -public class ISO9797Alg3Mac implements org.bouncycastle.crypto.Mac { - - /** - * create a Retail-MAC based on a CBC block cipher. This will produce an - * authentication code of the length of the block size of the cipher. - * - * @param cipher the cipher to be used as the basis of the MAC generation. This must - * be DESEngine. - */ - public ISO9797Alg3Mac(org.bouncycastle.crypto.BlockCipher cipher) { - } - - /** - * create a Retail-MAC based on a CBC block cipher. This will produce an - * authentication code of the length of the block size of the cipher. - * - * @param cipher the cipher to be used as the basis of the MAC generation. - * @param padding the padding to be used to complete the last block. - */ - public ISO9797Alg3Mac(org.bouncycastle.crypto.BlockCipher cipher, org.bouncycastle.crypto.paddings.BlockCipherPadding padding) { - } - - /** - * create a Retail-MAC based on a block cipher with the size of the - * MAC been given in bits. This class uses single DES CBC mode as the basis for the - * MAC generation. - *- * Note: the size of the MAC must be at least 24 bits (FIPS Publication 81), - * or 16 bits if being used as a data authenticator (FIPS Publication 113), - * and in general should be less than the size of the block cipher as it reduces - * the chance of an exhaustive attack (see Handbook of Applied Cryptography). - * - * @param cipher the cipher to be used as the basis of the MAC generation. - * @param macSizeInBits the size of the MAC in bits, must be a multiple of 8. - */ - public ISO9797Alg3Mac(org.bouncycastle.crypto.BlockCipher cipher, int macSizeInBits) { - } - - /** - * create a standard MAC based on a block cipher with the size of the - * MAC been given in bits. This class uses single DES CBC mode as the basis for the - * MAC generation. The final block is decrypted and then encrypted using the - * middle and right part of the key. - *
- * Note: the size of the MAC must be at least 24 bits (FIPS Publication 81), - * or 16 bits if being used as a data authenticator (FIPS Publication 113), - * and in general should be less than the size of the block cipher as it reduces - * the chance of an exhaustive attack (see Handbook of Applied Cryptography). - * - * @param cipher the cipher to be used as the basis of the MAC generation. - * @param macSizeInBits the size of the MAC in bits, must be a multiple of 8. - * @param padding the padding to be used to complete the last block. - */ - public ISO9797Alg3Mac(org.bouncycastle.crypto.BlockCipher cipher, int macSizeInBits, org.bouncycastle.crypto.paddings.BlockCipherPadding padding) { - } - - public String getAlgorithmName() { - } - - public void init(org.bouncycastle.crypto.CipherParameters params) { - } - - public int getMacSize() { - } - - public void update(byte in) { - } - - public void update(byte[] in, int inOff, int len) { - } - - public int doFinal(byte[] out, int outOff) { - } - - /** - * Reset the mac generator. - */ - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/OldHMac.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/OldHMac.java deleted file mode 100644 index eca199a7b..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/OldHMac.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * - * Classes for creating MACs and HMACs. - */ -package org.bouncycastle.crypto.macs; - - -/** - * HMAC implementation based on RFC2104 - * - * H(K XOR opad, H(K XOR ipad, text)) - */ -public class OldHMac implements org.bouncycastle.crypto.Mac { - - /** - * @deprecated uses incorrect pad for SHA-512 and SHA-384 use HMac. - */ - public OldHMac(org.bouncycastle.crypto.Digest digest) { - } - - public String getAlgorithmName() { - } - - public org.bouncycastle.crypto.Digest getUnderlyingDigest() { - } - - public void init(org.bouncycastle.crypto.CipherParameters params) { - } - - public int getMacSize() { - } - - public void update(byte in) { - } - - public void update(byte[] in, int inOff, int len) { - } - - public int doFinal(byte[] out, int outOff) { - } - - /** - * Reset the mac generator. - */ - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/VMPCMac.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/VMPCMac.java deleted file mode 100644 index 522788957..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/macs/VMPCMac.java +++ /dev/null @@ -1,33 +0,0 @@ -/** - * - * Classes for creating MACs and HMACs. - */ -package org.bouncycastle.crypto.macs; - - -public class VMPCMac implements org.bouncycastle.crypto.Mac { - - public VMPCMac() { - } - - public int doFinal(byte[] out, int outOff) { - } - - public String getAlgorithmName() { - } - - public int getMacSize() { - } - - public void init(org.bouncycastle.crypto.CipherParameters params) { - } - - public void reset() { - } - - public void update(byte in) { - } - - public void update(byte[] in, int inOff, int len) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/AEADBlockCipher.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/AEADBlockCipher.java deleted file mode 100644 index ff9a6ef51..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/AEADBlockCipher.java +++ /dev/null @@ -1,104 +0,0 @@ -/** - * - * Modes for symmetric ciphers. - */ -package org.bouncycastle.crypto.modes; - - -/** - * A block cipher mode that includes authenticated encryption with a streaming mode and optional associated data. - * @see org.bouncycastle.crypto.params.AEADParameters - */ -public interface AEADBlockCipher { - - /** - * initialise the underlying cipher. Parameter can either be an AEADParameters or a ParametersWithIV object. - * - * @param forEncryption true if we are setting up for encryption, false otherwise. - * @param params the necessary parameters for the underlying cipher to be initialised. - * @exception IllegalArgumentException if the params argument is inappropriate. - */ - public void init(boolean forEncryption, org.bouncycastle.crypto.CipherParameters params); - - /** - * Return the name of the algorithm. - * - * @return the algorithm name. - */ - public String getAlgorithmName(); - - /** - * return the cipher this object wraps. - * - * @return the cipher this object wraps. - */ - public org.bouncycastle.crypto.BlockCipher getUnderlyingCipher(); - - /** - * encrypt/decrypt a single byte. - * - * @param in the byte to be processed. - * @param out the output buffer the processed byte goes into. - * @param outOff the offset into the output byte array the processed data starts at. - * @return the number of bytes written to out. - * @exception DataLengthException if the output buffer is too small. - */ - public int processByte(byte in, byte[] out, int outOff); - - /** - * process a block of bytes from in putting the result into out. - * - * @param in the input byte array. - * @param inOff the offset into the in array where the data to be processed starts. - * @param len the number of bytes to be processed. - * @param out the output buffer the processed bytes go into. - * @param outOff the offset into the output byte array the processed data starts at. - * @return the number of bytes written to out. - * @exception DataLengthException if the output buffer is too small. - */ - public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff); - - /** - * Finish the operation either appending or verifying the MAC at the end of the data. - * - * @param out space for any resulting output data. - * @param outOff offset into out to start copying the data at. - * @return number of bytes written into out. - * @throws IllegalStateException if the cipher is in an inappropriate state. - * @throws org.bouncycastle.crypto.InvalidCipherTextException if the MAC fails to match. - */ - public int doFinal(byte[] out, int outOff); - - /** - * Return the value of the MAC associated with the last stream processed. - * - * @return MAC for plaintext data. - */ - public byte[] getMac(); - - /** - * return the size of the output buffer required for a processBytes - * an input of len bytes. - * - * @param len the length of the input. - * @return the space required to accommodate a call to processBytes - * with len bytes of input. - */ - public int getUpdateOutputSize(int len); - - /** - * return the size of the output buffer required for a processBytes plus a - * doFinal with an input of len bytes. - * - * @param len the length of the input. - * @return the space required to accommodate a call to processBytes and doFinal - * with len bytes of input. - */ - public int getOutputSize(int len); - - /** - * Reset the cipher. After resetting the cipher is in the same state - * as it was after the last init (if there was one). - */ - public void reset(); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/CBCBlockCipher.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/CBCBlockCipher.java deleted file mode 100644 index 516b23d95..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/CBCBlockCipher.java +++ /dev/null @@ -1,80 +0,0 @@ -/** - * - * Modes for symmetric ciphers. - */ -package org.bouncycastle.crypto.modes; - - -/** - * implements Cipher-Block-Chaining (CBC) mode on top of a simple cipher. - */ -public class CBCBlockCipher implements org.bouncycastle.crypto.BlockCipher { - - /** - * Basic constructor. - * - * @param cipher the block cipher to be used as the basis of chaining. - */ - public CBCBlockCipher(org.bouncycastle.crypto.BlockCipher cipher) { - } - - /** - * return the underlying block cipher that we are wrapping. - * - * @return the underlying block cipher that we are wrapping. - */ - public org.bouncycastle.crypto.BlockCipher getUnderlyingCipher() { - } - - /** - * Initialise the cipher and, possibly, the initialisation vector (IV). - * If an IV isn't passed as part of the parameter, the IV will be all zeros. - * - * @param encrypting if true the cipher is initialised for - * encryption, if false for decryption. - * @param params the key and other data required by the cipher. - * @exception IllegalArgumentException if the params argument is - * inappropriate. - */ - public void init(boolean encrypting, org.bouncycastle.crypto.CipherParameters params) { - } - - /** - * return the algorithm name and mode. - * - * @return the name of the underlying algorithm followed by "/CBC". - */ - public String getAlgorithmName() { - } - - /** - * return the block size of the underlying cipher. - * - * @return the block size of the underlying cipher. - */ - public int getBlockSize() { - } - - /** - * Process one block of input from the array in and write it to - * the out array. - * - * @param in the array containing the input data. - * @param inOff offset into the in array the data starts at. - * @param out the array the output data will be copied into. - * @param outOff the offset into the out array the output will start at. - * @exception DataLengthException if there isn't enough data in in, or - * space in out. - * @exception IllegalStateException if the cipher isn't initialised. - * @return the number of bytes processed and produced. - */ - public int processBlock(byte[] in, int inOff, byte[] out, int outOff) { - } - - /** - * reset the chaining vector back to the IV and reset the underlying - * cipher. - */ - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/CCMBlockCipher.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/CCMBlockCipher.java deleted file mode 100644 index 2a53916b9..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/CCMBlockCipher.java +++ /dev/null @@ -1,67 +0,0 @@ -/** - * - * Modes for symmetric ciphers. - */ -package org.bouncycastle.crypto.modes; - - -/** - * Implements the Counter with Cipher Block Chaining mode (CCM) detailed in - * NIST Special Publication 800-38C. - *
- * Note: this mode is a packet mode - it needs all the data up front. - */ -public class CCMBlockCipher implements AEADBlockCipher { - - /** - * Basic constructor. - * - * @param c the block cipher to be used. - */ - public CCMBlockCipher(org.bouncycastle.crypto.BlockCipher c) { - } - - /** - * return the underlying block cipher that we are wrapping. - * - * @return the underlying block cipher that we are wrapping. - */ - public org.bouncycastle.crypto.BlockCipher getUnderlyingCipher() { - } - - public void init(boolean forEncryption, org.bouncycastle.crypto.CipherParameters params) { - } - - public String getAlgorithmName() { - } - - public int processByte(byte in, byte[] out, int outOff) { - } - - public int processBytes(byte[] in, int inOff, int inLen, byte[] out, int outOff) { - } - - public int doFinal(byte[] out, int outOff) { - } - - public void reset() { - } - - /** - * Returns a byte array containing the mac calculated as part of the - * last encrypt or decrypt operation. - * - * @return the last mac calculated. - */ - public byte[] getMac() { - } - - public int getUpdateOutputSize(int len) { - } - - public int getOutputSize(int len) { - } - - public byte[] processPacket(byte[] in, int inOff, int inLen) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/CFBBlockCipher.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/CFBBlockCipher.java deleted file mode 100644 index b2278298a..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/CFBBlockCipher.java +++ /dev/null @@ -1,114 +0,0 @@ -/** - * - * Modes for symmetric ciphers. - */ -package org.bouncycastle.crypto.modes; - - -/** - * implements a Cipher-FeedBack (CFB) mode on top of a simple cipher. - */ -public class CFBBlockCipher implements org.bouncycastle.crypto.BlockCipher { - - /** - * Basic constructor. - * - * @param cipher the block cipher to be used as the basis of the - * feedback mode. - * @param bitBlockSize the block size in bits (note: a multiple of 8) - */ - public CFBBlockCipher(org.bouncycastle.crypto.BlockCipher cipher, int bitBlockSize) { - } - - /** - * return the underlying block cipher that we are wrapping. - * - * @return the underlying block cipher that we are wrapping. - */ - public org.bouncycastle.crypto.BlockCipher getUnderlyingCipher() { - } - - /** - * Initialise the cipher and, possibly, the initialisation vector (IV). - * If an IV isn't passed as part of the parameter, the IV will be all zeros. - * An IV which is too short is handled in FIPS compliant fashion. - * - * @param encrypting if true the cipher is initialised for - * encryption, if false for decryption. - * @param params the key and other data required by the cipher. - * @exception IllegalArgumentException if the params argument is - * inappropriate. - */ - public void init(boolean encrypting, org.bouncycastle.crypto.CipherParameters params) { - } - - /** - * return the algorithm name and mode. - * - * @return the name of the underlying algorithm followed by "/CFB" - * and the block size in bits. - */ - public String getAlgorithmName() { - } - - /** - * return the block size we are operating at. - * - * @return the block size we are operating at (in bytes). - */ - public int getBlockSize() { - } - - /** - * Process one block of input from the array in and write it to - * the out array. - * - * @param in the array containing the input data. - * @param inOff offset into the in array the data starts at. - * @param out the array the output data will be copied into. - * @param outOff the offset into the out array the output will start at. - * @exception DataLengthException if there isn't enough data in in, or - * space in out. - * @exception IllegalStateException if the cipher isn't initialised. - * @return the number of bytes processed and produced. - */ - public int processBlock(byte[] in, int inOff, byte[] out, int outOff) { - } - - /** - * Do the appropriate processing for CFB mode encryption. - * - * @param in the array containing the data to be encrypted. - * @param inOff offset into the in array the data starts at. - * @param out the array the encrypted data will be copied into. - * @param outOff the offset into the out array the output will start at. - * @exception DataLengthException if there isn't enough data in in, or - * space in out. - * @exception IllegalStateException if the cipher isn't initialised. - * @return the number of bytes processed and produced. - */ - public int encryptBlock(byte[] in, int inOff, byte[] out, int outOff) { - } - - /** - * Do the appropriate processing for CFB mode decryption. - * - * @param in the array containing the data to be decrypted. - * @param inOff offset into the in array the data starts at. - * @param out the array the encrypted data will be copied into. - * @param outOff the offset into the out array the output will start at. - * @exception DataLengthException if there isn't enough data in in, or - * space in out. - * @exception IllegalStateException if the cipher isn't initialised. - * @return the number of bytes processed and produced. - */ - public int decryptBlock(byte[] in, int inOff, byte[] out, int outOff) { - } - - /** - * reset the chaining vector back to the IV and reset the underlying - * cipher. - */ - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/CTSBlockCipher.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/CTSBlockCipher.java deleted file mode 100644 index 26ddafae0..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/CTSBlockCipher.java +++ /dev/null @@ -1,87 +0,0 @@ -/** - * - * Modes for symmetric ciphers. - */ -package org.bouncycastle.crypto.modes; - - -/** - * A Cipher Text Stealing (CTS) mode cipher. CTS allows block ciphers to - * be used to produce cipher text which is the same length as the plain text. - */ -public class CTSBlockCipher extends org.bouncycastle.crypto.BufferedBlockCipher { - - /** - * Create a buffered block cipher that uses Cipher Text Stealing - * - * @param cipher the underlying block cipher this buffering object wraps. - */ - public CTSBlockCipher(org.bouncycastle.crypto.BlockCipher cipher) { - } - - /** - * return the size of the output buffer required for an update - * an input of len bytes. - * - * @param len the length of the input. - * @return the space required to accommodate a call to update - * with len bytes of input. - */ - public int getUpdateOutputSize(int len) { - } - - /** - * return the size of the output buffer required for an update plus a - * doFinal with an input of len bytes. - * - * @param len the length of the input. - * @return the space required to accommodate a call to update and doFinal - * with len bytes of input. - */ - public int getOutputSize(int len) { - } - - /** - * process a single byte, producing an output block if neccessary. - * - * @param in the input byte. - * @param out the space for any output that might be produced. - * @param outOff the offset from which the output will be copied. - * @return the number of output bytes copied to out. - * @exception DataLengthException if there isn't enough space in out. - * @exception IllegalStateException if the cipher isn't initialised. - */ - public int processByte(byte in, byte[] out, int outOff) { - } - - /** - * process an array of bytes, producing output if necessary. - * - * @param in the input byte array. - * @param inOff the offset at which the input data starts. - * @param len the number of bytes to be copied out of the input array. - * @param out the space for any output that might be produced. - * @param outOff the offset from which the output will be copied. - * @return the number of output bytes copied to out. - * @exception DataLengthException if there isn't enough space in out. - * @exception IllegalStateException if the cipher isn't initialised. - */ - public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) { - } - - /** - * Process the last block in the buffer. - * - * @param out the array the block currently being held is copied into. - * @param outOff the offset at which the copying starts. - * @return the number of output bytes copied to out. - * @exception DataLengthException if there is insufficient space in out for - * the output. - * @exception IllegalStateException if the underlying cipher is not - * initialised. - * @exception InvalidCipherTextException if cipher text decrypts wrongly (in - * case the exception will never get thrown). - */ - public int doFinal(byte[] out, int outOff) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/EAXBlockCipher.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/EAXBlockCipher.java deleted file mode 100644 index 8884477fe..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/EAXBlockCipher.java +++ /dev/null @@ -1,63 +0,0 @@ -/** - * - * Modes for symmetric ciphers. - */ -package org.bouncycastle.crypto.modes; - - -/** - * A Two-Pass Authenticated-Encryption Scheme Optimized for Simplicity and - * Efficiency - by M. Bellare, P. Rogaway, D. Wagner. - * - * http://www.cs.ucdavis.edu/~rogaway/papers/eax.pdf - * - * EAX is an AEAD scheme based on CTR and OMAC1/CMAC, that uses a single block - * cipher to encrypt and authenticate data. It's on-line (the length of a - * message isn't needed to begin processing it), has good performances, it's - * simple and provably secure (provided the underlying block cipher is secure). - * - * Of course, this implementations is NOT thread-safe. - */ -public class EAXBlockCipher implements AEADBlockCipher { - - /** - * Constructor that accepts an instance of a block cipher engine. - * - * @param cipher the engine to use - */ - public EAXBlockCipher(org.bouncycastle.crypto.BlockCipher cipher) { - } - - public String getAlgorithmName() { - } - - public org.bouncycastle.crypto.BlockCipher getUnderlyingCipher() { - } - - public int getBlockSize() { - } - - public void init(boolean forEncryption, org.bouncycastle.crypto.CipherParameters params) { - } - - public void reset() { - } - - public int processByte(byte in, byte[] out, int outOff) { - } - - public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) { - } - - public int doFinal(byte[] out, int outOff) { - } - - public byte[] getMac() { - } - - public int getUpdateOutputSize(int len) { - } - - public int getOutputSize(int len) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/GCMBlockCipher.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/GCMBlockCipher.java deleted file mode 100644 index 83deb5d33..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/GCMBlockCipher.java +++ /dev/null @@ -1,49 +0,0 @@ -/** - * - * Modes for symmetric ciphers. - */ -package org.bouncycastle.crypto.modes; - - -/** - * Implements the Galois/Counter mode (GCM) detailed in - * NIST Special Publication 800-38D. - */ -public class GCMBlockCipher implements AEADBlockCipher { - - public GCMBlockCipher(org.bouncycastle.crypto.BlockCipher c) { - } - - public GCMBlockCipher(org.bouncycastle.crypto.BlockCipher c, gcm.GCMMultiplier m) { - } - - public org.bouncycastle.crypto.BlockCipher getUnderlyingCipher() { - } - - public String getAlgorithmName() { - } - - public void init(boolean forEncryption, org.bouncycastle.crypto.CipherParameters params) { - } - - public byte[] getMac() { - } - - public int getOutputSize(int len) { - } - - public int getUpdateOutputSize(int len) { - } - - public int processByte(byte in, byte[] out, int outOff) { - } - - public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) { - } - - public int doFinal(byte[] out, int outOff) { - } - - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/GOFBBlockCipher.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/GOFBBlockCipher.java deleted file mode 100644 index e51e6c21e..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/GOFBBlockCipher.java +++ /dev/null @@ -1,83 +0,0 @@ -/** - * - * Modes for symmetric ciphers. - */ -package org.bouncycastle.crypto.modes; - - -/** - * implements the GOST 28147 OFB counter mode (GCTR). - */ -public class GOFBBlockCipher implements org.bouncycastle.crypto.BlockCipher { - - /** - * Basic constructor. - * - * @param cipher the block cipher to be used as the basis of the - * counter mode (must have a 64 bit block size). - */ - public GOFBBlockCipher(org.bouncycastle.crypto.BlockCipher cipher) { - } - - /** - * return the underlying block cipher that we are wrapping. - * - * @return the underlying block cipher that we are wrapping. - */ - public org.bouncycastle.crypto.BlockCipher getUnderlyingCipher() { - } - - /** - * Initialise the cipher and, possibly, the initialisation vector (IV). - * If an IV isn't passed as part of the parameter, the IV will be all zeros. - * An IV which is too short is handled in FIPS compliant fashion. - * - * @param encrypting if true the cipher is initialised for - * encryption, if false for decryption. - * @param params the key and other data required by the cipher. - * @exception IllegalArgumentException if the params argument is - * inappropriate. - */ - public void init(boolean encrypting, org.bouncycastle.crypto.CipherParameters params) { - } - - /** - * return the algorithm name and mode. - * - * @return the name of the underlying algorithm followed by "/GCTR" - * and the block size in bits - */ - public String getAlgorithmName() { - } - - /** - * return the block size we are operating at (in bytes). - * - * @return the block size we are operating at (in bytes). - */ - public int getBlockSize() { - } - - /** - * Process one block of input from the array in and write it to - * the out array. - * - * @param in the array containing the input data. - * @param inOff offset into the in array the data starts at. - * @param out the array the output data will be copied into. - * @param outOff the offset into the out array the output will start at. - * @exception DataLengthException if there isn't enough data in in, or - * space in out. - * @exception IllegalStateException if the cipher isn't initialised. - * @return the number of bytes processed and produced. - */ - public int processBlock(byte[] in, int inOff, byte[] out, int outOff) { - } - - /** - * reset the feedback vector back to the IV and reset the underlying - * cipher. - */ - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/OFBBlockCipher.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/OFBBlockCipher.java deleted file mode 100644 index cb676d841..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/OFBBlockCipher.java +++ /dev/null @@ -1,84 +0,0 @@ -/** - * - * Modes for symmetric ciphers. - */ -package org.bouncycastle.crypto.modes; - - -/** - * implements a Output-FeedBack (OFB) mode on top of a simple cipher. - */ -public class OFBBlockCipher implements org.bouncycastle.crypto.BlockCipher { - - /** - * Basic constructor. - * - * @param cipher the block cipher to be used as the basis of the - * feedback mode. - * @param blockSize the block size in bits (note: a multiple of 8) - */ - public OFBBlockCipher(org.bouncycastle.crypto.BlockCipher cipher, int blockSize) { - } - - /** - * return the underlying block cipher that we are wrapping. - * - * @return the underlying block cipher that we are wrapping. - */ - public org.bouncycastle.crypto.BlockCipher getUnderlyingCipher() { - } - - /** - * Initialise the cipher and, possibly, the initialisation vector (IV). - * If an IV isn't passed as part of the parameter, the IV will be all zeros. - * An IV which is too short is handled in FIPS compliant fashion. - * - * @param encrypting if true the cipher is initialised for - * encryption, if false for decryption. - * @param params the key and other data required by the cipher. - * @exception IllegalArgumentException if the params argument is - * inappropriate. - */ - public void init(boolean encrypting, org.bouncycastle.crypto.CipherParameters params) { - } - - /** - * return the algorithm name and mode. - * - * @return the name of the underlying algorithm followed by "/OFB" - * and the block size in bits - */ - public String getAlgorithmName() { - } - - /** - * return the block size we are operating at (in bytes). - * - * @return the block size we are operating at (in bytes). - */ - public int getBlockSize() { - } - - /** - * Process one block of input from the array in and write it to - * the out array. - * - * @param in the array containing the input data. - * @param inOff offset into the in array the data starts at. - * @param out the array the output data will be copied into. - * @param outOff the offset into the out array the output will start at. - * @exception DataLengthException if there isn't enough data in in, or - * space in out. - * @exception IllegalStateException if the cipher isn't initialised. - * @return the number of bytes processed and produced. - */ - public int processBlock(byte[] in, int inOff, byte[] out, int outOff) { - } - - /** - * reset the feedback vector back to the IV and reset the underlying - * cipher. - */ - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/OpenPGPCFBBlockCipher.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/OpenPGPCFBBlockCipher.java deleted file mode 100644 index 1d84470a2..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/OpenPGPCFBBlockCipher.java +++ /dev/null @@ -1,88 +0,0 @@ -/** - * - * Modes for symmetric ciphers. - */ -package org.bouncycastle.crypto.modes; - - -/** - * Implements OpenPGP's rather strange version of Cipher-FeedBack (CFB) mode - * on top of a simple cipher. This class assumes the IV has been prepended - * to the data stream already, and just accomodates the reset after - * (blockSize + 2) bytes have been read. - *
- * For further info see RFC 2440. - */ -public class OpenPGPCFBBlockCipher implements org.bouncycastle.crypto.BlockCipher { - - /** - * Basic constructor. - * - * @param cipher the block cipher to be used as the basis of the - * feedback mode. - */ - public OpenPGPCFBBlockCipher(org.bouncycastle.crypto.BlockCipher cipher) { - } - - /** - * return the underlying block cipher that we are wrapping. - * - * @return the underlying block cipher that we are wrapping. - */ - public org.bouncycastle.crypto.BlockCipher getUnderlyingCipher() { - } - - /** - * return the algorithm name and mode. - * - * @return the name of the underlying algorithm followed by "/PGPCFB" - * and the block size in bits. - */ - public String getAlgorithmName() { - } - - /** - * return the block size we are operating at. - * - * @return the block size we are operating at (in bytes). - */ - public int getBlockSize() { - } - - /** - * Process one block of input from the array in and write it to - * the out array. - * - * @param in the array containing the input data. - * @param inOff offset into the in array the data starts at. - * @param out the array the output data will be copied into. - * @param outOff the offset into the out array the output will start at. - * @exception DataLengthException if there isn't enough data in in, or - * space in out. - * @exception IllegalStateException if the cipher isn't initialised. - * @return the number of bytes processed and produced. - */ - public int processBlock(byte[] in, int inOff, byte[] out, int outOff) { - } - - /** - * reset the chaining vector back to the IV and reset the underlying - * cipher. - */ - public void reset() { - } - - /** - * Initialise the cipher and, possibly, the initialisation vector (IV). - * If an IV isn't passed as part of the parameter, the IV will be all zeros. - * An IV which is too short is handled in FIPS compliant fashion. - * - * @param forEncryption if true the cipher is initialised for - * encryption, if false for decryption. - * @param params the key and other data required by the cipher. - * @exception IllegalArgumentException if the params argument is - * inappropriate. - */ - public void init(boolean forEncryption, org.bouncycastle.crypto.CipherParameters params) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/PGPCFBBlockCipher.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/PGPCFBBlockCipher.java deleted file mode 100644 index 0f40a9d4a..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/PGPCFBBlockCipher.java +++ /dev/null @@ -1,84 +0,0 @@ -/** - * - * Modes for symmetric ciphers. - */ -package org.bouncycastle.crypto.modes; - - -/** - * Implements OpenPGP's rather strange version of Cipher-FeedBack (CFB) mode on top of a simple cipher. For further info see RFC 2440. - */ -public class PGPCFBBlockCipher implements org.bouncycastle.crypto.BlockCipher { - - /** - * Basic constructor. - * - * @param cipher the block cipher to be used as the basis of the - * feedback mode. - * @param inlineIv if true this is for PGP CFB with a prepended iv. - */ - public PGPCFBBlockCipher(org.bouncycastle.crypto.BlockCipher cipher, boolean inlineIv) { - } - - /** - * return the underlying block cipher that we are wrapping. - * - * @return the underlying block cipher that we are wrapping. - */ - public org.bouncycastle.crypto.BlockCipher getUnderlyingCipher() { - } - - /** - * return the algorithm name and mode. - * - * @return the name of the underlying algorithm followed by "/PGPCFB" - * and the block size in bits. - */ - public String getAlgorithmName() { - } - - /** - * return the block size we are operating at. - * - * @return the block size we are operating at (in bytes). - */ - public int getBlockSize() { - } - - /** - * Process one block of input from the array in and write it to - * the out array. - * - * @param in the array containing the input data. - * @param inOff offset into the in array the data starts at. - * @param out the array the output data will be copied into. - * @param outOff the offset into the out array the output will start at. - * @exception DataLengthException if there isn't enough data in in, or - * space in out. - * @exception IllegalStateException if the cipher isn't initialised. - * @return the number of bytes processed and produced. - */ - public int processBlock(byte[] in, int inOff, byte[] out, int outOff) { - } - - /** - * reset the chaining vector back to the IV and reset the underlying - * cipher. - */ - public void reset() { - } - - /** - * Initialise the cipher and, possibly, the initialisation vector (IV). - * If an IV isn't passed as part of the parameter, the IV will be all zeros. - * An IV which is too short is handled in FIPS compliant fashion. - * - * @param forEncryption if true the cipher is initialised for - * encryption, if false for decryption. - * @param params the key and other data required by the cipher. - * @exception IllegalArgumentException if the params argument is - * inappropriate. - */ - public void init(boolean forEncryption, org.bouncycastle.crypto.CipherParameters params) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/PaddedBlockCipher.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/PaddedBlockCipher.java deleted file mode 100644 index 9e30275a4..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/PaddedBlockCipher.java +++ /dev/null @@ -1,90 +0,0 @@ -/** - * - * Modes for symmetric ciphers. - */ -package org.bouncycastle.crypto.modes; - - -/** - * A wrapper class that allows block ciphers to be used to process data in - * a piecemeal fashion with PKCS5/PKCS7 padding. The PaddedBlockCipher - * outputs a block only when the buffer is full and more data is being added, - * or on a doFinal (unless the current block in the buffer is a pad block). - * The padding mechanism used is the one outlined in PKCS5/PKCS7. - * - * @deprecated use org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher instead. - */ -public class PaddedBlockCipher extends org.bouncycastle.crypto.BufferedBlockCipher { - - /** - * Create a buffered block cipher with, or without, padding. - * - * @param cipher the underlying block cipher this buffering object wraps. - */ - public PaddedBlockCipher(org.bouncycastle.crypto.BlockCipher cipher) { - } - - /** - * return the size of the output buffer required for an update plus a - * doFinal with an input of len bytes. - * - * @param len the length of the input. - * @return the space required to accommodate a call to update and doFinal - * with len bytes of input. - */ - public int getOutputSize(int len) { - } - - /** - * return the size of the output buffer required for an update - * an input of len bytes. - * - * @param len the length of the input. - * @return the space required to accommodate a call to update - * with len bytes of input. - */ - public int getUpdateOutputSize(int len) { - } - - /** - * process a single byte, producing an output block if neccessary. - * - * @param in the input byte. - * @param out the space for any output that might be produced. - * @param outOff the offset from which the output will be copied. - * @exception DataLengthException if there isn't enough space in out. - * @exception IllegalStateException if the cipher isn't initialised. - */ - public int processByte(byte in, byte[] out, int outOff) { - } - - /** - * process an array of bytes, producing output if necessary. - * - * @param in the input byte array. - * @param inOff the offset at which the input data starts. - * @param len the number of bytes to be copied out of the input array. - * @param out the space for any output that might be produced. - * @param outOff the offset from which the output will be copied. - * @exception DataLengthException if there isn't enough space in out. - * @exception IllegalStateException if the cipher isn't initialised. - */ - public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) { - } - - /** - * Process the last block in the buffer. If the buffer is currently - * full and padding needs to be added a call to doFinal will produce - * 2 * getBlockSize() bytes. - * - * @param out the array the block currently being held is copied into. - * @param outOff the offset at which the copying starts. - * @exception DataLengthException if there is insufficient space in out for - * the output or we are decrypting and the input is not block size aligned. - * @exception IllegalStateException if the underlying cipher is not - * initialised. - * @exception InvalidCipherTextException if padding is expected and not found. - */ - public int doFinal(byte[] out, int outOff) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/SICBlockCipher.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/SICBlockCipher.java deleted file mode 100644 index 1ce43f7c5..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/SICBlockCipher.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * - * Modes for symmetric ciphers. - */ -package org.bouncycastle.crypto.modes; - - -/** - * Implements the Segmented Integer Counter (SIC) mode on top of a simple - * block cipher. This mode is also known as CTR mode. - */ -public class SICBlockCipher implements org.bouncycastle.crypto.BlockCipher { - - /** - * Basic constructor. - * - * @param c the block cipher to be used. - */ - public SICBlockCipher(org.bouncycastle.crypto.BlockCipher c) { - } - - /** - * return the underlying block cipher that we are wrapping. - * - * @return the underlying block cipher that we are wrapping. - */ - public org.bouncycastle.crypto.BlockCipher getUnderlyingCipher() { - } - - public void init(boolean forEncryption, org.bouncycastle.crypto.CipherParameters params) { - } - - public String getAlgorithmName() { - } - - public int getBlockSize() { - } - - public int processBlock(byte[] in, int inOff, byte[] out, int outOff) { - } - - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/gcm/BasicGCMExponentiator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/gcm/BasicGCMExponentiator.java deleted file mode 100644 index 48948b6be..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/gcm/BasicGCMExponentiator.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.bouncycastle.crypto.modes.gcm; - - -public class BasicGCMExponentiator implements GCMExponentiator { - - public BasicGCMExponentiator() { - } - - public void init(byte[] x) { - } - - public void exponentiateX(long pow, byte[] output) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/gcm/BasicGCMMultiplier.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/gcm/BasicGCMMultiplier.java deleted file mode 100644 index 2ecfeb888..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/gcm/BasicGCMMultiplier.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.bouncycastle.crypto.modes.gcm; - - -public class BasicGCMMultiplier implements GCMMultiplier { - - public BasicGCMMultiplier() { - } - - public void init(byte[] H) { - } - - public void multiplyH(byte[] x) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/gcm/GCMExponentiator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/gcm/GCMExponentiator.java deleted file mode 100644 index 149d9acd5..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/gcm/GCMExponentiator.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.bouncycastle.crypto.modes.gcm; - - -public interface GCMExponentiator { - - public void init(byte[] x); - - public void exponentiateX(long pow, byte[] output); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/gcm/GCMMultiplier.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/gcm/GCMMultiplier.java deleted file mode 100644 index 518d21ec0..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/gcm/GCMMultiplier.java +++ /dev/null @@ -1,9 +0,0 @@ -package org.bouncycastle.crypto.modes.gcm; - - -public interface GCMMultiplier { - - public void init(byte[] H); - - public void multiplyH(byte[] x); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/gcm/Tables1kGCMExponentiator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/gcm/Tables1kGCMExponentiator.java deleted file mode 100644 index f1eac6cf1..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/gcm/Tables1kGCMExponentiator.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.bouncycastle.crypto.modes.gcm; - - -public class Tables1kGCMExponentiator implements GCMExponentiator { - - public Tables1kGCMExponentiator() { - } - - public void init(byte[] x) { - } - - public void exponentiateX(long pow, byte[] output) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/gcm/Tables64kGCMMultiplier.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/gcm/Tables64kGCMMultiplier.java deleted file mode 100644 index 4c7338ca0..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/gcm/Tables64kGCMMultiplier.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.bouncycastle.crypto.modes.gcm; - - -public class Tables64kGCMMultiplier implements GCMMultiplier { - - public Tables64kGCMMultiplier() { - } - - public void init(byte[] H) { - } - - public void multiplyH(byte[] x) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/gcm/Tables8kGCMMultiplier.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/gcm/Tables8kGCMMultiplier.java deleted file mode 100644 index 5b6a38eaa..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/modes/gcm/Tables8kGCMMultiplier.java +++ /dev/null @@ -1,14 +0,0 @@ -package org.bouncycastle.crypto.modes.gcm; - - -public class Tables8kGCMMultiplier implements GCMMultiplier { - - public Tables8kGCMMultiplier() { - } - - public void init(byte[] H) { - } - - public void multiplyH(byte[] x) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/paddings/BlockCipherPadding.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/paddings/BlockCipherPadding.java deleted file mode 100644 index 43c10df88..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/paddings/BlockCipherPadding.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * - * Paddings for symmetric ciphers. - */ -package org.bouncycastle.crypto.paddings; - - -/** - * Block cipher padders are expected to conform to this interface - */ -public interface BlockCipherPadding { - - /** - * Initialise the padder. - * - * @param random the source of randomness for the padding, if required. - */ - public void init(javabc.SecureRandom random); - - /** - * Return the name of the algorithm the cipher implements. - * - * @return the name of the algorithm the cipher implements. - */ - public String getPaddingName(); - - /** - * add the pad bytes to the passed in block, returning the - * number of bytes added. - *
- * Note: this assumes that the last block of plain text is always - * passed to it inside in. i.e. if inOff is zero, indicating the - * entire block is to be overwritten with padding the value of in - * should be the same as the last block of plain text. The reason - * for this is that some modes such as "trailing bit compliment" - * base the padding on the last byte of plain text. - *
- */ - public int addPadding(byte[] in, int inOff); - - /** - * return the number of pad bytes present in the block. - * @exception InvalidCipherTextException if the padding is badly formed - * or invalid. - */ - public int padCount(byte[] in); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/paddings/ISO10126d2Padding.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/paddings/ISO10126d2Padding.java deleted file mode 100644 index 89a0097af..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/paddings/ISO10126d2Padding.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * - * Paddings for symmetric ciphers. - */ -package org.bouncycastle.crypto.paddings; - - -/** - * A padder that adds ISO10126-2 padding to a block. - */ -public class ISO10126d2Padding implements BlockCipherPadding { - - public ISO10126d2Padding() { - } - - /** - * Initialise the padder. - * - * @param random a SecureRandom if available. - */ - public void init(javabc.SecureRandom random) { - } - - /** - * Return the name of the algorithm the padder implements. - * - * @return the name of the algorithm the padder implements. - */ - public String getPaddingName() { - } - - /** - * add the pad bytes to the passed in block, returning the - * number of bytes added. - */ - public int addPadding(byte[] in, int inOff) { - } - - /** - * return the number of pad bytes present in the block. - */ - public int padCount(byte[] in) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/paddings/ISO7816d4Padding.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/paddings/ISO7816d4Padding.java deleted file mode 100644 index 1a91f52f4..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/paddings/ISO7816d4Padding.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * - * Paddings for symmetric ciphers. - */ -package org.bouncycastle.crypto.paddings; - - -/** - * A padder that adds the padding according to the scheme referenced in - * ISO 7814-4 - scheme 2 from ISO 9797-1. The first byte is 0x80, rest is 0x00 - */ -public class ISO7816d4Padding implements BlockCipherPadding { - - public ISO7816d4Padding() { - } - - /** - * Initialise the padder. - * - * @param random - a SecureRandom if available. - */ - public void init(javabc.SecureRandom random) { - } - - /** - * Return the name of the algorithm the padder implements. - * - * @return the name of the algorithm the padder implements. - */ - public String getPaddingName() { - } - - /** - * add the pad bytes to the passed in block, returning the - * number of bytes added. - */ - public int addPadding(byte[] in, int inOff) { - } - - /** - * return the number of pad bytes present in the block. - */ - public int padCount(byte[] in) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/paddings/PKCS7Padding.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/paddings/PKCS7Padding.java deleted file mode 100644 index e67d0c8b0..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/paddings/PKCS7Padding.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * - * Paddings for symmetric ciphers. - */ -package org.bouncycastle.crypto.paddings; - - -/** - * A padder that adds PKCS7/PKCS5 padding to a block. - */ -public class PKCS7Padding implements BlockCipherPadding { - - public PKCS7Padding() { - } - - /** - * Initialise the padder. - * - * @param random - a SecureRandom if available. - */ - public void init(javabc.SecureRandom random) { - } - - /** - * Return the name of the algorithm the padder implements. - * - * @return the name of the algorithm the padder implements. - */ - public String getPaddingName() { - } - - /** - * add the pad bytes to the passed in block, returning the - * number of bytes added. - */ - public int addPadding(byte[] in, int inOff) { - } - - /** - * return the number of pad bytes present in the block. - */ - public int padCount(byte[] in) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/paddings/PaddedBufferedBlockCipher.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/paddings/PaddedBufferedBlockCipher.java deleted file mode 100644 index 72d453828..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/paddings/PaddedBufferedBlockCipher.java +++ /dev/null @@ -1,112 +0,0 @@ -/** - * - * Paddings for symmetric ciphers. - */ -package org.bouncycastle.crypto.paddings; - - -/** - * A wrapper class that allows block ciphers to be used to process data in - * a piecemeal fashion with padding. The PaddedBufferedBlockCipher - * outputs a block only when the buffer is full and more data is being added, - * or on a doFinal (unless the current block in the buffer is a pad block). - * The default padding mechanism used is the one outlined in PKCS5/PKCS7. - */ -public class PaddedBufferedBlockCipher extends org.bouncycastle.crypto.BufferedBlockCipher { - - /** - * Create a buffered block cipher with the desired padding. - * - * @param cipher the underlying block cipher this buffering object wraps. - * @param padding the padding type. - */ - public PaddedBufferedBlockCipher(org.bouncycastle.crypto.BlockCipher cipher, BlockCipherPadding padding) { - } - - /** - * Create a buffered block cipher PKCS7 padding - * - * @param cipher the underlying block cipher this buffering object wraps. - */ - public PaddedBufferedBlockCipher(org.bouncycastle.crypto.BlockCipher cipher) { - } - - /** - * initialise the cipher. - * - * @param forEncryption if true the cipher is initialised for - * encryption, if false for decryption. - * @param params the key and other data required by the cipher. - * @exception IllegalArgumentException if the params argument is - * inappropriate. - */ - public void init(boolean forEncryption, org.bouncycastle.crypto.CipherParameters params) { - } - - /** - * return the minimum size of the output buffer required for an update - * plus a doFinal with an input of len bytes. - * - * @param len the length of the input. - * @return the space required to accommodate a call to update and doFinal - * with len bytes of input. - */ - public int getOutputSize(int len) { - } - - /** - * return the size of the output buffer required for an update - * an input of len bytes. - * - * @param len the length of the input. - * @return the space required to accommodate a call to update - * with len bytes of input. - */ - public int getUpdateOutputSize(int len) { - } - - /** - * process a single byte, producing an output block if neccessary. - * - * @param in the input byte. - * @param out the space for any output that might be produced. - * @param outOff the offset from which the output will be copied. - * @return the number of output bytes copied to out. - * @exception DataLengthException if there isn't enough space in out. - * @exception IllegalStateException if the cipher isn't initialised. - */ - public int processByte(byte in, byte[] out, int outOff) { - } - - /** - * process an array of bytes, producing output if necessary. - * - * @param in the input byte array. - * @param inOff the offset at which the input data starts. - * @param len the number of bytes to be copied out of the input array. - * @param out the space for any output that might be produced. - * @param outOff the offset from which the output will be copied. - * @return the number of output bytes copied to out. - * @exception DataLengthException if there isn't enough space in out. - * @exception IllegalStateException if the cipher isn't initialised. - */ - public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) { - } - - /** - * Process the last block in the buffer. If the buffer is currently - * full and padding needs to be added a call to doFinal will produce - * 2 * getBlockSize() bytes. - * - * @param out the array the block currently being held is copied into. - * @param outOff the offset at which the copying starts. - * @return the number of output bytes copied to out. - * @exception DataLengthException if there is insufficient space in out for - * the output or we are decrypting and the input is not block size aligned. - * @exception IllegalStateException if the underlying cipher is not - * initialised. - * @exception InvalidCipherTextException if padding is expected and not found. - */ - public int doFinal(byte[] out, int outOff) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/paddings/TBCPadding.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/paddings/TBCPadding.java deleted file mode 100644 index 329d12044..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/paddings/TBCPadding.java +++ /dev/null @@ -1,54 +0,0 @@ -/** - * - * Paddings for symmetric ciphers. - */ -package org.bouncycastle.crypto.paddings; - - -/** - * A padder that adds Trailing-Bit-Compliment padding to a block. - *- * This padding pads the block out with the compliment of the last bit - * of the plain text. - *
- */ -public class TBCPadding implements BlockCipherPadding { - - public TBCPadding() { - } - - /** - * Initialise the padder. - * - * @param random - a SecureRandom if available. - */ - public void init(javabc.SecureRandom random) { - } - - /** - * Return the name of the algorithm the padder implements. - * - * @return the name of the algorithm the padder implements. - */ - public String getPaddingName() { - } - - /** - * add the pad bytes to the passed in block, returning the - * number of bytes added. - *- * Note: this assumes that the last block of plain text is always - * passed to it inside in. i.e. if inOff is zero, indicating the - * entire block is to be overwritten with padding the value of in - * should be the same as the last block of plain text. - *
- */ - public int addPadding(byte[] in, int inOff) { - } - - /** - * return the number of pad bytes present in the block. - */ - public int padCount(byte[] in) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/paddings/X923Padding.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/paddings/X923Padding.java deleted file mode 100644 index 564c728d4..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/paddings/X923Padding.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * - * Paddings for symmetric ciphers. - */ -package org.bouncycastle.crypto.paddings; - - -/** - * A padder that adds X9.23 padding to a block - if a SecureRandom is - * passed in random padding is assumed, otherwise padding with zeros is used. - */ -public class X923Padding implements BlockCipherPadding { - - public X923Padding() { - } - - /** - * Initialise the padder. - * - * @param random a SecureRandom if one is available. - */ - public void init(javabc.SecureRandom random) { - } - - /** - * Return the name of the algorithm the padder implements. - * - * @return the name of the algorithm the padder implements. - */ - public String getPaddingName() { - } - - /** - * add the pad bytes to the passed in block, returning the - * number of bytes added. - */ - public int addPadding(byte[] in, int inOff) { - } - - /** - * return the number of pad bytes present in the block. - */ - public int padCount(byte[] in) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/paddings/ZeroBytePadding.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/paddings/ZeroBytePadding.java deleted file mode 100644 index 316d7d781..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/paddings/ZeroBytePadding.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * - * Paddings for symmetric ciphers. - */ -package org.bouncycastle.crypto.paddings; - - -/** - * A padder that adds NULL byte padding to a block. - */ -public class ZeroBytePadding implements BlockCipherPadding { - - public ZeroBytePadding() { - } - - /** - * Initialise the padder. - * - * @param random - a SecureRandom if available. - */ - public void init(javabc.SecureRandom random) { - } - - /** - * Return the name of the algorithm the padder implements. - * - * @return the name of the algorithm the padder implements. - */ - public String getPaddingName() { - } - - /** - * add the pad bytes to the passed in block, returning the - * number of bytes added. - */ - public int addPadding(byte[] in, int inOff) { - } - - /** - * return the number of pad bytes present in the block. - */ - public int padCount(byte[] in) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/AEADParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/AEADParameters.java deleted file mode 100644 index 2f0f8e455..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/AEADParameters.java +++ /dev/null @@ -1,32 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class AEADParameters implements org.bouncycastle.crypto.CipherParameters { - - /** - * Base constructor. - * - * @param key key to be used by underlying cipher - * @param macSize macSize in bits - * @param nonce nonce to be used - * @param associatedText associated text, if any - */ - public AEADParameters(KeyParameter key, int macSize, byte[] nonce, byte[] associatedText) { - } - - public KeyParameter getKey() { - } - - public int getMacSize() { - } - - public byte[] getAssociatedText() { - } - - public byte[] getNonce() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/AsymmetricKeyParameter.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/AsymmetricKeyParameter.java deleted file mode 100644 index dfce5f538..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/AsymmetricKeyParameter.java +++ /dev/null @@ -1,15 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class AsymmetricKeyParameter implements org.bouncycastle.crypto.CipherParameters { - - public AsymmetricKeyParameter(boolean privateKey) { - } - - public boolean isPrivate() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/CCMParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/CCMParameters.java deleted file mode 100644 index baa685770..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/CCMParameters.java +++ /dev/null @@ -1,20 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class CCMParameters extends AEADParameters { - - /** - * Base constructor. - * - * @param key key to be used by underlying cipher - * @param macSize macSize in bits - * @param nonce nonce to be used - * @param associatedText associated text, if any - */ - public CCMParameters(KeyParameter key, int macSize, byte[] nonce, byte[] associatedText) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DESParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DESParameters.java deleted file mode 100644 index e3cb77aca..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DESParameters.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class DESParameters extends KeyParameter { - - public static final int DES_KEY_LENGTH = 8; - - public DESParameters(byte[] key) { - } - - /** - * DES has 16 weak keys. This method will check - * if the given DES key material is weak or semi-weak. - * Key material that is too short is regarded as weak. - *- * See "Applied - * Cryptography" by Bruce Schneier for more information. - * - * @return true if the given DES key material is weak or semi-weak, - * false otherwise. - */ - public static boolean isWeakKey(byte[] key, int offset) { - } - - /** - * DES Keys use the LSB as the odd parity bit. This can - * be used to check for corrupt keys. - * - * @param bytes the byte array to set the parity on. - */ - public static void setOddParity(byte[] bytes) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DESedeParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DESedeParameters.java deleted file mode 100644 index 0c0426465..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DESedeParameters.java +++ /dev/null @@ -1,33 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class DESedeParameters extends DESParameters { - - public static final int DES_EDE_KEY_LENGTH = 24; - - public DESedeParameters(byte[] key) { - } - - /** - * return true if the passed in key is a DES-EDE weak key. - * - * @param key bytes making up the key - * @param offset offset into the byte array the key starts at - * @param length number of bytes making up the key - */ - public static boolean isWeakKey(byte[] key, int offset, int length) { - } - - /** - * return true if the passed in key is a DES-EDE weak key. - * - * @param key bytes making up the key - * @param offset offset into the byte array the key starts at - */ - public static boolean isWeakKey(byte[] key, int offset) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DHKeyGenerationParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DHKeyGenerationParameters.java deleted file mode 100644 index 49b854f0c..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DHKeyGenerationParameters.java +++ /dev/null @@ -1,15 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class DHKeyGenerationParameters extends org.bouncycastle.crypto.KeyGenerationParameters { - - public DHKeyGenerationParameters(javabc.SecureRandom random, DHParameters params) { - } - - public DHParameters getParameters() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DHKeyParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DHKeyParameters.java deleted file mode 100644 index 3a31aff67..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DHKeyParameters.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class DHKeyParameters extends AsymmetricKeyParameter { - - protected DHKeyParameters(boolean isPrivate, DHParameters params) { - } - - public DHParameters getParameters() { - } - - public boolean equals(Object obj) { - } - - public int hashCode() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DHParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DHParameters.java deleted file mode 100644 index 25cd06db6..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DHParameters.java +++ /dev/null @@ -1,69 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class DHParameters implements org.bouncycastle.crypto.CipherParameters { - - public DHParameters(javabc.BigInteger p, javabc.BigInteger g) { - } - - public DHParameters(javabc.BigInteger p, javabc.BigInteger g, javabc.BigInteger q) { - } - - public DHParameters(javabc.BigInteger p, javabc.BigInteger g, javabc.BigInteger q, int l) { - } - - public DHParameters(javabc.BigInteger p, javabc.BigInteger g, javabc.BigInteger q, int m, int l) { - } - - public DHParameters(javabc.BigInteger p, javabc.BigInteger g, javabc.BigInteger q, javabc.BigInteger j, DHValidationParameters validation) { - } - - public DHParameters(javabc.BigInteger p, javabc.BigInteger g, javabc.BigInteger q, int m, int l, javabc.BigInteger j, DHValidationParameters validation) { - } - - public javabc.BigInteger getP() { - } - - public javabc.BigInteger getG() { - } - - public javabc.BigInteger getQ() { - } - - /** - * Return the subgroup factor J. - * - * @return subgroup factor - */ - public javabc.BigInteger getJ() { - } - - /** - * Return the minimum length of the private value. - * - * @return the minimum length of the private value in bits. - */ - public int getM() { - } - - /** - * Return the private value length in bits - if set, zero otherwise - * - * @return the private value length in bits, zero otherwise. - */ - public int getL() { - } - - public DHValidationParameters getValidationParameters() { - } - - public boolean equals(Object obj) { - } - - public int hashCode() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DHPrivateKeyParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DHPrivateKeyParameters.java deleted file mode 100644 index 8bd546989..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DHPrivateKeyParameters.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class DHPrivateKeyParameters extends DHKeyParameters { - - public DHPrivateKeyParameters(javabc.BigInteger x, DHParameters params) { - } - - public javabc.BigInteger getX() { - } - - public int hashCode() { - } - - public boolean equals(Object obj) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DHPublicKeyParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DHPublicKeyParameters.java deleted file mode 100644 index 14c626c4d..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DHPublicKeyParameters.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class DHPublicKeyParameters extends DHKeyParameters { - - public DHPublicKeyParameters(javabc.BigInteger y, DHParameters params) { - } - - public javabc.BigInteger getY() { - } - - public int hashCode() { - } - - public boolean equals(Object obj) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DHValidationParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DHValidationParameters.java deleted file mode 100644 index 54cfd7cbe..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DHValidationParameters.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class DHValidationParameters { - - public DHValidationParameters(byte[] seed, int counter) { - } - - public int getCounter() { - } - - public byte[] getSeed() { - } - - public boolean equals(Object o) { - } - - public int hashCode() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DSAKeyGenerationParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DSAKeyGenerationParameters.java deleted file mode 100644 index 77fc11c3a..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DSAKeyGenerationParameters.java +++ /dev/null @@ -1,15 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class DSAKeyGenerationParameters extends org.bouncycastle.crypto.KeyGenerationParameters { - - public DSAKeyGenerationParameters(javabc.SecureRandom random, DSAParameters params) { - } - - public DSAParameters getParameters() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DSAKeyParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DSAKeyParameters.java deleted file mode 100644 index a7f1de9a4..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DSAKeyParameters.java +++ /dev/null @@ -1,15 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class DSAKeyParameters extends AsymmetricKeyParameter { - - public DSAKeyParameters(boolean isPrivate, DSAParameters params) { - } - - public DSAParameters getParameters() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DSAParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DSAParameters.java deleted file mode 100644 index 3c7f3a380..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DSAParameters.java +++ /dev/null @@ -1,33 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class DSAParameters implements org.bouncycastle.crypto.CipherParameters { - - public DSAParameters(javabc.BigInteger p, javabc.BigInteger q, javabc.BigInteger g) { - } - - public DSAParameters(javabc.BigInteger p, javabc.BigInteger q, javabc.BigInteger g, DSAValidationParameters params) { - } - - public javabc.BigInteger getP() { - } - - public javabc.BigInteger getQ() { - } - - public javabc.BigInteger getG() { - } - - public DSAValidationParameters getValidationParameters() { - } - - public boolean equals(Object obj) { - } - - public int hashCode() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DSAPrivateKeyParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DSAPrivateKeyParameters.java deleted file mode 100644 index 5ac35353a..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DSAPrivateKeyParameters.java +++ /dev/null @@ -1,15 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class DSAPrivateKeyParameters extends DSAKeyParameters { - - public DSAPrivateKeyParameters(javabc.BigInteger x, DSAParameters params) { - } - - public javabc.BigInteger getX() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DSAPublicKeyParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DSAPublicKeyParameters.java deleted file mode 100644 index a861188be..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DSAPublicKeyParameters.java +++ /dev/null @@ -1,15 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class DSAPublicKeyParameters extends DSAKeyParameters { - - public DSAPublicKeyParameters(javabc.BigInteger y, DSAParameters params) { - } - - public javabc.BigInteger getY() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DSAValidationParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DSAValidationParameters.java deleted file mode 100644 index 2e328aea6..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/DSAValidationParameters.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class DSAValidationParameters { - - public DSAValidationParameters(byte[] seed, int counter) { - } - - public int getCounter() { - } - - public byte[] getSeed() { - } - - public int hashCode() { - } - - public boolean equals(Object o) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ECDomainParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ECDomainParameters.java deleted file mode 100644 index 7333a379b..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ECDomainParameters.java +++ /dev/null @@ -1,33 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class ECDomainParameters implements org.bouncycastle.math.ec.ECConstants { - - public ECDomainParameters(org.bouncycastle.math.ec.ECCurve curve, org.bouncycastle.math.ec.ECPoint G, javabc.BigInteger n) { - } - - public ECDomainParameters(org.bouncycastle.math.ec.ECCurve curve, org.bouncycastle.math.ec.ECPoint G, javabc.BigInteger n, javabc.BigInteger h) { - } - - public ECDomainParameters(org.bouncycastle.math.ec.ECCurve curve, org.bouncycastle.math.ec.ECPoint G, javabc.BigInteger n, javabc.BigInteger h, byte[] seed) { - } - - public org.bouncycastle.math.ec.ECCurve getCurve() { - } - - public org.bouncycastle.math.ec.ECPoint getG() { - } - - public javabc.BigInteger getN() { - } - - public javabc.BigInteger getH() { - } - - public byte[] getSeed() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ECKeyGenerationParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ECKeyGenerationParameters.java deleted file mode 100644 index b1d6f943d..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ECKeyGenerationParameters.java +++ /dev/null @@ -1,15 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class ECKeyGenerationParameters extends org.bouncycastle.crypto.KeyGenerationParameters { - - public ECKeyGenerationParameters(ECDomainParameters domainParams, javabc.SecureRandom random) { - } - - public ECDomainParameters getDomainParameters() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ECKeyParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ECKeyParameters.java deleted file mode 100644 index fdb25c90c..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ECKeyParameters.java +++ /dev/null @@ -1,15 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class ECKeyParameters extends AsymmetricKeyParameter { - - protected ECKeyParameters(boolean isPrivate, ECDomainParameters params) { - } - - public ECDomainParameters getParameters() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ECPrivateKeyParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ECPrivateKeyParameters.java deleted file mode 100644 index ce4ebd9b9..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ECPrivateKeyParameters.java +++ /dev/null @@ -1,15 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class ECPrivateKeyParameters extends ECKeyParameters { - - public ECPrivateKeyParameters(javabc.BigInteger d, ECDomainParameters params) { - } - - public javabc.BigInteger getD() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ECPublicKeyParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ECPublicKeyParameters.java deleted file mode 100644 index 834a5c623..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ECPublicKeyParameters.java +++ /dev/null @@ -1,15 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class ECPublicKeyParameters extends ECKeyParameters { - - public ECPublicKeyParameters(org.bouncycastle.math.ec.ECPoint Q, ECDomainParameters params) { - } - - public org.bouncycastle.math.ec.ECPoint getQ() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ElGamalKeyGenerationParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ElGamalKeyGenerationParameters.java deleted file mode 100644 index 334b4d3b3..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ElGamalKeyGenerationParameters.java +++ /dev/null @@ -1,15 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class ElGamalKeyGenerationParameters extends org.bouncycastle.crypto.KeyGenerationParameters { - - public ElGamalKeyGenerationParameters(javabc.SecureRandom random, ElGamalParameters params) { - } - - public ElGamalParameters getParameters() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ElGamalKeyParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ElGamalKeyParameters.java deleted file mode 100644 index 0945a6ae9..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ElGamalKeyParameters.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class ElGamalKeyParameters extends AsymmetricKeyParameter { - - protected ElGamalKeyParameters(boolean isPrivate, ElGamalParameters params) { - } - - public ElGamalParameters getParameters() { - } - - public int hashCode() { - } - - public boolean equals(Object obj) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ElGamalParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ElGamalParameters.java deleted file mode 100644 index 3940fc0ec..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ElGamalParameters.java +++ /dev/null @@ -1,36 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class ElGamalParameters implements org.bouncycastle.crypto.CipherParameters { - - public ElGamalParameters(javabc.BigInteger p, javabc.BigInteger g) { - } - - public ElGamalParameters(javabc.BigInteger p, javabc.BigInteger g, int l) { - } - - public javabc.BigInteger getP() { - } - - /** - * return the generator - g - */ - public javabc.BigInteger getG() { - } - - /** - * return private value limit - l - */ - public int getL() { - } - - public boolean equals(Object obj) { - } - - public int hashCode() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ElGamalPrivateKeyParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ElGamalPrivateKeyParameters.java deleted file mode 100644 index 716a1e3e2..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ElGamalPrivateKeyParameters.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class ElGamalPrivateKeyParameters extends ElGamalKeyParameters { - - public ElGamalPrivateKeyParameters(javabc.BigInteger x, ElGamalParameters params) { - } - - public javabc.BigInteger getX() { - } - - public boolean equals(Object obj) { - } - - public int hashCode() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ElGamalPublicKeyParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ElGamalPublicKeyParameters.java deleted file mode 100644 index faf3c3bfd..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ElGamalPublicKeyParameters.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class ElGamalPublicKeyParameters extends ElGamalKeyParameters { - - public ElGamalPublicKeyParameters(javabc.BigInteger y, ElGamalParameters params) { - } - - public javabc.BigInteger getY() { - } - - public int hashCode() { - } - - public boolean equals(Object obj) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/GOST3410KeyGenerationParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/GOST3410KeyGenerationParameters.java deleted file mode 100644 index 3caff51e3..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/GOST3410KeyGenerationParameters.java +++ /dev/null @@ -1,15 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class GOST3410KeyGenerationParameters extends org.bouncycastle.crypto.KeyGenerationParameters { - - public GOST3410KeyGenerationParameters(javabc.SecureRandom random, GOST3410Parameters params) { - } - - public GOST3410Parameters getParameters() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/GOST3410KeyParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/GOST3410KeyParameters.java deleted file mode 100644 index 7f68dbf3d..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/GOST3410KeyParameters.java +++ /dev/null @@ -1,15 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class GOST3410KeyParameters extends AsymmetricKeyParameter { - - public GOST3410KeyParameters(boolean isPrivate, GOST3410Parameters params) { - } - - public GOST3410Parameters getParameters() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/GOST3410Parameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/GOST3410Parameters.java deleted file mode 100644 index 8d8ea28f3..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/GOST3410Parameters.java +++ /dev/null @@ -1,33 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class GOST3410Parameters implements org.bouncycastle.crypto.CipherParameters { - - public GOST3410Parameters(javabc.BigInteger p, javabc.BigInteger q, javabc.BigInteger a) { - } - - public GOST3410Parameters(javabc.BigInteger p, javabc.BigInteger q, javabc.BigInteger a, GOST3410ValidationParameters params) { - } - - public javabc.BigInteger getP() { - } - - public javabc.BigInteger getQ() { - } - - public javabc.BigInteger getA() { - } - - public GOST3410ValidationParameters getValidationParameters() { - } - - public int hashCode() { - } - - public boolean equals(Object obj) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/GOST3410PrivateKeyParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/GOST3410PrivateKeyParameters.java deleted file mode 100644 index 34322e672..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/GOST3410PrivateKeyParameters.java +++ /dev/null @@ -1,15 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class GOST3410PrivateKeyParameters extends GOST3410KeyParameters { - - public GOST3410PrivateKeyParameters(javabc.BigInteger x, GOST3410Parameters params) { - } - - public javabc.BigInteger getX() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/GOST3410PublicKeyParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/GOST3410PublicKeyParameters.java deleted file mode 100644 index b5f7a637d..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/GOST3410PublicKeyParameters.java +++ /dev/null @@ -1,15 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class GOST3410PublicKeyParameters extends GOST3410KeyParameters { - - public GOST3410PublicKeyParameters(javabc.BigInteger y, GOST3410Parameters params) { - } - - public javabc.BigInteger getY() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/GOST3410ValidationParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/GOST3410ValidationParameters.java deleted file mode 100644 index a7d3ea4b6..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/GOST3410ValidationParameters.java +++ /dev/null @@ -1,33 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class GOST3410ValidationParameters { - - public GOST3410ValidationParameters(int x0, int c) { - } - - public GOST3410ValidationParameters(long x0L, long cL) { - } - - public int getC() { - } - - public int getX0() { - } - - public long getCL() { - } - - public long getX0L() { - } - - public boolean equals(Object o) { - } - - public int hashCode() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/IESParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/IESParameters.java deleted file mode 100644 index 0523846f3..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/IESParameters.java +++ /dev/null @@ -1,29 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -/** - * parameters for using an integrated cipher in stream mode. - */ -public class IESParameters implements org.bouncycastle.crypto.CipherParameters { - - /** - * @param derivation the derivation parameter for the KDF function. - * @param encoding the encoding parameter for the KDF function. - * @param macKeySize the size of the MAC key (in bits). - */ - public IESParameters(byte[] derivation, byte[] encoding, int macKeySize) { - } - - public byte[] getDerivationV() { - } - - public byte[] getEncodingV() { - } - - public int getMacKeySize() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/IESWithCipherParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/IESWithCipherParameters.java deleted file mode 100644 index c928858d1..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/IESWithCipherParameters.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class IESWithCipherParameters extends IESParameters { - - /** - * @param derivation the derivation parameter for the KDF function. - * @param encoding the encoding parameter for the KDF function. - * @param macKeySize the size of the MAC key (in bits). - * @param cipherKeySize the size of the associated Cipher key (in bits). - */ - public IESWithCipherParameters(byte[] derivation, byte[] encoding, int macKeySize, int cipherKeySize) { - } - - public int getCipherKeySize() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ISO18033KDFParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ISO18033KDFParameters.java deleted file mode 100644 index d8f4eb94b..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ISO18033KDFParameters.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -/** - * parameters for Key derivation functions for ISO-18033 - */ -public class ISO18033KDFParameters implements org.bouncycastle.crypto.DerivationParameters { - - public ISO18033KDFParameters(byte[] seed) { - } - - public byte[] getSeed() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/KDFParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/KDFParameters.java deleted file mode 100644 index a5578b16f..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/KDFParameters.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -/** - * parameters for Key derivation functions for IEEE P1363a - */ -public class KDFParameters implements org.bouncycastle.crypto.DerivationParameters { - - public KDFParameters(byte[] shared, byte[] iv) { - } - - public byte[] getSharedSecret() { - } - - public byte[] getIV() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/KeyParameter.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/KeyParameter.java deleted file mode 100644 index 31b909b4c..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/KeyParameter.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class KeyParameter implements org.bouncycastle.crypto.CipherParameters { - - public KeyParameter(byte[] key) { - } - - public KeyParameter(byte[] key, int keyOff, int keyLen) { - } - - public byte[] getKey() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/MGFParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/MGFParameters.java deleted file mode 100644 index c123d2a10..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/MGFParameters.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -/** - * parameters for mask derivation functions. - */ -public class MGFParameters implements org.bouncycastle.crypto.DerivationParameters { - - public MGFParameters(byte[] seed) { - } - - public MGFParameters(byte[] seed, int off, int len) { - } - - public byte[] getSeed() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/MQVPrivateParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/MQVPrivateParameters.java deleted file mode 100644 index a9df3641f..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/MQVPrivateParameters.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class MQVPrivateParameters implements org.bouncycastle.crypto.CipherParameters { - - public MQVPrivateParameters(ECPrivateKeyParameters staticPrivateKey, ECPrivateKeyParameters ephemeralPrivateKey) { - } - - public MQVPrivateParameters(ECPrivateKeyParameters staticPrivateKey, ECPrivateKeyParameters ephemeralPrivateKey, ECPublicKeyParameters ephemeralPublicKey) { - } - - public ECPrivateKeyParameters getStaticPrivateKey() { - } - - public ECPrivateKeyParameters getEphemeralPrivateKey() { - } - - public ECPublicKeyParameters getEphemeralPublicKey() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/MQVPublicParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/MQVPublicParameters.java deleted file mode 100644 index f89ac4694..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/MQVPublicParameters.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class MQVPublicParameters implements org.bouncycastle.crypto.CipherParameters { - - public MQVPublicParameters(ECPublicKeyParameters staticPublicKey, ECPublicKeyParameters ephemeralPublicKey) { - } - - public ECPublicKeyParameters getStaticPublicKey() { - } - - public ECPublicKeyParameters getEphemeralPublicKey() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/NaccacheSternKeyGenerationParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/NaccacheSternKeyGenerationParameters.java deleted file mode 100644 index 2e969e4d9..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/NaccacheSternKeyGenerationParameters.java +++ /dev/null @@ -1,65 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -/** - * Parameters for NaccacheStern public private key generation. For details on - * this cipher, please see - * - * http://www.gemplus.com/smart/rd/publications/pdf/NS98pkcs.pdf - */ -public class NaccacheSternKeyGenerationParameters extends org.bouncycastle.crypto.KeyGenerationParameters { - - /** - * Parameters for generating a NaccacheStern KeyPair. - * - * @param random - * The source of randomness - * @param strength - * The desired strength of the Key in Bits - * @param certainty - * the probability that the generated primes are not really prime - * as integer: 2^(-certainty) is then the probability - * @param cntSmallPrimes - * How many small key factors are desired - */ - public NaccacheSternKeyGenerationParameters(javabc.SecureRandom random, int strength, int certainty, int cntSmallPrimes) { - } - - /** - * Parameters for a NaccacheStern KeyPair. - * - * @param random - * The source of randomness - * @param strength - * The desired strength of the Key in Bits - * @param certainty - * the probability that the generated primes are not really prime - * as integer: 2^(-certainty) is then the probability - * @param cntSmallPrimes - * How many small key factors are desired - * @param debug - * Turn debugging on or off (reveals secret information, use with - * caution) - */ - public NaccacheSternKeyGenerationParameters(javabc.SecureRandom random, int strength, int certainty, int cntSmallPrimes, boolean debug) { - } - - /** - * @return Returns the certainty. - */ - public int getCertainty() { - } - - /** - * @return Returns the cntSmallPrimes. - */ - public int getCntSmallPrimes() { - } - - public boolean isDebug() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/NaccacheSternKeyParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/NaccacheSternKeyParameters.java deleted file mode 100644 index 97e9998a4..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/NaccacheSternKeyParameters.java +++ /dev/null @@ -1,39 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -/** - * Public key parameters for NaccacheStern cipher. For details on this cipher, - * please see - * - * http://www.gemplus.com/smart/rd/publications/pdf/NS98pkcs.pdf - */ -public class NaccacheSternKeyParameters extends AsymmetricKeyParameter { - - /** - * @param privateKey - */ - public NaccacheSternKeyParameters(boolean privateKey, javabc.BigInteger g, javabc.BigInteger n, int lowerSigmaBound) { - } - - /** - * @return Returns the g. - */ - public javabc.BigInteger getG() { - } - - /** - * @return Returns the lowerSigmaBound. - */ - public int getLowerSigmaBound() { - } - - /** - * @return Returns the n. - */ - public javabc.BigInteger getModulus() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/NaccacheSternPrivateKeyParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/NaccacheSternPrivateKeyParameters.java deleted file mode 100644 index 18095d960..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/NaccacheSternPrivateKeyParameters.java +++ /dev/null @@ -1,39 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -/** - * Private key parameters for NaccacheStern cipher. For details on this cipher, - * please see - * - * http://www.gemplus.com/smart/rd/publications/pdf/NS98pkcs.pdf - */ -public class NaccacheSternPrivateKeyParameters extends NaccacheSternKeyParameters { - - /** - * Constructs a NaccacheSternPrivateKey - * - * @param g - * the public enryption parameter g - * @param n - * the public modulus n = p*q - * @param lowerSigmaBound - * the public lower sigma bound up to which data can be encrypted - * @param smallPrimes - * the small primes, of which sigma is constructed in the right - * order - * @param phi_n - * the private modulus phi(n) = (p-1)(q-1) - */ - public NaccacheSternPrivateKeyParameters(javabc.BigInteger g, javabc.BigInteger n, int lowerSigmaBound, java.util.Vector smallPrimes, javabc.BigInteger phi_n) { - } - - public javabc.BigInteger getPhi_n() { - } - - public java.util.Vector getSmallPrimes() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ParametersWithIV.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ParametersWithIV.java deleted file mode 100644 index 236dfbdf4..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ParametersWithIV.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class ParametersWithIV implements org.bouncycastle.crypto.CipherParameters { - - public ParametersWithIV(org.bouncycastle.crypto.CipherParameters parameters, byte[] iv) { - } - - public ParametersWithIV(org.bouncycastle.crypto.CipherParameters parameters, byte[] iv, int ivOff, int ivLen) { - } - - public byte[] getIV() { - } - - public org.bouncycastle.crypto.CipherParameters getParameters() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ParametersWithRandom.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ParametersWithRandom.java deleted file mode 100644 index bda7f9311..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ParametersWithRandom.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class ParametersWithRandom implements org.bouncycastle.crypto.CipherParameters { - - public ParametersWithRandom(org.bouncycastle.crypto.CipherParameters parameters, javabc.SecureRandom random) { - } - - public ParametersWithRandom(org.bouncycastle.crypto.CipherParameters parameters) { - } - - public javabc.SecureRandom getRandom() { - } - - public org.bouncycastle.crypto.CipherParameters getParameters() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ParametersWithSBox.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ParametersWithSBox.java deleted file mode 100644 index 62a86f389..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ParametersWithSBox.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class ParametersWithSBox implements org.bouncycastle.crypto.CipherParameters { - - public ParametersWithSBox(org.bouncycastle.crypto.CipherParameters parameters, byte[] sBox) { - } - - public byte[] getSBox() { - } - - public org.bouncycastle.crypto.CipherParameters getParameters() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ParametersWithSalt.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ParametersWithSalt.java deleted file mode 100644 index d7950e8bf..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/ParametersWithSalt.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -/** - * Cipher parameters with a fixed salt value associated with them. - */ -public class ParametersWithSalt implements org.bouncycastle.crypto.CipherParameters { - - public ParametersWithSalt(org.bouncycastle.crypto.CipherParameters parameters, byte[] salt) { - } - - public ParametersWithSalt(org.bouncycastle.crypto.CipherParameters parameters, byte[] salt, int saltOff, int saltLen) { - } - - public byte[] getSalt() { - } - - public org.bouncycastle.crypto.CipherParameters getParameters() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/RC2Parameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/RC2Parameters.java deleted file mode 100644 index be48e32d2..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/RC2Parameters.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class RC2Parameters implements org.bouncycastle.crypto.CipherParameters { - - public RC2Parameters(byte[] key) { - } - - public RC2Parameters(byte[] key, int bits) { - } - - public byte[] getKey() { - } - - public int getEffectiveKeyBits() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/RC5Parameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/RC5Parameters.java deleted file mode 100644 index 0aa9e820e..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/RC5Parameters.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class RC5Parameters implements org.bouncycastle.crypto.CipherParameters { - - public RC5Parameters(byte[] key, int rounds) { - } - - public byte[] getKey() { - } - - public int getRounds() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/RSABlindingParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/RSABlindingParameters.java deleted file mode 100644 index 960744f9c..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/RSABlindingParameters.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class RSABlindingParameters implements org.bouncycastle.crypto.CipherParameters { - - public RSABlindingParameters(RSAKeyParameters publicKey, javabc.BigInteger blindingFactor) { - } - - public RSAKeyParameters getPublicKey() { - } - - public javabc.BigInteger getBlindingFactor() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/RSAKeyGenerationParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/RSAKeyGenerationParameters.java deleted file mode 100644 index 89ca66ea3..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/RSAKeyGenerationParameters.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class RSAKeyGenerationParameters extends org.bouncycastle.crypto.KeyGenerationParameters { - - public RSAKeyGenerationParameters(javabc.BigInteger publicExponent, javabc.SecureRandom random, int strength, int certainty) { - } - - public javabc.BigInteger getPublicExponent() { - } - - public int getCertainty() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/RSAKeyParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/RSAKeyParameters.java deleted file mode 100644 index 30a83c0cf..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/RSAKeyParameters.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class RSAKeyParameters extends AsymmetricKeyParameter { - - public RSAKeyParameters(boolean isPrivate, javabc.BigInteger modulus, javabc.BigInteger exponent) { - } - - public javabc.BigInteger getModulus() { - } - - public javabc.BigInteger getExponent() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/RSAPrivateCrtKeyParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/RSAPrivateCrtKeyParameters.java deleted file mode 100644 index 186cc8da5..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/params/RSAPrivateCrtKeyParameters.java +++ /dev/null @@ -1,33 +0,0 @@ -/** - * - * Classes for parameter objects for ciphers and generators. - */ -package org.bouncycastle.crypto.params; - - -public class RSAPrivateCrtKeyParameters extends RSAKeyParameters { - - /** - * - */ - public RSAPrivateCrtKeyParameters(javabc.BigInteger modulus, javabc.BigInteger publicExponent, javabc.BigInteger privateExponent, javabc.BigInteger p, javabc.BigInteger q, javabc.BigInteger dP, javabc.BigInteger dQ, javabc.BigInteger qInv) { - } - - public javabc.BigInteger getPublicExponent() { - } - - public javabc.BigInteger getP() { - } - - public javabc.BigInteger getQ() { - } - - public javabc.BigInteger getDP() { - } - - public javabc.BigInteger getDQ() { - } - - public javabc.BigInteger getQInv() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/prng/DigestRandomGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/prng/DigestRandomGenerator.java deleted file mode 100644 index 2764f2199..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/prng/DigestRandomGenerator.java +++ /dev/null @@ -1,31 +0,0 @@ -/** - * - * Lightweight psuedo-random number generators. - */ -package org.bouncycastle.crypto.prng; - - -/** - * Random generation based on the digest with counter. Calling addSeedMaterial will - * always increase the entropy of the hash. - *
- * Internal access to the digest is synchronized so a single one of these can be shared. - *
- */ -public class DigestRandomGenerator implements RandomGenerator { - - public DigestRandomGenerator(org.bouncycastle.crypto.Digest digest) { - } - - public void addSeedMaterial(byte[] inSeed) { - } - - public void addSeedMaterial(long rSeed) { - } - - public void nextBytes(byte[] bytes) { - } - - public void nextBytes(byte[] bytes, int start, int len) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/prng/RandomGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/prng/RandomGenerator.java deleted file mode 100644 index eca07afda..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/prng/RandomGenerator.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - * - * Lightweight psuedo-random number generators. - */ -package org.bouncycastle.crypto.prng; - - -/** - * Generic interface for objects generating random bytes. - */ -public interface RandomGenerator { - - /** - * Add more seed material to the generator. - * - * @param seed a byte array to be mixed into the generator's state. - */ - public void addSeedMaterial(byte[] seed); - - /** - * Add more seed material to the generator. - * - * @param seed a long value to be mixed into the generator's state. - */ - public void addSeedMaterial(long seed); - - /** - * Fill bytes with random values. - * - * @param bytes byte array to be filled. - */ - public void nextBytes(byte[] bytes); - - /** - * Fill part of bytes with random values. - * - * @param bytes byte array to be filled. - * @param start index to start filling at. - * @param len length of segment to fill. - */ - public void nextBytes(byte[] bytes, int start, int len); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/prng/ReversedWindowGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/prng/ReversedWindowGenerator.java deleted file mode 100644 index 19fca2b1a..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/prng/ReversedWindowGenerator.java +++ /dev/null @@ -1,53 +0,0 @@ -/** - * - * Lightweight psuedo-random number generators. - */ -package org.bouncycastle.crypto.prng; - - -/** - * Takes bytes generated by an underling RandomGenerator and reverses the order in - * each small window (of configurable size). - *- * Access to internals is synchronized so a single one of these can be shared. - *
- */ -public class ReversedWindowGenerator implements RandomGenerator { - - public ReversedWindowGenerator(RandomGenerator generator, int windowSize) { - } - - /** - * Add more seed material to the generator. - * - * @param seed a byte array to be mixed into the generator's state. - */ - public void addSeedMaterial(byte[] seed) { - } - - /** - * Add more seed material to the generator. - * - * @param seed a long value to be mixed into the generator's state. - */ - public void addSeedMaterial(long seed) { - } - - /** - * Fill bytes with random values. - * - * @param bytes byte array to be filled. - */ - public void nextBytes(byte[] bytes) { - } - - /** - * Fill part of bytes with random values. - * - * @param bytes byte array to be filled. - * @param start index to start filling at. - * @param len length of segment to fill. - */ - public void nextBytes(byte[] bytes, int start, int len) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/prng/ThreadedSeedGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/prng/ThreadedSeedGenerator.java deleted file mode 100644 index e0431a560..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/prng/ThreadedSeedGenerator.java +++ /dev/null @@ -1,32 +0,0 @@ -/** - * - * Lightweight psuedo-random number generators. - */ -package org.bouncycastle.crypto.prng; - - -/** - * A thread based seed generator - one source of randomness. - *- * Based on an idea from Marcus Lippert. - *
- */ -public class ThreadedSeedGenerator { - - public ThreadedSeedGenerator() { - } - - /** - * Generate seed bytes. Set fast to false for best quality. - *- * If fast is set to true, the code should be round about 8 times faster when - * generating a long sequence of random bytes. 20 bytes of random values using - * the fast mode take less than half a second on a Nokia e70. If fast is set to false, - * it takes round about 2500 ms. - *
- * @param numBytes the number of bytes to generate - * @param fast true if fast mode should be used - */ - public byte[] generateSeed(int numBytes, boolean fast) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/prng/VMPCRandomGenerator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/prng/VMPCRandomGenerator.java deleted file mode 100644 index 6a6f43b39..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/prng/VMPCRandomGenerator.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * - * Lightweight psuedo-random number generators. - */ -package org.bouncycastle.crypto.prng; - - -public class VMPCRandomGenerator implements RandomGenerator { - - public VMPCRandomGenerator() { - } - - public void addSeedMaterial(byte[] seed) { - } - - public void addSeedMaterial(long seed) { - } - - public void nextBytes(byte[] bytes) { - } - - public void nextBytes(byte[] bytes, int start, int len) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/DSADigestSigner.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/DSADigestSigner.java deleted file mode 100644 index b6901875a..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/DSADigestSigner.java +++ /dev/null @@ -1,40 +0,0 @@ -/** - * - * Basic signers. - */ -package org.bouncycastle.crypto.signers; - - -public class DSADigestSigner implements org.bouncycastle.crypto.Signer { - - public DSADigestSigner(org.bouncycastle.crypto.DSA signer, org.bouncycastle.crypto.Digest digest) { - } - - public void init(boolean forSigning, org.bouncycastle.crypto.CipherParameters parameters) { - } - - /** - * update the internal digest with the byte b - */ - public void update(byte input) { - } - - /** - * update the internal digest with the byte array in - */ - public void update(byte[] input, int inOff, int length) { - } - - /** - * Generate a signature for the message we've been loaded with using - * the key we were initialised with. - */ - public byte[] generateSignature() { - } - - public boolean verifySignature(byte[] signature) { - } - - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/DSASigner.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/DSASigner.java deleted file mode 100644 index 1ede77858..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/DSASigner.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - * - * Basic signers. - */ -package org.bouncycastle.crypto.signers; - - -/** - * The Digital Signature Algorithm - as described in "Handbook of Applied - * Cryptography", pages 452 - 453. - */ -public class DSASigner implements org.bouncycastle.crypto.DSA { - - public DSASigner() { - } - - public void init(boolean forSigning, org.bouncycastle.crypto.CipherParameters param) { - } - - /** - * generate a signature for the given message using the key we were - * initialised with. For conventional DSA the message should be a SHA-1 - * hash of the message of interest. - * - * @param message the message that will be verified later. - */ - public javabc.BigInteger[] generateSignature(byte[] message) { - } - - /** - * return true if the value r and s represent a DSA signature for - * the passed in message for standard DSA the message should be a - * SHA-1 hash of the real message to be verified. - */ - public boolean verifySignature(byte[] message, javabc.BigInteger r, javabc.BigInteger s) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/ECDSASigner.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/ECDSASigner.java deleted file mode 100644 index 6703b4aa7..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/ECDSASigner.java +++ /dev/null @@ -1,36 +0,0 @@ -/** - * - * Basic signers. - */ -package org.bouncycastle.crypto.signers; - - -/** - * EC-DSA as described in X9.62 - */ -public class ECDSASigner implements org.bouncycastle.math.ec.ECConstants, org.bouncycastle.crypto.DSA { - - public ECDSASigner() { - } - - public void init(boolean forSigning, org.bouncycastle.crypto.CipherParameters param) { - } - - /** - * generate a signature for the given message using the key we were - * initialised with. For conventional DSA the message should be a SHA-1 - * hash of the message of interest. - * - * @param message the message that will be verified later. - */ - public javabc.BigInteger[] generateSignature(byte[] message) { - } - - /** - * return true if the value r and s represent a DSA signature for - * the passed in message (for standard DSA the message should be - * a SHA-1 hash of the real message to be verified). - */ - public boolean verifySignature(byte[] message, javabc.BigInteger r, javabc.BigInteger s) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/ECGOST3410Signer.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/ECGOST3410Signer.java deleted file mode 100644 index 7a5f31934..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/ECGOST3410Signer.java +++ /dev/null @@ -1,36 +0,0 @@ -/** - * - * Basic signers. - */ -package org.bouncycastle.crypto.signers; - - -/** - * GOST R 34.10-2001 Signature Algorithm - */ -public class ECGOST3410Signer implements org.bouncycastle.crypto.DSA { - - public ECGOST3410Signer() { - } - - public void init(boolean forSigning, org.bouncycastle.crypto.CipherParameters param) { - } - - /** - * generate a signature for the given message using the key we were - * initialised with. For conventional GOST3410 the message should be a GOST3411 - * hash of the message of interest. - * - * @param message the message that will be verified later. - */ - public javabc.BigInteger[] generateSignature(byte[] message) { - } - - /** - * return true if the value r and s represent a GOST3410 signature for - * the passed in message (for standard GOST3410 the message should be - * a GOST3411 hash of the real message to be verified). - */ - public boolean verifySignature(byte[] message, javabc.BigInteger r, javabc.BigInteger s) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/ECNRSigner.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/ECNRSigner.java deleted file mode 100644 index 6b2d007cd..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/ECNRSigner.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * - * Basic signers. - */ -package org.bouncycastle.crypto.signers; - - -/** - * EC-NR as described in IEEE 1363-2000 - */ -public class ECNRSigner implements org.bouncycastle.crypto.DSA { - - public ECNRSigner() { - } - - public void init(boolean forSigning, org.bouncycastle.crypto.CipherParameters param) { - } - - /** - * generate a signature for the given message using the key we were - * initialised with. Generally, the order of the curve should be at - * least as long as the hash of the message of interest, and with - * ECNR it *must* be at least as long. - * - * @param digest the digest to be signed. - * @exception DataLengthException if the digest is longer than the key allows - */ - public javabc.BigInteger[] generateSignature(byte[] digest) { - } - - /** - * return true if the value r and s represent a signature for the - * message passed in. Generally, the order of the curve should be at - * least as long as the hash of the message of interest, and with - * ECNR, it *must* be at least as long. But just in case the signer - * applied mod(n) to the longer digest, this implementation will - * apply mod(n) during verification. - * - * @param digest the digest to be verified. - * @param r the r value of the signature. - * @param s the s value of the signature. - * @exception DataLengthException if the digest is longer than the key allows - */ - public boolean verifySignature(byte[] digest, javabc.BigInteger r, javabc.BigInteger s) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/GOST3410Signer.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/GOST3410Signer.java deleted file mode 100644 index a7ce9825a..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/GOST3410Signer.java +++ /dev/null @@ -1,36 +0,0 @@ -/** - * - * Basic signers. - */ -package org.bouncycastle.crypto.signers; - - -/** - * GOST R 34.10-94 Signature Algorithm - */ -public class GOST3410Signer implements org.bouncycastle.crypto.DSA { - - public GOST3410Signer() { - } - - public void init(boolean forSigning, org.bouncycastle.crypto.CipherParameters param) { - } - - /** - * generate a signature for the given message using the key we were - * initialised with. For conventional GOST3410 the message should be a GOST3411 - * hash of the message of interest. - * - * @param message the message that will be verified later. - */ - public javabc.BigInteger[] generateSignature(byte[] message) { - } - - /** - * return true if the value r and s represent a GOST3410 signature for - * the passed in message for standard GOST3410 the message should be a - * GOST3411 hash of the real message to be verified. - */ - public boolean verifySignature(byte[] message, javabc.BigInteger r, javabc.BigInteger s) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/GenericSigner.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/GenericSigner.java deleted file mode 100644 index d3c065d63..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/GenericSigner.java +++ /dev/null @@ -1,52 +0,0 @@ -/** - * - * Basic signers. - */ -package org.bouncycastle.crypto.signers; - - -public class GenericSigner implements org.bouncycastle.crypto.Signer { - - public GenericSigner(org.bouncycastle.crypto.AsymmetricBlockCipher engine, org.bouncycastle.crypto.Digest digest) { - } - - /** - * initialise the signer for signing or verification. - * - * @param forSigning - * true if for signing, false otherwise - * @param parameters - * necessary parameters. - */ - public void init(boolean forSigning, org.bouncycastle.crypto.CipherParameters parameters) { - } - - /** - * update the internal digest with the byte b - */ - public void update(byte input) { - } - - /** - * update the internal digest with the byte array in - */ - public void update(byte[] input, int inOff, int length) { - } - - /** - * Generate a signature for the message we've been loaded with using the key - * we were initialised with. - */ - public byte[] generateSignature() { - } - - /** - * return true if the internal state represents the signature described in - * the passed in array. - */ - public boolean verifySignature(byte[] signature) { - } - - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/ISO9796d2PSSSigner.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/ISO9796d2PSSSigner.java deleted file mode 100644 index 2b20f0a33..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/ISO9796d2PSSSigner.java +++ /dev/null @@ -1,112 +0,0 @@ -/** - * - * Basic signers. - */ -package org.bouncycastle.crypto.signers; - - -/** - * ISO9796-2 - mechanism using a hash function with recovery (scheme 2 and 3). - *- * Note: the usual length for the salt is the length of the hash - * function used in bytes. - */ -public class ISO9796d2PSSSigner implements org.bouncycastle.crypto.SignerWithRecovery { - - public static final int TRAILER_IMPLICIT = 188; - - public static final int TRAILER_RIPEMD160 = 12748; - - public static final int TRAILER_RIPEMD128 = 13004; - - public static final int TRAILER_SHA1 = 13260; - - /** - * Generate a signer for the with either implicit or explicit trailers - * for ISO9796-2, scheme 2 or 3. - * - * @param cipher base cipher to use for signature creation/verification - * @param digest digest to use. - * @param saltLength length of salt in bytes. - * @param implicit whether or not the trailer is implicit or gives the hash. - */ - public ISO9796d2PSSSigner(org.bouncycastle.crypto.AsymmetricBlockCipher cipher, org.bouncycastle.crypto.Digest digest, int saltLength, boolean implicit) { - } - - /** - * Constructor for a signer with an explicit digest trailer. - * - * @param cipher cipher to use. - * @param digest digest to sign with. - * @param saltLength length of salt in bytes. - */ - public ISO9796d2PSSSigner(org.bouncycastle.crypto.AsymmetricBlockCipher cipher, org.bouncycastle.crypto.Digest digest, int saltLength) { - } - - /** - * Initialise the signer. - * - * @param forSigning true if for signing, false if for verification. - * @param param parameters for signature generation/verification. If the - * parameters are for generation they should be a ParametersWithRandom, - * a ParametersWithSalt, or just an RSAKeyParameters object. If RSAKeyParameters - * are passed in a SecureRandom will be created. - * @exception IllegalArgumentException if wrong parameter type or a fixed - * salt is passed in which is the wrong length. - */ - public void init(boolean forSigning, org.bouncycastle.crypto.CipherParameters param) { - } - - public void updateWithRecoveredMessage(byte[] signature) { - } - - /** - * update the internal digest with the byte b - */ - public void update(byte b) { - } - - /** - * update the internal digest with the byte array in - */ - public void update(byte[] in, int off, int len) { - } - - /** - * reset the internal state - */ - public void reset() { - } - - /** - * generate a signature for the loaded message using the key we were - * initialised with. - */ - public byte[] generateSignature() { - } - - /** - * return true if the signature represents a ISO9796-2 signature - * for the passed in message. - */ - public boolean verifySignature(byte[] signature) { - } - - /** - * Return true if the full message was recoveredMessage. - * - * @return true on full message recovery, false otherwise, or if not sure. - * @see org.bouncycastle.crypto.SignerWithRecovery#hasFullMessage() - */ - public boolean hasFullMessage() { - } - - /** - * Return a reference to the recoveredMessage message. - * - * @return the full/partial recoveredMessage message. - * @see org.bouncycastle.crypto.SignerWithRecovery#getRecoveredMessage() - */ - public byte[] getRecoveredMessage() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/ISO9796d2Signer.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/ISO9796d2Signer.java deleted file mode 100644 index 4e4c74c8c..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/ISO9796d2Signer.java +++ /dev/null @@ -1,104 +0,0 @@ -/** - * - * Basic signers. - */ -package org.bouncycastle.crypto.signers; - - -/** - * ISO9796-2 - mechanism using a hash function with recovery (scheme 1) - */ -public class ISO9796d2Signer implements org.bouncycastle.crypto.SignerWithRecovery { - - public static final int TRAILER_IMPLICIT = 188; - - public static final int TRAILER_RIPEMD160 = 12748; - - public static final int TRAILER_RIPEMD128 = 13004; - - public static final int TRAILER_SHA1 = 13260; - - public static final int TRAILER_SHA256 = 13516; - - public static final int TRAILER_SHA512 = 13772; - - public static final int TRAILER_SHA384 = 14028; - - public static final int TRAILER_WHIRLPOOL = 14284; - - /** - * Generate a signer for the with either implicit or explicit trailers - * for ISO9796-2. - * - * @param cipher base cipher to use for signature creation/verification - * @param digest digest to use. - * @param implicit whether or not the trailer is implicit or gives the hash. - */ - public ISO9796d2Signer(org.bouncycastle.crypto.AsymmetricBlockCipher cipher, org.bouncycastle.crypto.Digest digest, boolean implicit) { - } - - /** - * Constructor for a signer with an explicit digest trailer. - * - * @param cipher cipher to use. - * @param digest digest to sign with. - */ - public ISO9796d2Signer(org.bouncycastle.crypto.AsymmetricBlockCipher cipher, org.bouncycastle.crypto.Digest digest) { - } - - public void init(boolean forSigning, org.bouncycastle.crypto.CipherParameters param) { - } - - public void updateWithRecoveredMessage(byte[] signature) { - } - - /** - * update the internal digest with the byte b - */ - public void update(byte b) { - } - - /** - * update the internal digest with the byte array in - */ - public void update(byte[] in, int off, int len) { - } - - /** - * reset the internal state - */ - public void reset() { - } - - /** - * generate a signature for the loaded message using the key we were - * initialised with. - */ - public byte[] generateSignature() { - } - - /** - * return true if the signature represents a ISO9796-2 signature - * for the passed in message. - */ - public boolean verifySignature(byte[] signature) { - } - - /** - * Return true if the full message was recoveredMessage. - * - * @return true on full message recovery, false otherwise. - * @see org.bouncycastle.crypto.SignerWithRecovery#hasFullMessage() - */ - public boolean hasFullMessage() { - } - - /** - * Return a reference to the recoveredMessage message. - * - * @return the full/partial recoveredMessage message. - * @see org.bouncycastle.crypto.SignerWithRecovery#getRecoveredMessage() - */ - public byte[] getRecoveredMessage() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/PSSSigner.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/PSSSigner.java deleted file mode 100644 index 95bfe531a..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/PSSSigner.java +++ /dev/null @@ -1,71 +0,0 @@ -/** - * - * Basic signers. - */ -package org.bouncycastle.crypto.signers; - - -/** - * RSA-PSS as described in PKCS# 1 v 2.1. - *
- * Note: the usual value for the salt length is the number of - * bytes in the hash function. - */ -public class PSSSigner implements org.bouncycastle.crypto.Signer { - - public static final byte TRAILER_IMPLICIT = -68; - - /** - * basic constructor - * - * @param cipher the asymmetric cipher to use. - * @param digest the digest to use. - * @param sLen the length of the salt to use (in bytes). - */ - public PSSSigner(org.bouncycastle.crypto.AsymmetricBlockCipher cipher, org.bouncycastle.crypto.Digest digest, int sLen) { - } - - public PSSSigner(org.bouncycastle.crypto.AsymmetricBlockCipher cipher, org.bouncycastle.crypto.Digest contentDigest, org.bouncycastle.crypto.Digest mgfDigest, int sLen) { - } - - public PSSSigner(org.bouncycastle.crypto.AsymmetricBlockCipher cipher, org.bouncycastle.crypto.Digest digest, int sLen, byte trailer) { - } - - public PSSSigner(org.bouncycastle.crypto.AsymmetricBlockCipher cipher, org.bouncycastle.crypto.Digest contentDigest, org.bouncycastle.crypto.Digest mgfDigest, int sLen, byte trailer) { - } - - public void init(boolean forSigning, org.bouncycastle.crypto.CipherParameters param) { - } - - /** - * update the internal digest with the byte b - */ - public void update(byte b) { - } - - /** - * update the internal digest with the byte array in - */ - public void update(byte[] in, int off, int len) { - } - - /** - * reset the internal state - */ - public void reset() { - } - - /** - * generate a signature for the message we've been loaded with using - * the key we were initialised with. - */ - public byte[] generateSignature() { - } - - /** - * return true if the internal state represents the signature described - * in the passed in array. - */ - public boolean verifySignature(byte[] signature) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/RSADigestSigner.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/RSADigestSigner.java deleted file mode 100644 index 57d1ee03a..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/signers/RSADigestSigner.java +++ /dev/null @@ -1,58 +0,0 @@ -/** - * - * Basic signers. - */ -package org.bouncycastle.crypto.signers; - - -public class RSADigestSigner implements org.bouncycastle.crypto.Signer { - - public RSADigestSigner(org.bouncycastle.crypto.Digest digest) { - } - - /** - * @deprecated - */ - public String getAlgorithmName() { - } - - /** - * initialise the signer for signing or verification. - * - * @param forSigning - * true if for signing, false otherwise - * @param parameters - * necessary parameters. - */ - public void init(boolean forSigning, org.bouncycastle.crypto.CipherParameters parameters) { - } - - /** - * update the internal digest with the byte b - */ - public void update(byte input) { - } - - /** - * update the internal digest with the byte array in - */ - public void update(byte[] input, int inOff, int length) { - } - - /** - * Generate a signature for the message we've been loaded with using the key - * we were initialised with. - */ - public byte[] generateSignature() { - } - - /** - * return true if the internal state represents the signature described in - * the passed in array. - */ - public boolean verifySignature(byte[] signature) { - } - - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/AlertDescription.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/AlertDescription.java deleted file mode 100644 index 2e1ca2d28..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/AlertDescription.java +++ /dev/null @@ -1,75 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -/** - * RFC 2246 7.2 - */ -public class AlertDescription { - - public static final short close_notify = 0; - - public static final short unexpected_message = 10; - - public static final short bad_record_mac = 20; - - public static final short decryption_failed = 21; - - public static final short record_overflow = 22; - - public static final short decompression_failure = 30; - - public static final short handshake_failure = 40; - - public static final short no_certificate = 41; - - public static final short bad_certificate = 42; - - public static final short unsupported_certificate = 43; - - public static final short certificate_revoked = 44; - - public static final short certificate_expired = 45; - - public static final short certificate_unknown = 46; - - public static final short illegal_parameter = 47; - - public static final short unknown_ca = 48; - - public static final short access_denied = 49; - - public static final short decode_error = 50; - - public static final short decrypt_error = 51; - - public static final short export_restriction = 60; - - public static final short protocol_version = 70; - - public static final short insufficient_security = 71; - - public static final short internal_error = 80; - - public static final short user_canceled = 90; - - public static final short no_renegotiation = 100; - - public static final short unsupported_extension = 110; - - public static final short certificate_unobtainable = 111; - - public static final short unrecognized_name = 112; - - public static final short bad_certificate_status_response = 113; - - public static final short bad_certificate_hash_value = 114; - - public static final short unknown_psk_identity = 115; - - public AlertDescription() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/AlertLevel.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/AlertLevel.java deleted file mode 100644 index 6c10fb2dc..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/AlertLevel.java +++ /dev/null @@ -1,19 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -/** - * RFC 2246 7.2 - */ -public class AlertLevel { - - public static final short warning = 1; - - public static final short fatal = 2; - - public AlertLevel() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/AlwaysValidVerifyer.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/AlwaysValidVerifyer.java deleted file mode 100644 index 1be021764..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/AlwaysValidVerifyer.java +++ /dev/null @@ -1,29 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -/** - * A certificate verifyer, that will always return true. - * - *
- * DO NOT USE THIS FILE UNLESS YOU KNOW EXACTLY WHAT YOU ARE DOING. - *- * - * @deprecated Perform certificate verification in TlsAuthentication implementation - */ -public class AlwaysValidVerifyer implements CertificateVerifyer { - - public AlwaysValidVerifyer() { - } - - /** - * Return true. - * - * @see org.bouncycastle.crypto.tls.CertificateVerifyer#isValid(org.bouncycastle.asn1.x509.X509CertificateStructure[]) - */ - public boolean isValid(org.bouncycastle.asn1.x509.X509CertificateStructure[] certs) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/ByteQueue.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/ByteQueue.java deleted file mode 100644 index f733ab2c9..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/ByteQueue.java +++ /dev/null @@ -1,56 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -/** - * A queue for bytes. This file could be more optimized. - */ -public class ByteQueue { - - public ByteQueue() { - } - - /** - * @return The smallest number which can be written as 2^x which is bigger than i. - */ - public static final int nextTwoPow(int i) { - } - - /** - * Read data from the buffer. - * - * @param buf The buffer where the read data will be copied to. - * @param offset How many bytes to skip at the beginning of buf. - * @param len How many bytes to read at all. - * @param skip How many bytes from our data to skip. - */ - public void read(byte[] buf, int offset, int len, int skip) { - } - - /** - * Add some data to our buffer. - * - * @param data A byte-array to read data from. - * @param offset How many bytes to skip at the beginning of the array. - * @param len How many bytes to read from the array. - */ - public void addData(byte[] data, int offset, int len) { - } - - /** - * Remove some bytes from our data from the beginning. - * - * @param i How many bytes to remove. - */ - public void removeData(int i) { - } - - /** - * @return The number of bytes which are available in this buffer. - */ - public int size() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/Certificate.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/Certificate.java deleted file mode 100644 index 336f1134c..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/Certificate.java +++ /dev/null @@ -1,55 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -/** - * A representation for a certificate chain as used by a tls server. - */ -public class Certificate { - - public static final Certificate EMPTY_CHAIN; - - /** - * The certificates. - */ - protected org.bouncycastle.asn1.x509.X509CertificateStructure[] certs; - - /** - * Private constructor from a cert array. - * - * @param certs The certs the chain should contain. - */ - public Certificate(org.bouncycastle.asn1.x509.X509CertificateStructure[] certs) { - } - - /** - * Parse the ServerCertificate message. - * - * @param is The stream where to parse from. - * @return A Certificate object with the certs, the server has sended. - * @throws IOException If something goes wrong during parsing. - */ - protected static Certificate parse(java.io.InputStream is) { - } - - /** - * Encodes version of the ClientCertificate message - * - * @param os stream to write the message to - * @throws IOException If something goes wrong - */ - protected void encode(java.io.OutputStream os) { - } - - /** - * @return An array which contains the certs, this chain contains. - */ - public org.bouncycastle.asn1.x509.X509CertificateStructure[] getCerts() { - } - - public boolean isEmpty() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/CertificateRequest.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/CertificateRequest.java deleted file mode 100644 index e3054b20a..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/CertificateRequest.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public class CertificateRequest { - - public CertificateRequest(short[] certificateTypes, java.util.Vector certificateAuthorities) { - } - - public short[] getCertificateTypes() { - } - - /** - * @return Vector of X500Name - */ - public java.util.Vector getCertificateAuthorities() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/CertificateVerifyer.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/CertificateVerifyer.java deleted file mode 100644 index 740bd426d..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/CertificateVerifyer.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -/** - * This should be implemented by any class which can find out, if a given certificate - * chain is being accepted by an client. - * - * @deprecated Perform certificate verification in TlsAuthentication implementation - */ -public interface CertificateVerifyer { - - /** - * @param certs The certs, which are part of the chain. - * @return True, if the chain is accepted, false otherwise. - */ - public boolean isValid(org.bouncycastle.asn1.x509.X509CertificateStructure[] certs); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/CipherSuite.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/CipherSuite.java deleted file mode 100644 index 1635a7e78..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/CipherSuite.java +++ /dev/null @@ -1,221 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -/** - * RFC 2246 A.5 - */ -public class CipherSuite { - - public static final int TLS_NULL_WITH_NULL_NULL = 0; - - public static final int TLS_RSA_WITH_NULL_MD5 = 1; - - public static final int TLS_RSA_WITH_NULL_SHA = 2; - - public static final int TLS_RSA_EXPORT_WITH_RC4_40_MD5 = 3; - - public static final int TLS_RSA_WITH_RC4_128_MD5 = 4; - - public static final int TLS_RSA_WITH_RC4_128_SHA = 5; - - public static final int TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5 = 6; - - public static final int TLS_RSA_WITH_IDEA_CBC_SHA = 7; - - public static final int TLS_RSA_EXPORT_WITH_DES40_CBC_SHA = 8; - - public static final int TLS_RSA_WITH_DES_CBC_SHA = 9; - - public static final int TLS_RSA_WITH_3DES_EDE_CBC_SHA = 10; - - public static final int TLS_DH_DSS_EXPORT_WITH_DES40_CBC_SHA = 11; - - public static final int TLS_DH_DSS_WITH_DES_CBC_SHA = 12; - - public static final int TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA = 13; - - public static final int TLS_DH_RSA_EXPORT_WITH_DES40_CBC_SHA = 14; - - public static final int TLS_DH_RSA_WITH_DES_CBC_SHA = 15; - - public static final int TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA = 16; - - public static final int TLS_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA = 17; - - public static final int TLS_DHE_DSS_WITH_DES_CBC_SHA = 18; - - public static final int TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA = 19; - - public static final int TLS_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA = 20; - - public static final int TLS_DHE_RSA_WITH_DES_CBC_SHA = 21; - - public static final int TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA = 22; - - public static final int TLS_DH_anon_EXPORT_WITH_RC4_40_MD5 = 23; - - public static final int TLS_DH_anon_WITH_RC4_128_MD5 = 24; - - public static final int TLS_DH_anon_EXPORT_WITH_DES40_CBC_SHA = 25; - - public static final int TLS_DH_anon_WITH_DES_CBC_SHA = 26; - - public static final int TLS_DH_anon_WITH_3DES_EDE_CBC_SHA = 27; - - public static final int TLS_RSA_WITH_AES_128_CBC_SHA = 47; - - public static final int TLS_DH_DSS_WITH_AES_128_CBC_SHA = 48; - - public static final int TLS_DH_RSA_WITH_AES_128_CBC_SHA = 49; - - public static final int TLS_DHE_DSS_WITH_AES_128_CBC_SHA = 50; - - public static final int TLS_DHE_RSA_WITH_AES_128_CBC_SHA = 51; - - public static final int TLS_DH_anon_WITH_AES_128_CBC_SHA = 52; - - public static final int TLS_RSA_WITH_AES_256_CBC_SHA = 53; - - public static final int TLS_DH_DSS_WITH_AES_256_CBC_SHA = 54; - - public static final int TLS_DH_RSA_WITH_AES_256_CBC_SHA = 55; - - public static final int TLS_DHE_DSS_WITH_AES_256_CBC_SHA = 56; - - public static final int TLS_DHE_RSA_WITH_AES_256_CBC_SHA = 57; - - public static final int TLS_DH_anon_WITH_AES_256_CBC_SHA = 58; - - public static final int TLS_PSK_WITH_RC4_128_SHA = 138; - - public static final int TLS_PSK_WITH_3DES_EDE_CBC_SHA = 139; - - public static final int TLS_PSK_WITH_AES_128_CBC_SHA = 140; - - public static final int TLS_PSK_WITH_AES_256_CBC_SHA = 141; - - public static final int TLS_DHE_PSK_WITH_RC4_128_SHA = 142; - - public static final int TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA = 143; - - public static final int TLS_DHE_PSK_WITH_AES_128_CBC_SHA = 144; - - public static final int TLS_DHE_PSK_WITH_AES_256_CBC_SHA = 145; - - public static final int TLS_RSA_PSK_WITH_RC4_128_SHA = 146; - - public static final int TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA = 147; - - public static final int TLS_RSA_PSK_WITH_AES_128_CBC_SHA = 148; - - public static final int TLS_RSA_PSK_WITH_AES_256_CBC_SHA = 149; - - public static final int TLS_ECDH_ECDSA_WITH_NULL_SHA = 49153; - - public static final int TLS_ECDH_ECDSA_WITH_RC4_128_SHA = 49154; - - public static final int TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA = 49155; - - public static final int TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA = 49156; - - public static final int TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA = 49157; - - public static final int TLS_ECDHE_ECDSA_WITH_NULL_SHA = 49158; - - public static final int TLS_ECDHE_ECDSA_WITH_RC4_128_SHA = 49159; - - public static final int TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA = 49160; - - public static final int TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA = 49161; - - public static final int TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA = 49162; - - public static final int TLS_ECDH_RSA_WITH_NULL_SHA = 49163; - - public static final int TLS_ECDH_RSA_WITH_RC4_128_SHA = 49164; - - public static final int TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA = 49165; - - public static final int TLS_ECDH_RSA_WITH_AES_128_CBC_SHA = 49166; - - public static final int TLS_ECDH_RSA_WITH_AES_256_CBC_SHA = 49167; - - public static final int TLS_ECDHE_RSA_WITH_NULL_SHA = 49168; - - public static final int TLS_ECDHE_RSA_WITH_RC4_128_SHA = 49169; - - public static final int TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA = 49170; - - public static final int TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA = 49171; - - public static final int TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA = 49172; - - public static final int TLS_ECDH_anon_WITH_NULL_SHA = 49173; - - public static final int TLS_ECDH_anon_WITH_RC4_128_SHA = 49174; - - public static final int TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA = 49175; - - public static final int TLS_ECDH_anon_WITH_AES_128_CBC_SHA = 49176; - - public static final int TLS_ECDH_anon_WITH_AES_256_CBC_SHA = 49177; - - public static final int TLS_SRP_SHA_WITH_3DES_EDE_CBC_SHA = 49178; - - public static final int TLS_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA = 49179; - - public static final int TLS_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA = 49180; - - public static final int TLS_SRP_SHA_WITH_AES_128_CBC_SHA = 49181; - - public static final int TLS_SRP_SHA_RSA_WITH_AES_128_CBC_SHA = 49182; - - public static final int TLS_SRP_SHA_DSS_WITH_AES_128_CBC_SHA = 49183; - - public static final int TLS_SRP_SHA_WITH_AES_256_CBC_SHA = 49184; - - public static final int TLS_SRP_SHA_RSA_WITH_AES_256_CBC_SHA = 49185; - - public static final int TLS_SRP_SHA_DSS_WITH_AES_256_CBC_SHA = 49186; - - public static final int TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 = 49187; - - public static final int TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 = 49188; - - public static final int TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256 = 49189; - - public static final int TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384 = 49190; - - public static final int TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 = 49191; - - public static final int TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 = 49192; - - public static final int TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256 = 49193; - - public static final int TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384 = 49194; - - public static final int TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 = 49195; - - public static final int TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 = 49196; - - public static final int TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 = 49197; - - public static final int TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 = 49198; - - public static final int TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 = 49199; - - public static final int TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 = 49200; - - public static final int TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256 = 49201; - - public static final int TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384 = 49202; - - public static final int TLS_EMPTY_RENEGOTIATION_INFO_SCSV = 255; - - public CipherSuite() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/ClientCertificateType.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/ClientCertificateType.java deleted file mode 100644 index 061a76785..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/ClientCertificateType.java +++ /dev/null @@ -1,29 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -/** - * RFC 2246 7.4.4 - */ -public class ClientCertificateType { - - public static final short rsa_sign = 1; - - public static final short dss_sign = 2; - - public static final short rsa_fixed_dh = 3; - - public static final short dss_fixed_dh = 4; - - public static final short ecdsa_sign = 64; - - public static final short rsa_fixed_ecdh = 65; - - public static final short ecdsa_fixed_ecdh = 66; - - public ClientCertificateType() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/CompressionMethod.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/CompressionMethod.java deleted file mode 100644 index 1cfd119bd..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/CompressionMethod.java +++ /dev/null @@ -1,19 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -/** - * RFC 2246 6.1 - */ -public class CompressionMethod { - - public static final short NULL = 0; - - public static final short DEFLATE = 1; - - public CompressionMethod() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/ContentType.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/ContentType.java deleted file mode 100644 index 343c2090c..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/ContentType.java +++ /dev/null @@ -1,23 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -/** - * RFC 2246 6.2.1 - */ -public class ContentType { - - public static final short change_cipher_spec = 20; - - public static final short alert = 21; - - public static final short handshake = 22; - - public static final short application_data = 23; - - public ContentType() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/DefaultTlsAgreementCredentials.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/DefaultTlsAgreementCredentials.java deleted file mode 100644 index 975fb81e8..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/DefaultTlsAgreementCredentials.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public class DefaultTlsAgreementCredentials implements TlsAgreementCredentials { - - protected Certificate clientCert; - - protected org.bouncycastle.crypto.params.AsymmetricKeyParameter clientPrivateKey; - - protected org.bouncycastle.crypto.BasicAgreement basicAgreement; - - public DefaultTlsAgreementCredentials(Certificate clientCertificate, org.bouncycastle.crypto.params.AsymmetricKeyParameter clientPrivateKey) { - } - - public Certificate getCertificate() { - } - - public byte[] generateAgreement(org.bouncycastle.crypto.params.AsymmetricKeyParameter serverPublicKey) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/DefaultTlsCipherFactory.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/DefaultTlsCipherFactory.java deleted file mode 100644 index 53865547e..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/DefaultTlsCipherFactory.java +++ /dev/null @@ -1,30 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public class DefaultTlsCipherFactory implements TlsCipherFactory { - - public DefaultTlsCipherFactory() { - } - - public TlsCipher createCipher(TlsClientContext context, int encryptionAlgorithm, int digestAlgorithm) { - } - - protected TlsCipher createAESCipher(TlsClientContext context, int cipherKeySize, int digestAlgorithm) { - } - - protected TlsCipher createDESedeCipher(TlsClientContext context, int cipherKeySize, int digestAlgorithm) { - } - - protected org.bouncycastle.crypto.BlockCipher createAESBlockCipher() { - } - - protected org.bouncycastle.crypto.BlockCipher createDESedeBlockCipher() { - } - - protected org.bouncycastle.crypto.Digest createDigest(int digestAlgorithm) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/DefaultTlsClient.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/DefaultTlsClient.java deleted file mode 100644 index 7bf0aaec3..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/DefaultTlsClient.java +++ /dev/null @@ -1,80 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public abstract class DefaultTlsClient implements TlsClient { - - protected TlsCipherFactory cipherFactory; - - protected TlsClientContext context; - - protected int selectedCipherSuite; - - protected int selectedCompressionMethod; - - public DefaultTlsClient() { - } - - public DefaultTlsClient(TlsCipherFactory cipherFactory) { - } - - public void init(TlsClientContext context) { - } - - public ProtocolVersion getClientVersion() { - } - - public int[] getCipherSuites() { - } - - public java.util.Hashtable getClientExtensions() { - } - - public short[] getCompressionMethods() { - } - - public void notifyServerVersion(ProtocolVersion serverVersion) { - } - - public void notifySessionID(byte[] sessionID) { - } - - public void notifySelectedCipherSuite(int selectedCipherSuite) { - } - - public void notifySelectedCompressionMethod(short selectedCompressionMethod) { - } - - public void notifySecureRenegotiation(boolean secureRenegotiation) { - } - - public void processServerExtensions(java.util.Hashtable serverExtensions) { - } - - public TlsKeyExchange getKeyExchange() { - } - - public TlsCompression getCompression() { - } - - public TlsCipher getCipher() { - } - - protected TlsKeyExchange createDHKeyExchange(int keyExchange) { - } - - protected TlsKeyExchange createDHEKeyExchange(int keyExchange) { - } - - protected TlsKeyExchange createECDHKeyExchange(int keyExchange) { - } - - protected TlsKeyExchange createECDHEKeyExchange(int keyExchange) { - } - - protected TlsKeyExchange createRSAKeyExchange() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/DefaultTlsSignerCredentials.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/DefaultTlsSignerCredentials.java deleted file mode 100644 index 4f674a9c5..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/DefaultTlsSignerCredentials.java +++ /dev/null @@ -1,26 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public class DefaultTlsSignerCredentials implements TlsSignerCredentials { - - protected TlsClientContext context; - - protected Certificate clientCert; - - protected org.bouncycastle.crypto.params.AsymmetricKeyParameter clientPrivateKey; - - protected TlsSigner clientSigner; - - public DefaultTlsSignerCredentials(TlsClientContext context, Certificate clientCertificate, org.bouncycastle.crypto.params.AsymmetricKeyParameter clientPrivateKey) { - } - - public Certificate getCertificate() { - } - - public byte[] generateCertificateSignature(byte[] md5andsha1) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/DigestAlgorithm.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/DigestAlgorithm.java deleted file mode 100644 index cfc09c0f7..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/DigestAlgorithm.java +++ /dev/null @@ -1,22 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public class DigestAlgorithm { - - public static final int NULL = 0; - - public static final int MD5 = 1; - - public static final int SHA = 2; - - public static final int SHA256 = 3; - - public static final int SHA384 = 4; - - public DigestAlgorithm() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/ECCurveType.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/ECCurveType.java deleted file mode 100644 index 8f90ec3e5..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/ECCurveType.java +++ /dev/null @@ -1,32 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -/** - * RFC 4492 5.4 - */ -public class ECCurveType { - - /** - * Indicates the elliptic curve domain parameters are conveyed verbosely, and the - * underlying finite field is a prime field. - */ - public static final short explicit_prime = 1; - - /** - * Indicates the elliptic curve domain parameters are conveyed verbosely, and the - * underlying finite field is a characteristic-2 field. - */ - public static final short explicit_char2 = 2; - - /** - * Indicates that a named curve is used. This option SHOULD be used when applicable. - */ - public static final short named_curve = 3; - - public ECCurveType() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/ECPointFormat.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/ECPointFormat.java deleted file mode 100644 index 2639cbcd3..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/ECPointFormat.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -/** - * RFC 4492 5.1.2 - */ -public class ECPointFormat { - - public static final short uncompressed = 0; - - public static final short ansiX962_compressed_prime = 1; - - public static final short ansiX962_compressed_char2 = 2; - - public ECPointFormat() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/EncryptionAlgorithm.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/EncryptionAlgorithm.java deleted file mode 100644 index ecca4b39e..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/EncryptionAlgorithm.java +++ /dev/null @@ -1,36 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public class EncryptionAlgorithm { - - public static final int NULL = 0; - - public static final int RC4_40 = 1; - - public static final int RC4_128 = 2; - - public static final int RC2_CBC_40 = 3; - - public static final int IDEA_CBC = 4; - - public static final int DES40_CBC = 5; - - public static final int DES_CBC = 6; - - public static final int _3DES_EDE_CBC = 7; - - public static final int AES_128_CBC = 8; - - public static final int AES_256_CBC = 9; - - public static final int AES_128_GCM = 10; - - public static final int AES_256_GCM = 11; - - public EncryptionAlgorithm() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/ExtensionType.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/ExtensionType.java deleted file mode 100644 index 373073cae..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/ExtensionType.java +++ /dev/null @@ -1,35 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -/** - * RFC 4366 2.3 - */ -public class ExtensionType { - - public static final int server_name = 0; - - public static final int max_fragment_length = 1; - - public static final int client_certificate_url = 2; - - public static final int trusted_ca_keys = 3; - - public static final int truncated_hmac = 4; - - public static final int status_request = 5; - - public static final int elliptic_curves = 10; - - public static final int ec_point_formats = 11; - - public static final int srp = 12; - - public static final int renegotiation_info = 65281; - - public ExtensionType() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/HandshakeType.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/HandshakeType.java deleted file mode 100644 index 7ebb9c20b..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/HandshakeType.java +++ /dev/null @@ -1,35 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -/** - * RFC 2246 7.4 - */ -public class HandshakeType { - - public static final short hello_request = 0; - - public static final short client_hello = 1; - - public static final short server_hello = 2; - - public static final short certificate = 11; - - public static final short server_key_exchange = 12; - - public static final short certificate_request = 13; - - public static final short server_hello_done = 14; - - public static final short certificate_verify = 15; - - public static final short client_key_exchange = 16; - - public static final short finished = 20; - - public HandshakeType() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/KeyExchangeAlgorithm.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/KeyExchangeAlgorithm.java deleted file mode 100644 index 43644f8d5..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/KeyExchangeAlgorithm.java +++ /dev/null @@ -1,60 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public class KeyExchangeAlgorithm { - - public static final int NULL = 0; - - public static final int RSA = 1; - - public static final int RSA_EXPORT = 2; - - public static final int DHE_DSS = 3; - - public static final int DHE_DSS_EXPORT = 4; - - public static final int DHE_RSA = 5; - - public static final int DHE_RSA_EXPORT = 6; - - public static final int DH_DSS = 7; - - public static final int DH_DSS_EXPORT = 8; - - public static final int DH_RSA = 9; - - public static final int DH_RSA_EXPORT = 10; - - public static final int DH_anon = 11; - - public static final int DH_anon_EXPORT = 12; - - public static final int PSK = 13; - - public static final int DHE_PSK = 14; - - public static final int RSA_PSK = 15; - - public static final int ECDH_ECDSA = 16; - - public static final int ECDHE_ECDSA = 17; - - public static final int ECDH_RSA = 18; - - public static final int ECDHE_RSA = 19; - - public static final int ECDH_anon = 20; - - public static final int SRP = 21; - - public static final int SRP_DSS = 22; - - public static final int SRP_RSA = 23; - - public KeyExchangeAlgorithm() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/LegacyTlsAuthentication.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/LegacyTlsAuthentication.java deleted file mode 100644 index c8329b51a..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/LegacyTlsAuthentication.java +++ /dev/null @@ -1,25 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -/** - * A temporary class to wrap old CertificateVerifyer stuff for new TlsAuthentication - * - * @deprecated - */ -public class LegacyTlsAuthentication implements TlsAuthentication { - - protected CertificateVerifyer verifyer; - - public LegacyTlsAuthentication(CertificateVerifyer verifyer) { - } - - public void notifyServerCertificate(Certificate serverCertificate) { - } - - public TlsCredentials getClientCredentials(CertificateRequest certificateRequest) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/LegacyTlsClient.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/LegacyTlsClient.java deleted file mode 100644 index ee0ea0d94..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/LegacyTlsClient.java +++ /dev/null @@ -1,28 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -/** - * A temporary class to use LegacyTlsAuthentication - * - * @deprecated - */ -public class LegacyTlsClient extends DefaultTlsClient { - - /** - * @deprecated - */ - protected CertificateVerifyer verifyer; - - /** - * @deprecated - */ - public LegacyTlsClient(CertificateVerifyer verifyer) { - } - - public TlsAuthentication getAuthentication() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/NamedCurve.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/NamedCurve.java deleted file mode 100644 index ab3d5383e..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/NamedCurve.java +++ /dev/null @@ -1,75 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -/** - * RFC 4492 5.1.1 - * - * The named curves defined here are those specified in SEC 2 [13]. Note that many of - * these curves are also recommended in ANSI X9.62 [7] and FIPS 186-2 [11]. Values 0xFE00 - * through 0xFEFF are reserved for private use. Values 0xFF01 and 0xFF02 indicate that the - * client supports arbitrary prime and characteristic-2 curves, respectively (the curve - * parameters must be encoded explicitly in ECParameters). - */ -public class NamedCurve { - - public static final int sect163k1 = 1; - - public static final int sect163r1 = 2; - - public static final int sect163r2 = 3; - - public static final int sect193r1 = 4; - - public static final int sect193r2 = 5; - - public static final int sect233k1 = 6; - - public static final int sect233r1 = 7; - - public static final int sect239k1 = 8; - - public static final int sect283k1 = 9; - - public static final int sect283r1 = 10; - - public static final int sect409k1 = 11; - - public static final int sect409r1 = 12; - - public static final int sect571k1 = 13; - - public static final int sect571r1 = 14; - - public static final int secp160k1 = 15; - - public static final int secp160r1 = 16; - - public static final int secp160r2 = 17; - - public static final int secp192k1 = 18; - - public static final int secp192r1 = 19; - - public static final int secp224k1 = 20; - - public static final int secp224r1 = 21; - - public static final int secp256k1 = 22; - - public static final int secp256r1 = 23; - - public static final int secp384r1 = 24; - - public static final int secp521r1 = 25; - - public static final int arbitrary_explicit_prime_curves = 65281; - - public static final int arbitrary_explicit_char2_curves = 65282; - - public NamedCurve() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/PSKTlsClient.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/PSKTlsClient.java deleted file mode 100644 index 3c709671d..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/PSKTlsClient.java +++ /dev/null @@ -1,73 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public class PSKTlsClient implements TlsClient { - - protected TlsCipherFactory cipherFactory; - - protected TlsPSKIdentity pskIdentity; - - protected TlsClientContext context; - - protected int selectedCompressionMethod; - - protected int selectedCipherSuite; - - public PSKTlsClient(TlsPSKIdentity pskIdentity) { - } - - public PSKTlsClient(TlsCipherFactory cipherFactory, TlsPSKIdentity pskIdentity) { - } - - public ProtocolVersion getClientVersion() { - } - - public void init(TlsClientContext context) { - } - - public int[] getCipherSuites() { - } - - public java.util.Hashtable getClientExtensions() { - } - - public short[] getCompressionMethods() { - } - - public void notifyServerVersion(ProtocolVersion serverVersion) { - } - - public void notifySessionID(byte[] sessionID) { - } - - public void notifySelectedCipherSuite(int selectedCipherSuite) { - } - - public void notifySelectedCompressionMethod(short selectedCompressionMethod) { - } - - public void notifySecureRenegotiation(boolean secureRenegotiation) { - } - - public void processServerExtensions(java.util.Hashtable serverExtensions) { - } - - public TlsKeyExchange getKeyExchange() { - } - - public TlsAuthentication getAuthentication() { - } - - public TlsCompression getCompression() { - } - - public TlsCipher getCipher() { - } - - protected TlsKeyExchange createPSKKeyExchange(int keyExchange) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/ProtocolVersion.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/ProtocolVersion.java deleted file mode 100644 index ed5486d8c..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/ProtocolVersion.java +++ /dev/null @@ -1,35 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public class ProtocolVersion { - - public static final ProtocolVersion SSLv3; - - public static final ProtocolVersion TLSv10; - - public static final ProtocolVersion TLSv11; - - public static final ProtocolVersion TLSv12; - - public int getFullVersion() { - } - - public int getMajorVersion() { - } - - public int getMinorVersion() { - } - - public boolean equals(Object obj) { - } - - public int hashCode() { - } - - public static ProtocolVersion get(int major, int minor) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/SRPTlsClient.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/SRPTlsClient.java deleted file mode 100644 index 09bd80cbe..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/SRPTlsClient.java +++ /dev/null @@ -1,74 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public abstract class SRPTlsClient implements TlsClient { - - public static final Integer EXT_SRP; - - protected TlsCipherFactory cipherFactory; - - protected byte[] identity; - - protected byte[] password; - - protected TlsClientContext context; - - protected int selectedCompressionMethod; - - protected int selectedCipherSuite; - - public SRPTlsClient(byte[] identity, byte[] password) { - } - - public SRPTlsClient(TlsCipherFactory cipherFactory, byte[] identity, byte[] password) { - } - - public void init(TlsClientContext context) { - } - - public ProtocolVersion getClientVersion() { - } - - public int[] getCipherSuites() { - } - - public java.util.Hashtable getClientExtensions() { - } - - public short[] getCompressionMethods() { - } - - public void notifyServerVersion(ProtocolVersion serverVersion) { - } - - public void notifySessionID(byte[] sessionID) { - } - - public void notifySelectedCipherSuite(int selectedCipherSuite) { - } - - public void notifySelectedCompressionMethod(short selectedCompressionMethod) { - } - - public void notifySecureRenegotiation(boolean secureRenegotiation) { - } - - public void processServerExtensions(java.util.Hashtable serverExtensions) { - } - - public TlsKeyExchange getKeyExchange() { - } - - public TlsCompression getCompression() { - } - - public TlsCipher getCipher() { - } - - protected TlsKeyExchange createSRPKeyExchange(int keyExchange) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/SSL3Mac.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/SSL3Mac.java deleted file mode 100644 index 32e5221b2..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/SSL3Mac.java +++ /dev/null @@ -1,52 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -/** - * HMAC implementation based on original internet draft for HMAC (RFC 2104) - * - * The difference is that padding is concatentated versus XORed with the key - * - * H(K + opad, H(K + ipad, text)) - */ -public class SSL3Mac implements org.bouncycastle.crypto.Mac { - - /** - * Base constructor for one of the standard digest algorithms that the byteLength of - * the algorithm is know for. Behaviour is undefined for digests other than MD5 or SHA1. - * - * @param digest the digest. - */ - public SSL3Mac(org.bouncycastle.crypto.Digest digest) { - } - - public String getAlgorithmName() { - } - - public org.bouncycastle.crypto.Digest getUnderlyingDigest() { - } - - public void init(org.bouncycastle.crypto.CipherParameters params) { - } - - public int getMacSize() { - } - - public void update(byte in) { - } - - public void update(byte[] in, int inOff, int len) { - } - - public int doFinal(byte[] out, int outOff) { - } - - /** - * Reset the mac generator. - */ - public void reset() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/SecurityParameters.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/SecurityParameters.java deleted file mode 100644 index 1a0ebc605..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/SecurityParameters.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public class SecurityParameters { - - public SecurityParameters() { - } - - public byte[] getClientRandom() { - } - - public byte[] getServerRandom() { - } - - public byte[] getMasterSecret() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsAgreementCredentials.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsAgreementCredentials.java deleted file mode 100644 index 66fe6cfb2..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsAgreementCredentials.java +++ /dev/null @@ -1,11 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public interface TlsAgreementCredentials extends TlsCredentials { - - public byte[] generateAgreement(org.bouncycastle.crypto.params.AsymmetricKeyParameter serverPublicKey); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsAuthentication.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsAuthentication.java deleted file mode 100644 index da8ae4f2c..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsAuthentication.java +++ /dev/null @@ -1,27 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public interface TlsAuthentication { - - /** - * Called by the protocol handler to report the server certificate - * Note: this method is responsible for certificate verification and validation - * - * @param serverCertificate the server certificate received - * @throws IOException - */ - public void notifyServerCertificate(Certificate serverCertificate); - - /** - * Return client credentials in response to server's certificate request - * - * @param certificateRequest details of the certificate request - * @return a TlsCredentials object or null for no client authentication - * @throws IOException - */ - public TlsCredentials getClientCredentials(CertificateRequest certificateRequest); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsBlockCipher.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsBlockCipher.java deleted file mode 100644 index 0872ad457..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsBlockCipher.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -/** - * A generic TLS 1.0 / SSLv3 block cipher. - * This can be used for AES or 3DES for example. - */ -public class TlsBlockCipher implements TlsCipher { - - protected TlsClientContext context; - - protected org.bouncycastle.crypto.BlockCipher encryptCipher; - - protected org.bouncycastle.crypto.BlockCipher decryptCipher; - - protected TlsMac writeMac; - - protected TlsMac readMac; - - public TlsBlockCipher(TlsClientContext context, org.bouncycastle.crypto.BlockCipher encryptCipher, org.bouncycastle.crypto.BlockCipher decryptCipher, org.bouncycastle.crypto.Digest writeDigest, org.bouncycastle.crypto.Digest readDigest, int cipherKeySize) { - } - - public TlsMac getWriteMac() { - } - - public TlsMac getReadMac() { - } - - protected void initCipher(boolean forEncryption, org.bouncycastle.crypto.BlockCipher cipher, byte[] key_block, int key_size, int key_offset, int iv_offset) { - } - - public byte[] encodePlaintext(short type, byte[] plaintext, int offset, int len) { - } - - public byte[] decodeCiphertext(short type, byte[] ciphertext, int offset, int len) { - } - - protected int chooseExtraPadBlocks(javabc.SecureRandom r, int max) { - } - - protected int lowestBitSet(int x) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsCipher.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsCipher.java deleted file mode 100644 index 2bb4aa6e5..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsCipher.java +++ /dev/null @@ -1,13 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public interface TlsCipher { - - public byte[] encodePlaintext(short type, byte[] plaintext, int offset, int len); - - public byte[] decodeCiphertext(short type, byte[] ciphertext, int offset, int len); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsCipherFactory.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsCipherFactory.java deleted file mode 100644 index 85d2a3582..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsCipherFactory.java +++ /dev/null @@ -1,14 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public interface TlsCipherFactory { - - /** - * See enumeration classes EncryptionAlgorithm and DigestAlgorithm for appropriate argument values - */ - public TlsCipher createCipher(TlsClientContext context, int encryptionAlgorithm, int digestAlgorithm); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsClient.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsClient.java deleted file mode 100644 index 84d33085c..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsClient.java +++ /dev/null @@ -1,39 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public interface TlsClient { - - public void init(TlsClientContext context); - - public ProtocolVersion getClientVersion(); - - public int[] getCipherSuites(); - - public short[] getCompressionMethods(); - - public java.util.Hashtable getClientExtensions(); - - public void notifyServerVersion(ProtocolVersion selectedVersion); - - public void notifySessionID(byte[] sessionID); - - public void notifySelectedCipherSuite(int selectedCipherSuite); - - public void notifySelectedCompressionMethod(short selectedCompressionMethod); - - public void notifySecureRenegotiation(boolean secureNegotiation); - - public void processServerExtensions(java.util.Hashtable serverExtensions); - - public TlsKeyExchange getKeyExchange(); - - public TlsAuthentication getAuthentication(); - - public TlsCompression getCompression(); - - public TlsCipher getCipher(); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsClientContext.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsClientContext.java deleted file mode 100644 index 908cc68a0..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsClientContext.java +++ /dev/null @@ -1,21 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public interface TlsClientContext { - - public javabc.SecureRandom getSecureRandom(); - - public SecurityParameters getSecurityParameters(); - - public ProtocolVersion getClientVersion(); - - public ProtocolVersion getServerVersion(); - - public Object getUserObject(); - - public void setUserObject(Object userObject); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsCompression.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsCompression.java deleted file mode 100644 index 5ba74e9d5..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsCompression.java +++ /dev/null @@ -1,13 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public interface TlsCompression { - - public java.io.OutputStream compress(java.io.OutputStream output); - - public java.io.OutputStream decompress(java.io.OutputStream output); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsCredentials.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsCredentials.java deleted file mode 100644 index d408c71e3..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsCredentials.java +++ /dev/null @@ -1,11 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public interface TlsCredentials { - - public Certificate getCertificate(); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsDHUtils.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsDHUtils.java deleted file mode 100644 index b6d9328f7..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsDHUtils.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public class TlsDHUtils { - - public TlsDHUtils() { - } - - public static byte[] calculateDHBasicAgreement(org.bouncycastle.crypto.params.DHPublicKeyParameters publicKey, org.bouncycastle.crypto.params.DHPrivateKeyParameters privateKey) { - } - - public static org.bouncycastle.crypto.AsymmetricCipherKeyPair generateDHKeyPair(javabc.SecureRandom random, org.bouncycastle.crypto.params.DHParameters dhParams) { - } - - public static org.bouncycastle.crypto.params.DHPrivateKeyParameters generateEphemeralClientKeyExchange(javabc.SecureRandom random, org.bouncycastle.crypto.params.DHParameters dhParams, java.io.OutputStream os) { - } - - public static org.bouncycastle.crypto.params.DHPublicKeyParameters validateDHPublicKey(org.bouncycastle.crypto.params.DHPublicKeyParameters key) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsFatalAlert.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsFatalAlert.java deleted file mode 100644 index 41737cac5..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsFatalAlert.java +++ /dev/null @@ -1,15 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public class TlsFatalAlert extends java.io.IOException { - - public TlsFatalAlert(short alertDescription) { - } - - public short getAlertDescription() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsKeyExchange.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsKeyExchange.java deleted file mode 100644 index 20c4d4e6e..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsKeyExchange.java +++ /dev/null @@ -1,30 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -/** - * A generic interface for key exchange implementations in TLS 1.0. - */ -public interface TlsKeyExchange { - - public void skipServerCertificate(); - - public void processServerCertificate(Certificate serverCertificate); - - public void skipServerKeyExchange(); - - public void processServerKeyExchange(java.io.InputStream is); - - public void validateCertificateRequest(CertificateRequest certificateRequest); - - public void skipClientCredentials(); - - public void processClientCredentials(TlsCredentials clientCredentials); - - public void generateClientKeyExchange(java.io.OutputStream os); - - public byte[] generatePremasterSecret(); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsMac.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsMac.java deleted file mode 100644 index 3145aecb5..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsMac.java +++ /dev/null @@ -1,71 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -/** - * A generic TLS MAC implementation, which can be used with any kind of Digest to act as - * an HMAC. - */ -public class TlsMac { - - protected TlsClientContext context; - - protected long seqNo; - - protected byte[] secret; - - protected org.bouncycastle.crypto.Mac mac; - - /** - * Generate a new instance of an TlsMac. - * - * @param context the TLS client context - * @param digest The digest to use. - * @param key_block A byte-array where the key for this mac is located. - * @param offset The number of bytes to skip, before the key starts in the buffer. - * @param len The length of the key. - */ - public TlsMac(TlsClientContext context, org.bouncycastle.crypto.Digest digest, byte[] key_block, int offset, int len) { - } - - /** - * @return the MAC write secret - */ - public byte[] getMACSecret() { - } - - /** - * @return the current write sequence number - */ - public long getSequenceNumber() { - } - - /** - * Increment the current write sequence number - */ - public void incSequenceNumber() { - } - - /** - * @return The Keysize of the mac. - */ - public int getSize() { - } - - /** - * Calculate the mac for some given data. - * - * TlsMac will keep track of the sequence number internally. - * - * @param type The message type of the message. - * @param message A byte-buffer containing the message. - * @param offset The number of bytes to skip, before the message starts. - * @param len The length of the message. - * @return A new byte-buffer containing the mac value. - */ - public byte[] calculateMac(short type, byte[] message, int offset, int len) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsNullCipher.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsNullCipher.java deleted file mode 100644 index 6f08123ad..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsNullCipher.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -/** - * A NULL CipherSuite in java, this should only be used during handshake. - */ -public class TlsNullCipher implements TlsCipher { - - public TlsNullCipher() { - } - - public byte[] encodePlaintext(short type, byte[] plaintext, int offset, int len) { - } - - public byte[] decodeCiphertext(short type, byte[] ciphertext, int offset, int len) { - } - - protected byte[] copyData(byte[] text, int offset, int len) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsNullCompression.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsNullCompression.java deleted file mode 100644 index 7187f4180..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsNullCompression.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public class TlsNullCompression implements TlsCompression { - - public TlsNullCompression() { - } - - public java.io.OutputStream compress(java.io.OutputStream output) { - } - - public java.io.OutputStream decompress(java.io.OutputStream output) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsPSKIdentity.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsPSKIdentity.java deleted file mode 100644 index 6c730b7c5..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsPSKIdentity.java +++ /dev/null @@ -1,17 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public interface TlsPSKIdentity { - - public void skipIdentityHint(); - - public void notifyIdentityHint(byte[] psk_identity_hint); - - public byte[] getPSKIdentity(); - - public byte[] getPSK(); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsProtocolHandler.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsProtocolHandler.java deleted file mode 100644 index 476aae8ed..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsProtocolHandler.java +++ /dev/null @@ -1,101 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -/** - * An implementation of all high level protocols in TLS 1.0. - */ -public class TlsProtocolHandler { - - public TlsProtocolHandler(java.io.InputStream is, java.io.OutputStream os) { - } - - public TlsProtocolHandler(java.io.InputStream is, java.io.OutputStream os, javabc.SecureRandom sr) { - } - - protected void processData(short protocol, byte[] buf, int offset, int len) { - } - - /** - * Connects to the remote system. - * - * @param verifyer Will be used when a certificate is received to verify that this - * certificate is accepted by the client. - * @throws IOException If handshake was not successful. - * - * @deprecated use version taking TlsClient - */ - public void connect(CertificateVerifyer verifyer) { - } - - /** - * Connects to the remote system using client authentication - * - * @param tlsClient - * @throws IOException If handshake was not successful. - */ - public void connect(TlsClient tlsClient) { - } - - /** - * Read data from the network. The method will return immediately, if there is still - * some data left in the buffer, or block until some application data has been read - * from the network. - * - * @param buf The buffer where the data will be copied to. - * @param offset The position where the data will be placed in the buffer. - * @param len The maximum number of bytes to read. - * @return The number of bytes read. - * @throws IOException If something goes wrong during reading data. - */ - protected int readApplicationData(byte[] buf, int offset, int len) { - } - - /** - * Send some application data to the remote system. - * - * The method will handle fragmentation internally. - * - * @param buf The buffer with the data. - * @param offset The position in the buffer where the data is placed. - * @param len The length of the data. - * @throws IOException If something goes wrong during sending. - */ - protected void writeData(byte[] buf, int offset, int len) { - } - - /** - * @return An OutputStream which can be used to send data. - */ - public java.io.OutputStream getOutputStream() { - } - - /** - * @return An InputStream which can be used to read data. - */ - public java.io.InputStream getInputStream() { - } - - /** - * Closes this connection. - * - * @throws IOException If something goes wrong during closing. - */ - public void close() { - } - - /** - * Make sure the InputStream is now empty. Fail otherwise. - * - * @param is The InputStream to check. - * @throws IOException If is is not empty. - */ - protected void assertEmpty(java.io.ByteArrayInputStream is) { - } - - protected void flush() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsRSAUtils.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsRSAUtils.java deleted file mode 100644 index 97f6d9e12..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsRSAUtils.java +++ /dev/null @@ -1,15 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public class TlsRSAUtils { - - public TlsRSAUtils() { - } - - public static byte[] generateEncryptedPreMasterSecret(TlsClientContext context, org.bouncycastle.crypto.params.RSAKeyParameters rsaServerPublicKey, java.io.OutputStream os) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsRuntimeException.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsRuntimeException.java deleted file mode 100644 index c678ff89b..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsRuntimeException.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public class TlsRuntimeException extends RuntimeException { - - public TlsRuntimeException(String message, Throwable e) { - } - - public TlsRuntimeException(String message) { - } - - public Throwable getCause() { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsSignerCredentials.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsSignerCredentials.java deleted file mode 100644 index 857c62033..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsSignerCredentials.java +++ /dev/null @@ -1,11 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -public interface TlsSignerCredentials extends TlsCredentials { - - public byte[] generateCertificateSignature(byte[] md5andsha1); -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsUtils.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsUtils.java deleted file mode 100644 index 3e3c2e67a..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/tls/TlsUtils.java +++ /dev/null @@ -1,87 +0,0 @@ -/** - * - * A lightweight TLS API. - */ -package org.bouncycastle.crypto.tls; - - -/** - * Some helper fuctions for MicroTLS. - */ -public class TlsUtils { - - public TlsUtils() { - } - - protected static void writeUint8(short i, java.io.OutputStream os) { - } - - protected static void writeUint8(short i, byte[] buf, int offset) { - } - - protected static void writeUint16(int i, java.io.OutputStream os) { - } - - protected static void writeUint16(int i, byte[] buf, int offset) { - } - - protected static void writeUint24(int i, java.io.OutputStream os) { - } - - protected static void writeUint24(int i, byte[] buf, int offset) { - } - - protected static void writeUint32(long i, java.io.OutputStream os) { - } - - protected static void writeUint32(long i, byte[] buf, int offset) { - } - - protected static void writeUint64(long i, java.io.OutputStream os) { - } - - protected static void writeUint64(long i, byte[] buf, int offset) { - } - - protected static void writeOpaque8(byte[] buf, java.io.OutputStream os) { - } - - protected static void writeOpaque16(byte[] buf, java.io.OutputStream os) { - } - - protected static void writeOpaque24(byte[] buf, java.io.OutputStream os) { - } - - protected static void writeUint8Array(short[] uints, java.io.OutputStream os) { - } - - protected static void writeUint16Array(int[] uints, java.io.OutputStream os) { - } - - protected static short readUint8(java.io.InputStream is) { - } - - protected static int readUint16(java.io.InputStream is) { - } - - protected static int readUint24(java.io.InputStream is) { - } - - protected static long readUint32(java.io.InputStream is) { - } - - protected static void readFully(byte[] buf, java.io.InputStream is) { - } - - protected static byte[] readOpaque8(java.io.InputStream is) { - } - - protected static byte[] readOpaque16(java.io.InputStream is) { - } - - protected static void writeGMTUnixTime(byte[] buf, int offset) { - } - - protected static byte[] PRF(byte[] secret, String asciiLabel, byte[] seed, int size) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/util/Pack.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/util/Pack.java deleted file mode 100644 index 771bd7980..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/util/Pack.java +++ /dev/null @@ -1,48 +0,0 @@ -/** - * - * Some general utility/conversion classes. - */ -package org.bouncycastle.crypto.util; - - -public abstract class Pack { - - public Pack() { - } - - public static int bigEndianToInt(byte[] bs, int off) { - } - - public static void bigEndianToInt(byte[] bs, int off, int[] ns) { - } - - public static void intToBigEndian(int n, byte[] bs, int off) { - } - - public static void intToBigEndian(int[] ns, byte[] bs, int off) { - } - - public static long bigEndianToLong(byte[] bs, int off) { - } - - public static void longToBigEndian(long n, byte[] bs, int off) { - } - - public static int littleEndianToInt(byte[] bs, int off) { - } - - public static void littleEndianToInt(byte[] bs, int off, int[] ns) { - } - - public static void intToLittleEndian(int n, byte[] bs, int off) { - } - - public static void intToLittleEndian(int[] ns, byte[] bs, int off) { - } - - public static long littleEndianToLong(byte[] bs, int off) { - } - - public static void longToLittleEndian(long n, byte[] bs, int off) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/util/PrivateKeyFactory.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/util/PrivateKeyFactory.java deleted file mode 100644 index 7302b84ca..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/util/PrivateKeyFactory.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * - * Some general utility/conversion classes. - */ -package org.bouncycastle.crypto.util; - - -/** - * Factory for creating private key objects from PKCS8 PrivateKeyInfo objects. - */ -public class PrivateKeyFactory { - - public PrivateKeyFactory() { - } - - /** - * Create a private key parameter from a PKCS8 PrivateKeyInfo encoding. - * - * @param privateKeyInfoData the PrivateKeyInfo encoding - * @return a suitable private key parameter - * @throws IOException on an error decoding the key - */ - public static org.bouncycastle.crypto.params.AsymmetricKeyParameter createKey(byte[] privateKeyInfoData) { - } - - /** - * Create a private key parameter from a PKCS8 PrivateKeyInfo encoding read from a - * stream. - * - * @param inStr the stream to read the PrivateKeyInfo encoding from - * @return a suitable private key parameter - * @throws IOException on an error decoding the key - */ - public static org.bouncycastle.crypto.params.AsymmetricKeyParameter createKey(java.io.InputStream inStr) { - } - - /** - * Create a private key parameter from the passed in PKCS8 PrivateKeyInfo object. - * - * @param keyInfo the PrivateKeyInfo object containing the key material - * @return a suitable private key parameter - * @throws IOException on an error decoding the key - */ - public static org.bouncycastle.crypto.params.AsymmetricKeyParameter createKey(org.bouncycastle.asn1.pkcs.PrivateKeyInfo keyInfo) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/util/PublicKeyFactory.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/util/PublicKeyFactory.java deleted file mode 100644 index 9d64e8058..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/crypto/util/PublicKeyFactory.java +++ /dev/null @@ -1,46 +0,0 @@ -/** - * - * Some general utility/conversion classes. - */ -package org.bouncycastle.crypto.util; - - -/** - * Factory to create asymmetric public key parameters for asymmetric ciphers from range of - * ASN.1 encoded SubjectPublicKeyInfo objects. - */ -public class PublicKeyFactory { - - public PublicKeyFactory() { - } - - /** - * Create a public key from a SubjectPublicKeyInfo encoding - * - * @param keyInfoData the SubjectPublicKeyInfo encoding - * @return the appropriate key parameter - * @throws IOException on an error decoding the key - */ - public static org.bouncycastle.crypto.params.AsymmetricKeyParameter createKey(byte[] keyInfoData) { - } - - /** - * Create a public key from a SubjectPublicKeyInfo encoding read from a stream - * - * @param inStr the stream to read the SubjectPublicKeyInfo encoding from - * @return the appropriate key parameter - * @throws IOException on an error decoding the key - */ - public static org.bouncycastle.crypto.params.AsymmetricKeyParameter createKey(java.io.InputStream inStr) { - } - - /** - * Create a public key from the passed in SubjectPublicKeyInfo - * - * @param keyInfo the SubjectPublicKeyInfo containing the key data - * @return the appropriate key parameter - * @throws IOException on an error decoding the key - */ - public static org.bouncycastle.crypto.params.AsymmetricKeyParameter createKey(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo keyInfo) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/math/ec/ECAlgorithms.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/math/ec/ECAlgorithms.java deleted file mode 100644 index 34f790e5a..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/math/ec/ECAlgorithms.java +++ /dev/null @@ -1,18 +0,0 @@ -/** - * - * Math support for Elliptic Curve. - */ -package org.bouncycastle.math.ec; - - -public class ECAlgorithms { - - public ECAlgorithms() { - } - - public static ECPoint sumOfTwoMultiplies(ECPoint P, javabc.BigInteger a, ECPoint Q, javabc.BigInteger b) { - } - - public static ECPoint shamirsTrick(ECPoint P, javabc.BigInteger k, ECPoint Q, javabc.BigInteger l) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/math/ec/ECConstants.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/math/ec/ECConstants.java deleted file mode 100644 index cb9820971..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/math/ec/ECConstants.java +++ /dev/null @@ -1,19 +0,0 @@ -/** - * - * Math support for Elliptic Curve. - */ -package org.bouncycastle.math.ec; - - -public interface ECConstants { - - public static final javabc.BigInteger ZERO; - - public static final javabc.BigInteger ONE; - - public static final javabc.BigInteger TWO; - - public static final javabc.BigInteger THREE; - - public static final javabc.BigInteger FOUR; -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/math/ec/ECCurve.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/math/ec/ECCurve.java deleted file mode 100644 index 7bbb73c0d..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/math/ec/ECCurve.java +++ /dev/null @@ -1,224 +0,0 @@ -/** - * - * Math support for Elliptic Curve. - */ -package org.bouncycastle.math.ec; - - -/** - * base class for an elliptic curve - */ -public abstract class ECCurve { - - public ECCurve() { - } - - public abstract int getFieldSize() { - } - - public abstract ECFieldElement fromBigInteger(javabc.BigInteger x) { - } - - public abstract ECPoint createPoint(javabc.BigInteger x, javabc.BigInteger y, boolean withCompression) { - } - - public abstract ECPoint decodePoint(byte[] encoded) { - } - - public abstract ECPoint getInfinity() { - } - - public ECFieldElement getA() { - } - - public ECFieldElement getB() { - } - - /** - * Elliptic curve over Fp - */ - public static class Fp { - - - public ECCurve.Fp(javabc.BigInteger q, javabc.BigInteger a, javabc.BigInteger b) { - } - - public javabc.BigInteger getQ() { - } - - public int getFieldSize() { - } - - public ECFieldElement fromBigInteger(javabc.BigInteger x) { - } - - public ECPoint createPoint(javabc.BigInteger x, javabc.BigInteger y, boolean withCompression) { - } - - /** - * Decode a point on this curve from its ASN.1 encoding. The different - * encodings are taken account of, including point compression for - *
Fp
(X9.62 s 4.2.1 pg 17).
- * @return The decoded point.
- */
- public ECPoint decodePoint(byte[] encoded) {
- }
-
- public ECPoint getInfinity() {
- }
-
- public boolean equals(Object anObject) {
- }
-
- public int hashCode() {
- }
- }
-
- /**
- * Elliptic curves over F2m. The Weierstrass equation is given by
- * y2 + xy = x3 + ax2 + b
.
- */
- public static class F2m {
-
-
- /**
- * Constructor for Trinomial Polynomial Basis (TPB).
- * @param m The exponent m
of
- * F2m
.
- * @param k The integer k
where xm +
- * xk + 1
represents the reduction
- * polynomial f(z)
.
- * @param a The coefficient a
in the Weierstrass equation
- * for non-supersingular elliptic curves over
- * F2m
.
- * @param b The coefficient b
in the Weierstrass equation
- * for non-supersingular elliptic curves over
- * F2m
.
- */
- public ECCurve.F2m(int m, int k, javabc.BigInteger a, javabc.BigInteger b) {
- }
-
- /**
- * Constructor for Trinomial Polynomial Basis (TPB).
- * @param m The exponent m
of
- * F2m
.
- * @param k The integer k
where xm +
- * xk + 1
represents the reduction
- * polynomial f(z)
.
- * @param a The coefficient a
in the Weierstrass equation
- * for non-supersingular elliptic curves over
- * F2m
.
- * @param b The coefficient b
in the Weierstrass equation
- * for non-supersingular elliptic curves over
- * F2m
.
- * @param n The order of the main subgroup of the elliptic curve.
- * @param h The cofactor of the elliptic curve, i.e.
- * #Ea(F2m) = h * n
.
- */
- public ECCurve.F2m(int m, int k, javabc.BigInteger a, javabc.BigInteger b, javabc.BigInteger n, javabc.BigInteger h) {
- }
-
- /**
- * Constructor for Pentanomial Polynomial Basis (PPB).
- * @param m The exponent m
of
- * F2m
.
- * @param k1 The integer k1
where xm +
- * xk3 + xk2 + xk1 + 1
- * represents the reduction polynomial f(z)
.
- * @param k2 The integer k2
where xm +
- * xk3 + xk2 + xk1 + 1
- * represents the reduction polynomial f(z)
.
- * @param k3 The integer k3
where xm +
- * xk3 + xk2 + xk1 + 1
- * represents the reduction polynomial f(z)
.
- * @param a The coefficient a
in the Weierstrass equation
- * for non-supersingular elliptic curves over
- * F2m
.
- * @param b The coefficient b
in the Weierstrass equation
- * for non-supersingular elliptic curves over
- * F2m
.
- */
- public ECCurve.F2m(int m, int k1, int k2, int k3, javabc.BigInteger a, javabc.BigInteger b) {
- }
-
- /**
- * Constructor for Pentanomial Polynomial Basis (PPB).
- * @param m The exponent m
of
- * F2m
.
- * @param k1 The integer k1
where xm +
- * xk3 + xk2 + xk1 + 1
- * represents the reduction polynomial f(z)
.
- * @param k2 The integer k2
where xm +
- * xk3 + xk2 + xk1 + 1
- * represents the reduction polynomial f(z)
.
- * @param k3 The integer k3
where xm +
- * xk3 + xk2 + xk1 + 1
- * represents the reduction polynomial f(z)
.
- * @param a The coefficient a
in the Weierstrass equation
- * for non-supersingular elliptic curves over
- * F2m
.
- * @param b The coefficient b
in the Weierstrass equation
- * for non-supersingular elliptic curves over
- * F2m
.
- * @param n The order of the main subgroup of the elliptic curve.
- * @param h The cofactor of the elliptic curve, i.e.
- * #Ea(F2m) = h * n
.
- */
- public ECCurve.F2m(int m, int k1, int k2, int k3, javabc.BigInteger a, javabc.BigInteger b, javabc.BigInteger n, javabc.BigInteger h) {
- }
-
- public int getFieldSize() {
- }
-
- public ECFieldElement fromBigInteger(javabc.BigInteger x) {
- }
-
- public ECPoint createPoint(javabc.BigInteger x, javabc.BigInteger y, boolean withCompression) {
- }
-
- public ECPoint decodePoint(byte[] encoded) {
- }
-
- public ECPoint getInfinity() {
- }
-
- /**
- * Returns true if this is a Koblitz curve (ABC curve).
- * @return true if this is a Koblitz curve (ABC curve), false otherwise
- */
- public boolean isKoblitz() {
- }
-
- public boolean equals(Object anObject) {
- }
-
- public int hashCode() {
- }
-
- public int getM() {
- }
-
- /**
- * Return true if curve uses a Trinomial basis.
- *
- * @return true if curve Trinomial, false otherwise.
- */
- public boolean isTrinomial() {
- }
-
- public int getK1() {
- }
-
- public int getK2() {
- }
-
- public int getK3() {
- }
-
- public javabc.BigInteger getN() {
- }
-
- public javabc.BigInteger getH() {
- }
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/math/ec/ECFieldElement.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/math/ec/ECFieldElement.java
deleted file mode 100644
index 5473fcde0..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/math/ec/ECFieldElement.java
+++ /dev/null
@@ -1,265 +0,0 @@
-/**
- *
- * Math support for Elliptic Curve.
- */
-package org.bouncycastle.math.ec;
-
-
-public abstract class ECFieldElement implements ECConstants {
-
- public ECFieldElement() {
- }
-
- public abstract javabc.BigInteger toBigInteger() {
- }
-
- public abstract String getFieldName() {
- }
-
- public abstract int getFieldSize() {
- }
-
- public abstract ECFieldElement add(ECFieldElement b) {
- }
-
- public abstract ECFieldElement subtract(ECFieldElement b) {
- }
-
- public abstract ECFieldElement multiply(ECFieldElement b) {
- }
-
- public abstract ECFieldElement divide(ECFieldElement b) {
- }
-
- public abstract ECFieldElement negate() {
- }
-
- public abstract ECFieldElement square() {
- }
-
- public abstract ECFieldElement invert() {
- }
-
- public abstract ECFieldElement sqrt() {
- }
-
- public String toString() {
- }
-
- public static class Fp {
-
-
- public ECFieldElement.Fp(javabc.BigInteger q, javabc.BigInteger x) {
- }
-
- public javabc.BigInteger toBigInteger() {
- }
-
- /**
- * return the field name for this field.
- *
- * @return the string "Fp".
- */
- public String getFieldName() {
- }
-
- public int getFieldSize() {
- }
-
- public javabc.BigInteger getQ() {
- }
-
- public ECFieldElement add(ECFieldElement b) {
- }
-
- public ECFieldElement subtract(ECFieldElement b) {
- }
-
- public ECFieldElement multiply(ECFieldElement b) {
- }
-
- public ECFieldElement divide(ECFieldElement b) {
- }
-
- public ECFieldElement negate() {
- }
-
- public ECFieldElement square() {
- }
-
- public ECFieldElement invert() {
- }
-
- /**
- * return a sqrt root - the routine verifies that the calculation
- * returns the right value - if none exists it returns null.
- */
- public ECFieldElement sqrt() {
- }
-
- public boolean equals(Object other) {
- }
-
- public int hashCode() {
- }
- }
-
- /**
- * Class representing the Elements of the finite field
- * F2m
in polynomial basis (PB)
- * representation. Both trinomial (TPB) and pentanomial (PPB) polynomial
- * basis representations are supported. Gaussian normal basis (GNB)
- * representation is not supported.
- */
- public static class F2m {
-
-
- /**
- * Indicates gaussian normal basis representation (GNB). Number chosen
- * according to X9.62. GNB is not implemented at present.
- */
- public static final int GNB = 1;
-
- /**
- * Indicates trinomial basis representation (TPB). Number chosen
- * according to X9.62.
- */
- public static final int TPB = 2;
-
- /**
- * Indicates pentanomial basis representation (PPB). Number chosen
- * according to X9.62.
- */
- public static final int PPB = 3;
-
- /**
- * Constructor for PPB.
- * @param m The exponent m
of
- * F2m
.
- * @param k1 The integer k1
where xm +
- * xk3 + xk2 + xk1 + 1
- * represents the reduction polynomial f(z)
.
- * @param k2 The integer k2
where xm +
- * xk3 + xk2 + xk1 + 1
- * represents the reduction polynomial f(z)
.
- * @param k3 The integer k3
where xm +
- * xk3 + xk2 + xk1 + 1
- * represents the reduction polynomial f(z)
.
- * @param x The BigInteger representing the value of the field element.
- */
- public ECFieldElement.F2m(int m, int k1, int k2, int k3, javabc.BigInteger x) {
- }
-
- /**
- * Constructor for TPB.
- * @param m The exponent m
of
- * F2m
.
- * @param k The integer k
where xm +
- * xk + 1
represents the reduction
- * polynomial f(z)
.
- * @param x The BigInteger representing the value of the field element.
- */
- public ECFieldElement.F2m(int m, int k, javabc.BigInteger x) {
- }
-
- public javabc.BigInteger toBigInteger() {
- }
-
- public String getFieldName() {
- }
-
- public int getFieldSize() {
- }
-
- /**
- * Checks, if the ECFieldElements a
and b
- * are elements of the same field F2m
- * (having the same representation).
- * @param a field element.
- * @param b field element to be compared.
- * @throws IllegalArgumentException if a
and b
- * are not elements of the same field
- * F2m
(having the same
- * representation).
- */
- public static void checkFieldElements(ECFieldElement a, ECFieldElement b) {
- }
-
- public ECFieldElement add(ECFieldElement b) {
- }
-
- public ECFieldElement subtract(ECFieldElement b) {
- }
-
- public ECFieldElement multiply(ECFieldElement b) {
- }
-
- public ECFieldElement divide(ECFieldElement b) {
- }
-
- public ECFieldElement negate() {
- }
-
- public ECFieldElement square() {
- }
-
- public ECFieldElement invert() {
- }
-
- public ECFieldElement sqrt() {
- }
-
- /**
- * @return the representation of the field
- * F2m
, either of
- * TPB (trinomial
- * basis representation) or
- * PPB (pentanomial
- * basis representation).
- */
- public int getRepresentation() {
- }
-
- /**
- * @return the degree m
of the reduction polynomial
- * f(z)
.
- */
- public int getM() {
- }
-
- /**
- * @return TPB: The integer k
where xm +
- * xk + 1
represents the reduction polynomial
- * f(z)
.k1
where xm +
- * xk3 + xk2 + xk1 + 1
- * represents the reduction polynomial f(z)
.0
k2
where xm +
- * xk3 + xk2 + xk1 + 1
- * represents the reduction polynomial f(z)
.0
k3
where xm +
- * xk3 + xk2 + xk1 + 1
- * represents the reduction polynomial f(z)
.ECPoint
by the given number.
- * @param k The multiplicator.
- * @return k * this
.
- */
- public ECPoint multiply(javabc.BigInteger k) {
- }
-
- /**
- * Elliptic curve points over Fp
- */
- public static class Fp {
-
-
- /**
- * Create a point which encodes with point compression.
- *
- * @param curve the curve to use
- * @param x affine x co-ordinate
- * @param y affine y co-ordinate
- */
- public ECPoint.Fp(ECCurve curve, ECFieldElement x, ECFieldElement y) {
- }
-
- /**
- * Create a point that encodes with or without point compresion.
- *
- * @param curve the curve to use
- * @param x affine x co-ordinate
- * @param y affine y co-ordinate
- * @param withCompression if true encode with point compression
- */
- public ECPoint.Fp(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) {
- }
-
- /**
- * return the field element encoded with point compression. (S 4.3.6)
- */
- public byte[] getEncoded() {
- }
-
- public ECPoint add(ECPoint b) {
- }
-
- public ECPoint twice() {
- }
-
- public ECPoint subtract(ECPoint b) {
- }
-
- public ECPoint negate() {
- }
- }
-
- /**
- * Elliptic curve points over F2m
- */
- public static class F2m {
-
-
- /**
- * @param curve base curve
- * @param x x point
- * @param y y point
- */
- public ECPoint.F2m(ECCurve curve, ECFieldElement x, ECFieldElement y) {
- }
-
- /**
- * @param curve base curve
- * @param x x point
- * @param y y point
- * @param withCompression true if encode with point compression.
- */
- public ECPoint.F2m(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression) {
- }
-
- public byte[] getEncoded() {
- }
-
- public ECPoint add(ECPoint b) {
- }
-
- /**
- * Adds another ECPoints.F2m
to this
without
- * checking if both points are on the same curve. Used by multiplication
- * algorithms, because there all points are a multiple of the same point
- * and hence the checks can be omitted.
- * @param b The other ECPoints.F2m
to add to
- * this
.
- * @return this + b
- */
- public ECPoint.F2m addSimple(ECPoint.F2m b) {
- }
-
- public ECPoint subtract(ECPoint b) {
- }
-
- /**
- * Subtracts another ECPoints.F2m
from this
- * without checking if both points are on the same curve. Used by
- * multiplication algorithms, because there all points are a multiple
- * of the same point and hence the checks can be omitted.
- * @param b The other ECPoints.F2m
to subtract from
- * this
.
- * @return this - b
- */
- public ECPoint.F2m subtractSimple(ECPoint.F2m b) {
- }
-
- public ECPoint twice() {
- }
-
- public ECPoint negate() {
- }
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/Arrays.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/Arrays.java
deleted file mode 100644
index fa25c9522..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/Arrays.java
+++ /dev/null
@@ -1,94 +0,0 @@
-package org.bouncycastle.util;
-
-
-/**
- * General array utilities.
- */
-public final class Arrays {
-
- public static boolean areEqual(boolean[] a, boolean[] b) {
- }
-
- public static boolean areEqual(char[] a, char[] b) {
- }
-
- public static boolean areEqual(byte[] a, byte[] b) {
- }
-
- /**
- * A constant time equals comparison - does not terminate early if
- * test will fail.
- *
- * @param a first array
- * @param b second array
- * @return true if arrays equal, false otherwise.
- */
- public static boolean constantTimeAreEqual(byte[] a, byte[] b) {
- }
-
- public static boolean areEqual(int[] a, int[] b) {
- }
-
- public static boolean areEqual(long[] a, long[] b) {
- }
-
- public static boolean areEqual(javabc.BigInteger[] a, javabc.BigInteger[] b) {
- }
-
- public static void fill(byte[] array, byte value) {
- }
-
- public static void fill(long[] array, long value) {
- }
-
- public static void fill(short[] array, short value) {
- }
-
- public static void fill(int[] array, int value) {
- }
-
- public static int hashCode(byte[] data) {
- }
-
- public static int hashCode(char[] data) {
- }
-
- public static int hashCode(int[] data) {
- }
-
- public static int hashCode(javabc.BigInteger[] data) {
- }
-
- public static byte[] clone(byte[] data) {
- }
-
- public static int[] clone(int[] data) {
- }
-
- public static javabc.BigInteger[] clone(javabc.BigInteger[] data) {
- }
-
- public static byte[] copyOf(byte[] data, int newLength) {
- }
-
- public static int[] copyOf(int[] data, int newLength) {
- }
-
- public static long[] copyOf(long[] data, int newLength) {
- }
-
- public static javabc.BigInteger[] copyOf(javabc.BigInteger[] data, int newLength) {
- }
-
- public static byte[] copyOfRange(byte[] data, int from, int to) {
- }
-
- public static int[] copyOfRange(int[] data, int from, int to) {
- }
-
- public static long[] copyOfRange(long[] data, int from, int to) {
- }
-
- public static javabc.BigInteger[] copyOfRange(javabc.BigInteger[] data, int from, int to) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/BigIntegers.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/BigIntegers.java
deleted file mode 100644
index 7b3b3eeb2..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/BigIntegers.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package org.bouncycastle.util;
-
-
-/**
- * BigInteger utilities.
- */
-public final class BigIntegers {
-
- public BigIntegers() {
- }
-
- /**
- * Return the passed in value as an unsigned byte array.
- *
- * @param value value to be converted.
- * @return a byte array without a leading zero byte if present in the signed encoding.
- */
- public static byte[] asUnsignedByteArray(javabc.BigInteger value) {
- }
-
- /**
- * Return a random BigInteger not less than 'min' and not greater than 'max'
- *
- * @param min the least value that may be generated
- * @param max the greatest value that may be generated
- * @param random the source of randomness
- * @return a random BigInteger value in the range [min,max]
- */
- public static javabc.BigInteger createRandomInRange(javabc.BigInteger min, javabc.BigInteger max, javabc.SecureRandom random) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/CollectionStore.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/CollectionStore.java
deleted file mode 100644
index 55b74d1bd..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/CollectionStore.java
+++ /dev/null
@@ -1,25 +0,0 @@
-package org.bouncycastle.util;
-
-
-/**
- * A simple collection backed store.
- */
-public class CollectionStore implements Store {
-
- /**
- * Basic constructor.
- *
- * @param collection - initial contents for the store, this is copied.
- */
- public CollectionStore(java.util.Collection collection) {
- }
-
- /**
- * Return the matches in the collection for the passed in selector.
- *
- * @param selector the selector to match against.
- * @return a possibly empty collection of matching objects.
- */
- public java.util.Collection getMatches(Selector selector) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/IPAddress.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/IPAddress.java
deleted file mode 100644
index b539f7db2..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/IPAddress.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package org.bouncycastle.util;
-
-
-public class IPAddress {
-
- public IPAddress() {
- }
-
- /**
- * Validate the given IPv4 or IPv6 address.
- *
- * @param address the IP address as a String.
- *
- * @return true if a valid address, false otherwise
- */
- public static boolean isValid(String address) {
- }
-
- /**
- * Validate the given IPv4 or IPv6 address and netmask.
- *
- * @param address the IP address as a String.
- *
- * @return true if a valid address with netmask, false otherwise
- */
- public static boolean isValidWithNetMask(String address) {
- }
-
- /**
- * Validate the given IPv4 address.
- *
- * @param address the IP address as a String.
- *
- * @return true if a valid IPv4 address, false otherwise
- */
- public static boolean isValidIPv4(String address) {
- }
-
- public static boolean isValidIPv4WithNetmask(String address) {
- }
-
- public static boolean isValidIPv6WithNetmask(String address) {
- }
-
- /**
- * Validate the given IPv6 address.
- *
- * @param address the IP address as a String.
- *
- * @return true if a valid IPv4 address, false otherwise
- */
- public static boolean isValidIPv6(String address) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/Selector.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/Selector.java
deleted file mode 100644
index c89d62efc..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/Selector.java
+++ /dev/null
@@ -1,9 +0,0 @@
-package org.bouncycastle.util;
-
-
-public interface Selector {
-
- public boolean match(Object obj);
-
- public Object clone();
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/Store.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/Store.java
deleted file mode 100644
index a4735e026..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/Store.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package org.bouncycastle.util;
-
-
-public interface Store {
-
- public java.util.Collection getMatches(Selector selector);
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/StoreException.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/StoreException.java
deleted file mode 100644
index 2a5981c91..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/StoreException.java
+++ /dev/null
@@ -1,11 +0,0 @@
-package org.bouncycastle.util;
-
-
-public class StoreException extends RuntimeException {
-
- public StoreException(String s, Throwable e) {
- }
-
- public Throwable getCause() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/Strings.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/Strings.java
deleted file mode 100644
index 5c617b204..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/Strings.java
+++ /dev/null
@@ -1,65 +0,0 @@
-package org.bouncycastle.util;
-
-
-public final class Strings {
-
- public Strings() {
- }
-
- public static String fromUTF8ByteArray(byte[] bytes) {
- }
-
- public static byte[] toUTF8ByteArray(String string) {
- }
-
- public static byte[] toUTF8ByteArray(char[] string) {
- }
-
- public static void toUTF8ByteArray(char[] string, java.io.OutputStream sOut) {
- }
-
- /**
- * A locale independent version of toUpperCase.
- *
- * @param string input to be converted
- * @return a US Ascii uppercase version
- */
- public static String toUpperCase(String string) {
- }
-
- /**
- * A locale independent version of toLowerCase.
- *
- * @param string input to be converted
- * @return a US ASCII lowercase version
- */
- public static String toLowerCase(String string) {
- }
-
- public static byte[] toByteArray(char[] chars) {
- }
-
- public static byte[] toByteArray(String string) {
- }
-
- /**
- * Convert an array of 8 bit characters into a string.
- *
- * @param bytes 8 bit characters.
- * @return resulting String.
- */
- public static String fromByteArray(byte[] bytes) {
- }
-
- /**
- * Do a simple conversion of an array of 8 bit characters into a string.
- *
- * @param bytes 8 bit characters.
- * @return resulting String.
- */
- public static char[] asCharArray(byte[] bytes) {
- }
-
- public static String[] split(String input, char delimiter) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/Base64.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/Base64.java
deleted file mode 100644
index 2d5171b0f..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/Base64.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/**
- *
- * Classes for producing and reading Base64 and Hex strings.
- */
-package org.bouncycastle.util.encoders;
-
-
-public class Base64 {
-
- public Base64() {
- }
-
- /**
- * encode the input data producing a base 64 encoded byte array.
- *
- * @return a byte array containing the base 64 encoded data.
- */
- public static byte[] encode(byte[] data) {
- }
-
- /**
- * Encode the byte data to base 64 writing it to the given output stream.
- *
- * @return the number of bytes produced.
- */
- public static int encode(byte[] data, java.io.OutputStream out) {
- }
-
- /**
- * Encode the byte data to base 64 writing it to the given output stream.
- *
- * @return the number of bytes produced.
- */
- public static int encode(byte[] data, int off, int length, java.io.OutputStream out) {
- }
-
- /**
- * decode the base 64 encoded input data. It is assumed the input data is valid.
- *
- * @return a byte array representing the decoded data.
- */
- public static byte[] decode(byte[] data) {
- }
-
- /**
- * decode the base 64 encoded String data - whitespace will be ignored.
- *
- * @return a byte array representing the decoded data.
- */
- public static byte[] decode(String data) {
- }
-
- /**
- * decode the base 64 encoded String data writing it to the given output stream,
- * whitespace characters will be ignored.
- *
- * @return the number of bytes produced.
- */
- public static int decode(String data, java.io.OutputStream out) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/Base64Encoder.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/Base64Encoder.java
deleted file mode 100644
index 5a91f211d..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/Base64Encoder.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/**
- *
- * Classes for producing and reading Base64 and Hex strings.
- */
-package org.bouncycastle.util.encoders;
-
-
-public class Base64Encoder implements Encoder {
-
- protected final byte[] encodingTable;
-
- protected byte padding;
-
- protected final byte[] decodingTable;
-
- public Base64Encoder() {
- }
-
- protected void initialiseDecodingTable() {
- }
-
- /**
- * encode the input data producing a base 64 output stream.
- *
- * @return the number of bytes produced.
- */
- public int encode(byte[] data, int off, int length, java.io.OutputStream out) {
- }
-
- /**
- * decode the base 64 encoded byte data writing it to the given output stream,
- * whitespace characters will be ignored.
- *
- * @return the number of bytes produced.
- */
- public int decode(byte[] data, int off, int length, java.io.OutputStream out) {
- }
-
- /**
- * decode the base 64 encoded String data writing it to the given output stream,
- * whitespace characters will be ignored.
- *
- * @return the number of bytes produced.
- */
- public int decode(String data, java.io.OutputStream out) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/BufferedDecoder.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/BufferedDecoder.java
deleted file mode 100644
index 93d06b457..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/BufferedDecoder.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- *
- * Classes for producing and reading Base64 and Hex strings.
- */
-package org.bouncycastle.util.encoders;
-
-
-/**
- * a buffering class to allow translation from one format to another to
- * be done in discrete chunks.
- */
-public class BufferedDecoder {
-
- protected byte[] buf;
-
- protected int bufOff;
-
- protected Translator translator;
-
- /**
- * @param translator the translator to use.
- * @param bufSize amount of input to buffer for each chunk.
- */
- public BufferedDecoder(Translator translator, int bufSize) {
- }
-
- public int processByte(byte in, byte[] out, int outOff) {
- }
-
- public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/BufferedEncoder.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/BufferedEncoder.java
deleted file mode 100644
index de82865ec..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/BufferedEncoder.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/**
- *
- * Classes for producing and reading Base64 and Hex strings.
- */
-package org.bouncycastle.util.encoders;
-
-
-/**
- * a buffering class to allow translation from one format to another to
- * be done in discrete chunks.
- */
-public class BufferedEncoder {
-
- protected byte[] buf;
-
- protected int bufOff;
-
- protected Translator translator;
-
- /**
- * @param translator the translator to use.
- * @param bufSize amount of input to buffer for each chunk.
- */
- public BufferedEncoder(Translator translator, int bufSize) {
- }
-
- public int processByte(byte in, byte[] out, int outOff) {
- }
-
- public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/Encoder.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/Encoder.java
deleted file mode 100644
index 36d433e07..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/Encoder.java
+++ /dev/null
@@ -1,19 +0,0 @@
-/**
- *
- * Classes for producing and reading Base64 and Hex strings.
- */
-package org.bouncycastle.util.encoders;
-
-
-/**
- * Encode and decode byte arrays (typically from binary to 7-bit ASCII
- * encodings).
- */
-public interface Encoder {
-
- public int encode(byte[] data, int off, int length, java.io.OutputStream out);
-
- public int decode(byte[] data, int off, int length, java.io.OutputStream out);
-
- public int decode(String data, java.io.OutputStream out);
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/Hex.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/Hex.java
deleted file mode 100644
index 105302046..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/Hex.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/**
- *
- * Classes for producing and reading Base64 and Hex strings.
- */
-package org.bouncycastle.util.encoders;
-
-
-public class Hex {
-
- public Hex() {
- }
-
- /**
- * encode the input data producing a Hex encoded byte array.
- *
- * @return a byte array containing the Hex encoded data.
- */
- public static byte[] encode(byte[] data) {
- }
-
- /**
- * encode the input data producing a Hex encoded byte array.
- *
- * @return a byte array containing the Hex encoded data.
- */
- public static byte[] encode(byte[] data, int off, int length) {
- }
-
- /**
- * Hex encode the byte data writing it to the given output stream.
- *
- * @return the number of bytes produced.
- */
- public static int encode(byte[] data, java.io.OutputStream out) {
- }
-
- /**
- * Hex encode the byte data writing it to the given output stream.
- *
- * @return the number of bytes produced.
- */
- public static int encode(byte[] data, int off, int length, java.io.OutputStream out) {
- }
-
- /**
- * decode the Hex encoded input data. It is assumed the input data is valid.
- *
- * @return a byte array representing the decoded data.
- */
- public static byte[] decode(byte[] data) {
- }
-
- /**
- * decode the Hex encoded String data - whitespace will be ignored.
- *
- * @return a byte array representing the decoded data.
- */
- public static byte[] decode(String data) {
- }
-
- /**
- * decode the Hex encoded String data writing it to the given output stream,
- * whitespace characters will be ignored.
- *
- * @return the number of bytes produced.
- */
- public static int decode(String data, java.io.OutputStream out) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/HexEncoder.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/HexEncoder.java
deleted file mode 100644
index 83c047250..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/HexEncoder.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/**
- *
- * Classes for producing and reading Base64 and Hex strings.
- */
-package org.bouncycastle.util.encoders;
-
-
-public class HexEncoder implements Encoder {
-
- protected final byte[] encodingTable;
-
- protected final byte[] decodingTable;
-
- public HexEncoder() {
- }
-
- protected void initialiseDecodingTable() {
- }
-
- /**
- * encode the input data producing a Hex output stream.
- *
- * @return the number of bytes produced.
- */
- public int encode(byte[] data, int off, int length, java.io.OutputStream out) {
- }
-
- /**
- * decode the Hex encoded byte data writing it to the given output stream,
- * whitespace characters will be ignored.
- *
- * @return the number of bytes produced.
- */
- public int decode(byte[] data, int off, int length, java.io.OutputStream out) {
- }
-
- /**
- * decode the Hex encoded String data writing it to the given output stream,
- * whitespace characters will be ignored.
- *
- * @return the number of bytes produced.
- */
- public int decode(String data, java.io.OutputStream out) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/HexTranslator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/HexTranslator.java
deleted file mode 100644
index dc79baf91..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/HexTranslator.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- *
- * Classes for producing and reading Base64 and Hex strings.
- */
-package org.bouncycastle.util.encoders;
-
-
-/**
- * Converters for going from hex to binary and back. Note: this class assumes ASCII processing.
- */
-public class HexTranslator implements Translator {
-
- public HexTranslator() {
- }
-
- /**
- * size of the output block on encoding produced by getDecodedBlockSize()
- * bytes.
- */
- public int getEncodedBlockSize() {
- }
-
- public int encode(byte[] in, int inOff, int length, byte[] out, int outOff) {
- }
-
- /**
- * size of the output block on decoding produced by getEncodedBlockSize()
- * bytes.
- */
- public int getDecodedBlockSize() {
- }
-
- public int decode(byte[] in, int inOff, int length, byte[] out, int outOff) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/Translator.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/Translator.java
deleted file mode 100644
index 90dbee4fb..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/Translator.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- *
- * Classes for producing and reading Base64 and Hex strings.
- */
-package org.bouncycastle.util.encoders;
-
-
-/**
- * general interface for an translator.
- */
-public interface Translator {
-
- /**
- * size of the output block on encoding produced by getDecodedBlockSize()
- * bytes.
- */
- public int getEncodedBlockSize();
-
- public int encode(byte[] in, int inOff, int length, byte[] out, int outOff);
-
- /**
- * size of the output block on decoding produced by getEncodedBlockSize()
- * bytes.
- */
- public int getDecodedBlockSize();
-
- public int decode(byte[] in, int inOff, int length, byte[] out, int outOff);
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/UrlBase64.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/UrlBase64.java
deleted file mode 100644
index fd4aa7e6d..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/UrlBase64.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/**
- *
- * Classes for producing and reading Base64 and Hex strings.
- */
-package org.bouncycastle.util.encoders;
-
-
-/**
- * Convert binary data to and from UrlBase64 encoding. This is identical to
- * Base64 encoding, except that the padding character is "." and the other
- * non-alphanumeric characters are "-" and "_" instead of "+" and "/".
- * - * The purpose of UrlBase64 encoding is to provide a compact encoding of binary - * data that is safe for use as an URL parameter. Base64 encoding does not - * produce encoded values that are safe for use in URLs, since "/" can be - * interpreted as a path delimiter; "+" is the encoded form of a space; and - * "=" is used to separate a name from the corresponding value in an URL - * parameter. - */ -public class UrlBase64 { - - public UrlBase64() { - } - - /** - * Encode the input data producing a URL safe base 64 encoded byte array. - * - * @return a byte array containing the URL safe base 64 encoded data. - */ - public static byte[] encode(byte[] data) { - } - - /** - * Encode the byte data writing it to the given output stream. - * - * @return the number of bytes produced. - */ - public static int encode(byte[] data, java.io.OutputStream out) { - } - - /** - * Decode the URL safe base 64 encoded input data - white space will be ignored. - * - * @return a byte array representing the decoded data. - */ - public static byte[] decode(byte[] data) { - } - - /** - * decode the URL safe base 64 encoded byte data writing it to the given output stream, - * whitespace characters will be ignored. - * - * @return the number of bytes produced. - */ - public static int decode(byte[] data, java.io.OutputStream out) { - } - - /** - * decode the URL safe base 64 encoded String data - whitespace will be ignored. - * - * @return a byte array representing the decoded data. - */ - public static byte[] decode(String data) { - } - - /** - * Decode the URL safe base 64 encoded String data writing it to the given output stream, - * whitespace characters will be ignored. - * - * @return the number of bytes produced. - */ - public static int decode(String data, java.io.OutputStream out) { - } -} diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/UrlBase64Encoder.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/UrlBase64Encoder.java deleted file mode 100644 index d280d5dd5..000000000 --- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/encoders/UrlBase64Encoder.java +++ /dev/null @@ -1,24 +0,0 @@ -/** - * - * Classes for producing and reading Base64 and Hex strings. - */ -package org.bouncycastle.util.encoders; - - -/** - * Convert binary data to and from UrlBase64 encoding. This is identical to - * Base64 encoding, except that the padding character is "." and the other - * non-alphanumeric characters are "-" and "_" instead of "+" and "/". - *
- * The purpose of UrlBase64 encoding is to provide a compact encoding of binary
- * data that is safe for use as an URL parameter. Base64 encoding does not
- * produce encoded values that are safe for use in URLs, since "/" can be
- * interpreted as a path delimiter; "+" is the encoded form of a space; and
- * "=" is used to separate a name from the corresponding value in an URL
- * parameter.
- */
-public class UrlBase64Encoder extends Base64Encoder {
-
- public UrlBase64Encoder() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/io/StreamOverflowException.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/io/StreamOverflowException.java
deleted file mode 100644
index a0d002e68..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/io/StreamOverflowException.java
+++ /dev/null
@@ -1,8 +0,0 @@
-package org.bouncycastle.util.io;
-
-
-public class StreamOverflowException extends java.io.IOException {
-
- public StreamOverflowException(String msg) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/io/Streams.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/io/Streams.java
deleted file mode 100644
index c4c03713f..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/io/Streams.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package org.bouncycastle.util.io;
-
-
-public final class Streams {
-
- public Streams() {
- }
-
- public static void drain(java.io.InputStream inStr) {
- }
-
- public static byte[] readAll(java.io.InputStream inStr) {
- }
-
- public static byte[] readAllLimited(java.io.InputStream inStr, int limit) {
- }
-
- public static int readFully(java.io.InputStream inStr, byte[] buf) {
- }
-
- public static int readFully(java.io.InputStream inStr, byte[] buf, int off, int len) {
- }
-
- public static void pipeAll(java.io.InputStream inStr, java.io.OutputStream outStr) {
- }
-
- public static long pipeAllLimited(java.io.InputStream inStr, long limit, java.io.OutputStream outStr) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/io/TeeInputStream.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/io/TeeInputStream.java
deleted file mode 100644
index 9c1735639..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/io/TeeInputStream.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package org.bouncycastle.util.io;
-
-
-public class TeeInputStream extends java.io.InputStream {
-
- public TeeInputStream(java.io.InputStream input, java.io.OutputStream output) {
- }
-
- public int read(byte[] buf) {
- }
-
- public int read(byte[] buf, int off, int len) {
- }
-
- public int read() {
- }
-
- public void close() {
- }
-
- public java.io.OutputStream getOutputStream() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/io/TeeOutputStream.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/io/TeeOutputStream.java
deleted file mode 100644
index 0e0c19127..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/bouncycastle/util/io/TeeOutputStream.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package org.bouncycastle.util.io;
-
-
-public class TeeOutputStream extends java.io.OutputStream {
-
- public TeeOutputStream(java.io.OutputStream output1, java.io.OutputStream output2) {
- }
-
- public void write(byte[] buf) {
- }
-
- public void write(byte[] buf, int off, int len) {
- }
-
- public void write(int b) {
- }
-
- public void flush() {
- }
-
- public void close() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/JSONArray.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/JSONArray.java
deleted file mode 100644
index 557ef8e1d..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/JSONArray.java
+++ /dev/null
@@ -1,399 +0,0 @@
-package org.json;
-
-
-/**
- * A JSONArray is an ordered sequence of values. Its external text form is a
- * string wrapped in square brackets with commas separating the values. The
- * internal form is an object having get
and opt
- * methods for accessing the values by index, and put
methods for
- * adding or replacing values. The values can be any of these types:
- * Boolean
, JSONArray
, JSONObject
,
- * Number
, String
, or the
- * JSONObject.NULL object
.
- *
- * The constructor can convert a JSON text into a Java object. The
- * toString
method converts to JSON text.
- *
- * A get
method returns a value if one can be found, and throws an
- * exception if one cannot be found. An opt
method returns a
- * default value instead of throwing an exception, and so is useful for
- * obtaining optional values.
- *
- * The generic get()
and opt()
methods return an
- * object which you can cast or query for type. There are also typed
- * get
and opt
methods that do type checking and type
- * coersion for you.
- *
- * The texts produced by the toString
methods strictly conform to
- * JSON syntax rules. The constructors are more forgiving in the texts they will
- * accept:
- *
,
(comma) may appear just
- * before the closing bracket.null
value will be inserted when there
- * is ,
(comma) elision.'
(single
- * quote).{ } [ ] / \ : , = ; #
and if they do not look like numbers
- * and if they are not the reserved words true
,
- * false
, or null
.;
(semicolon) as
- * well as by ,
(comma).0-
(octal) or
- * 0x-
(hex) prefix.[
(left bracket)
- * and ends with ]
(right bracket).
- * @throws JSONException If there is a syntax error.
- */
- public JSONArray(String string) {
- }
-
- /**
- * Construct a JSONArray from a Collection.
- * @param collection A Collection.
- */
- public JSONArray(java.util.Vector collection) {
- }
-
- /**
- * Get the object value associated with an index.
- * @param index
- * The index must be between 0 and length() - 1.
- * @return An object value.
- * @throws JSONException If there is no value for the index.
- */
- public Object get(int index) {
- }
-
- /**
- * Get the boolean value associated with an index.
- * The string values "true" and "false" are converted to boolean.
- *
- * @param index The index must be between 0 and length() - 1.
- * @return The truth.
- * @throws JSONException If there is no value for the index or if the
- * value is not convertable to boolean.
- */
- public boolean getBoolean(int index) {
- }
-
- /**
- * Get the JSONArray associated with an index.
- * @param index The index must be between 0 and length() - 1.
- * @return A JSONArray value.
- * @throws JSONException If there is no value for the index. or if the
- * value is not a JSONArray
- */
- public JSONArray getJSONArray(int index) {
- }
-
- /**
- * Get the JSONObject associated with an index.
- * @param index subscript
- * @return A JSONObject value.
- * @throws JSONException If there is no value for the index or if the
- * value is not a JSONObject
- */
- public JSONObject getJSONObject(int index) {
- }
-
- /**
- * Get the string associated with an index.
- * @param index The index must be between 0 and length() - 1.
- * @return A string value.
- * @throws JSONException If there is no value for the index.
- */
- public String getString(int index) {
- }
-
- /**
- * Determine if the value is null.
- * @param index The index must be between 0 and length() - 1.
- * @return true if the value at the index is null, or if there is no value.
- */
- public boolean isNull(int index) {
- }
-
- /**
- * Make a string from the contents of this JSONArray. The
- * separator
string is inserted between each element.
- * Warning: This method assumes that the data structure is acyclical.
- * @param separator A string that will be inserted between the elements.
- * @return a string.
- * @throws JSONException If the array contains an invalid number.
- */
- public String join(String separator) {
- }
-
- /**
- * Get the number of elements in the JSONArray, included nulls.
- *
- * @return The length (or size).
- */
- public int length() {
- }
-
- /**
- * Get the optional object value associated with an index.
- * @param index The index must be between 0 and length() - 1.
- * @return An object value, or null if there is no
- * object at that index.
- */
- public Object opt(int index) {
- }
-
- /**
- * Get the optional boolean value associated with an index.
- * It returns false if there is no value at that index,
- * or if the value is not Boolean.TRUE or the String "true".
- *
- * @param index The index must be between 0 and length() - 1.
- * @return The truth.
- */
- public boolean optBoolean(int index) {
- }
-
- /**
- * Get the optional boolean value associated with an index.
- * It returns the defaultValue if there is no value at that index or if
- * it is not a Boolean or the String "true" or "false" (case insensitive).
- *
- * @param index The index must be between 0 and length() - 1.
- * @param defaultValue A boolean default.
- * @return The truth.
- */
- public boolean optBoolean(int index, boolean defaultValue) {
- }
-
- /**
- * Get the optional JSONArray associated with an index.
- * @param index subscript
- * @return A JSONArray value, or null if the index has no value,
- * or if the value is not a JSONArray.
- */
- public JSONArray optJSONArray(int index) {
- }
-
- /**
- * Get the optional JSONObject associated with an index.
- * Null is returned if the key is not found, or null if the index has
- * no value, or if the value is not a JSONObject.
- *
- * @param index The index must be between 0 and length() - 1.
- * @return A JSONObject value.
- */
- public JSONObject optJSONObject(int index) {
- }
-
- /**
- * Get the optional string value associated with an index. It returns an
- * empty string if there is no value at that index. If the value
- * is not a string and is not null, then it is coverted to a string.
- *
- * @param index The index must be between 0 and length() - 1.
- * @return A String value.
- */
- public String optString(int index) {
- }
-
- /**
- * Get the optional string associated with an index.
- * The defaultValue is returned if the key is not found.
- *
- * @param index The index must be between 0 and length() - 1.
- * @param defaultValue The default value.
- * @return A String value.
- */
- public String optString(int index, String defaultValue) {
- }
-
- /**
- * Append a boolean value. This increases the array's length by one.
- *
- * @param value A boolean value.
- * @return this.
- */
- public JSONArray put(boolean value) {
- }
-
- /**
- * Put a value in the JSONArray, where the value will be a
- * JSONArray which is produced from a Collection.
- * @param value A Collection value.
- * @return this.
- */
- public JSONArray put(java.util.Vector value) {
- }
-
- /**
- * Append an int value. This increases the array's length by one.
- *
- * @param value An int value.
- * @return this.
- */
- public JSONArray put(int value) {
- }
-
- /**
- * Append an long value. This increases the array's length by one.
- *
- * @param value A long value.
- * @return this.
- */
- public JSONArray put(long value) {
- }
-
- /**
- * Append an object value. This increases the array's length by one.
- * @param value An object value. The value should be a
- * Boolean, Double, Integer, JSONArray, JSONObject, Long, or String, or the
- * JSONObject.NULL object.
- * @return this.
- */
- public JSONArray put(Object value) {
- }
-
- /**
- * Put or replace a boolean value in the JSONArray. If the index is greater
- * than the length of the JSONArray, then null elements will be added as
- * necessary to pad it out.
- * @param index The subscript.
- * @param value A boolean value.
- * @return this.
- * @throws JSONException If the index is negative.
- */
- public JSONArray put(int index, boolean value) {
- }
-
- /**
- * Put a value in the JSONArray, where the value will be a
- * JSONArray which is produced from a Collection.
- * @param index The subscript.
- * @param value A Collection value.
- * @return this.
- * @throws JSONException If the index is negative or if the value is
- * not finite.
- */
- public JSONArray put(int index, java.util.Vector value) {
- }
-
- /**
- * Put or replace an int value. If the index is greater than the length of
- * the JSONArray, then null elements will be added as necessary to pad
- * it out.
- * @param index The subscript.
- * @param value An int value.
- * @return this.
- * @throws JSONException If the index is negative.
- */
- public JSONArray put(int index, int value) {
- }
-
- /**
- * Put or replace a long value. If the index is greater than the length of
- * the JSONArray, then null elements will be added as necessary to pad
- * it out.
- * @param index The subscript.
- * @param value A long value.
- * @return this.
- * @throws JSONException If the index is negative.
- */
- public JSONArray put(int index, long value) {
- }
-
- /**
- * Put or replace an object value in the JSONArray. If the index is greater
- * than the length of the JSONArray, then null elements will be added as
- * necessary to pad it out.
- * @param index The subscript.
- * @param value The value to put into the array. The value should be a
- * Boolean, Double, Integer, JSONArray, JSONObject, Long, or String, or the
- * JSONObject.NULL object.
- * @return this.
- * @throws JSONException If the index is negative or if the the value is
- * an invalid number.
- */
- public JSONArray put(int index, Object value) {
- }
-
- /**
- * Produce a JSONObject by combining a JSONArray of names with the values
- * of this JSONArray.
- * @param names A JSONArray containing a list of key strings. These will be
- * paired with the values.
- * @return A JSONObject, or null if there are no names or if this JSONArray
- * has no values.
- * @throws JSONException If any of the names are null.
- */
- public JSONObject toJSONObject(JSONArray names) {
- }
-
- /**
- * Make a JSON text of this JSONArray. For compactness, no
- * unnecessary whitespace is added. If it is not possible to produce a
- * syntactically correct JSON text then null will be returned instead. This
- * could occur if the array contains an invalid number.
- *
- * Warning: This method assumes that the data structure is acyclical.
- *
- * @return a printable, displayable, transmittable
- * representation of the array.
- */
- public String toString() {
- }
-
- /**
- * Make a prettyprinted JSON text of this JSONArray.
- * Warning: This method assumes that the data structure is acyclical.
- * @param indentFactor The number of spaces to add to each level of
- * indentation.
- * @return a printable, displayable, transmittable
- * representation of the object, beginning
- * with [
(left bracket) and ending
- * with ]
(right bracket).
- * @throws JSONException
- */
- public String toString(int indentFactor) {
- }
-
- /**
- * Write the contents of the JSONArray as JSON text to a writer.
- * For compactness, no whitespace is added.
- *
- * Warning: This method assumes that the data structure is acyclical.
- *
- * @return The writer.
- * @throws JSONException
- */
- public java.io.Writer write(java.io.Writer writer) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/JSONException.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/JSONException.java
deleted file mode 100644
index 48de0f780..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/JSONException.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package org.json;
-
-
-/**
- * The JSONException is thrown by the JSON.org classes then things are amiss.
- * @author JSON.org
- * @version 2
- */
-public class JSONException extends Exception {
-
- /**
- * Constructs a JSONException with an explanatory message.
- * @param message Detail about the reason for the exception.
- */
- public JSONException(String message) {
- }
-
- public JSONException(Throwable t) {
- }
-
- public Throwable getCause() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/JSONObject.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/JSONObject.java
deleted file mode 100644
index ff2cc8ed0..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/JSONObject.java
+++ /dev/null
@@ -1,514 +0,0 @@
-package org.json;
-
-
-/**
- * A JSONObject is an unordered collection of name/value pairs. Its
- * external form is a string wrapped in curly braces with colons between the
- * names and values, and commas between the values and names. The internal form
- * is an object having get
and opt
methods for
- * accessing the values by name, and put
methods for adding or
- * replacing values by name. The values can be any of these types:
- * Boolean
, JSONArray
, JSONObject
,
- * Number
, String
, or the JSONObject.NULL
- * object. A JSONObject constructor can be used to convert an external form
- * JSON text into an internal form whose values can be retrieved with the
- * get
and opt
methods, or to convert values into a
- * JSON text using the put
and toString
methods.
- * A get
method returns a value if one can be found, and throws an
- * exception if one cannot be found. An opt
method returns a
- * default value instead of throwing an exception, and so is useful for
- * obtaining optional values.
- *
- * The generic get()
and opt()
methods return an
- * object, which you can cast or query for type. There are also typed
- * get
and opt
methods that do type checking and type
- * coersion for you.
- *
- * The put
methods adds values to an object. For example,
- * myString = new JSONObject().put("JSON", "Hello, World!").toString();- * produces the string
{"JSON": "Hello, World"}
.
- *
- * The texts produced by the toString
methods strictly conform to
- * the JSON sysntax rules.
- * The constructors are more forgiving in the texts they will accept:
- *
,
(comma) may appear just
- * before the closing brace.'
(single
- * quote).{ } [ ] / \ : , = ; #
and if they do not look like numbers
- * and if they are not the reserved words true
,
- * false
, or null
.=
or =>
as well as
- * by :
.;
(semicolon) as
- * well as by ,
(comma).0-
(octal) or
- * 0x-
(hex) prefix.NULL
object than to use Java's null
value.
- * JSONObject.NULL.equals(null)
returns true
.
- * JSONObject.NULL.toString()
returns "null"
.
- */
- public static final Object NULL;
-
- /**
- * Construct an empty JSONObject.
- */
- public JSONObject() {
- }
-
- /**
- * Construct a JSONObject from a JSONTokener.
- * @param x A JSONTokener object containing the source string.
- * @throws JSONException If there is a syntax error in the source string.
- */
- public JSONObject(JSONTokener x) {
- }
-
- /**
- * Construct a JSONObject from a string.
- * This is the most commonly used JSONObject constructor.
- * @param string A string beginning
- * with {
(left brace) and ending
- * with }
(right brace).
- * @exception JSONException If there is a syntax error in the source string.
- */
- public JSONObject(String string) {
- }
-
- /**
- * Accumulate values under a key. It is similar to the put method except
- * that if there is already an object stored under the key then a
- * JSONArray is stored under the key to hold all of the accumulated values.
- * If there is already a JSONArray, then the new value is appended to it.
- * In contrast, the put method replaces the previous value.
- * @param key A key string.
- * @param value An object to be accumulated under the key.
- * @return this.
- * @throws JSONException If the value is an invalid number
- * or if the key is null.
- */
- public JSONObject accumulate(String key, Object value) {
- }
-
- /**
- * Get the value object associated with a key.
- *
- * @param key A key string.
- * @return The object associated with the key.
- * @throws JSONException if the key is not found.
- */
- public Object get(String key) {
- }
-
- /**
- * Get the boolean value associated with a key.
- *
- * @param key A key string.
- * @return The truth.
- * @throws JSONException
- * if the value is not a Boolean or the String "true" or "false".
- */
- public boolean getBoolean(String key) {
- }
-
- /**
- * Get the int value associated with a key. If the number value is too
- * large for an int, it will be clipped.
- *
- * @param key A key string.
- * @return The integer value.
- * @throws JSONException if the key is not found or if the value cannot
- * be converted to an integer.
- */
- public int getInt(String key) {
- }
-
- /**
- * Get the JSONArray value associated with a key.
- *
- * @param key A key string.
- * @return A JSONArray which is the value.
- * @throws JSONException if the key is not found or
- * if the value is not a JSONArray.
- */
- public JSONArray getJSONArray(String key) {
- }
-
- /**
- * Get the JSONObject value associated with a key.
- *
- * @param key A key string.
- * @return A JSONObject which is the value.
- * @throws JSONException if the key is not found or
- * if the value is not a JSONObject.
- */
- public JSONObject getJSONObject(String key) {
- }
-
- /**
- * Get the long value associated with a key. If the number value is too
- * long for a long, it will be clipped.
- *
- * @param key A key string.
- * @return The long value.
- * @throws JSONException if the key is not found or if the value cannot
- * be converted to a long.
- */
- public long getLong(String key) {
- }
-
- /**
- * Get the string associated with a key.
- *
- * @param key A key string.
- * @return A string which is the value.
- * @throws JSONException if the key is not found.
- */
- public String getString(String key) {
- }
-
- /**
- * Determine if the JSONObject contains a specific key.
- * @param key A key string.
- * @return true if the key exists in the JSONObject.
- */
- public boolean has(String key) {
- }
-
- /**
- * Determine if the value associated with the key is null or if there is
- * no value.
- * @param key A key string.
- * @return true if there is no value associated with the key or if
- * the value is the JSONObject.NULL object.
- */
- public boolean isNull(String key) {
- }
-
- /**
- * Get an enumeration of the keys of the JSONObject.
- *
- * @return An iterator of the keys.
- */
- public java.util.Enumeration keys() {
- }
-
- /**
- * Get the number of keys stored in the JSONObject.
- *
- * @return The number of keys in the JSONObject.
- */
- public int length() {
- }
-
- /**
- * Produce a JSONArray containing the names of the elements of this
- * JSONObject.
- * @return A JSONArray containing the key strings, or null if the JSONObject
- * is empty.
- */
- public JSONArray names() {
- }
-
- /**
- * Shave off trailing zeros and decimal point, if possible.
- */
- public static String trimNumber(String s) {
- }
-
- /**
- * Produce a string from a Number.
- * @param n A Number
- * @return A String.
- * @throws JSONException If n is a non-finite number.
- */
- public static String numberToString(Object n) {
- }
-
- /**
- * Get an optional value associated with a key.
- * @param key A key string.
- * @return An object which is the value, or null if there is no value.
- */
- public Object opt(String key) {
- }
-
- /**
- * Get an optional boolean associated with a key.
- * It returns false if there is no such key, or if the value is not
- * Boolean.TRUE or the String "true".
- *
- * @param key A key string.
- * @return The truth.
- */
- public boolean optBoolean(String key) {
- }
-
- /**
- * Get an optional boolean associated with a key.
- * It returns the defaultValue if there is no such key, or if it is not
- * a Boolean or the String "true" or "false" (case insensitive).
- *
- * @param key A key string.
- * @param defaultValue The default.
- * @return The truth.
- */
- public boolean optBoolean(String key, boolean defaultValue) {
- }
-
- /**
- * Put a key/value pair in the JSONObject, where the value will be a
- * JSONArray which is produced from a Collection.
- * @param key A key string.
- * @param value A Collection value.
- * @return this.
- * @throws JSONException
- */
- public JSONObject put(String key, java.util.Vector value) {
- }
-
- /**
- * Get an optional int value associated with a key,
- * or zero if there is no such key or if the value is not a number.
- * If the value is a string, an attempt will be made to evaluate it as
- * a number.
- *
- * @param key A key string.
- * @return An object which is the value.
- */
- public int optInt(String key) {
- }
-
- /**
- * Get an optional int value associated with a key,
- * or the default if there is no such key or if the value is not a number.
- * If the value is a string, an attempt will be made to evaluate it as
- * a number.
- *
- * @param key A key string.
- * @param defaultValue The default.
- * @return An object which is the value.
- */
- public int optInt(String key, int defaultValue) {
- }
-
- /**
- * Get an optional JSONArray associated with a key.
- * It returns null if there is no such key, or if its value is not a
- * JSONArray.
- *
- * @param key A key string.
- * @return A JSONArray which is the value.
- */
- public JSONArray optJSONArray(String key) {
- }
-
- /**
- * Get an optional JSONObject associated with a key.
- * It returns null if there is no such key, or if its value is not a
- * JSONObject.
- *
- * @param key A key string.
- * @return A JSONObject which is the value.
- */
- public JSONObject optJSONObject(String key) {
- }
-
- /**
- * Get an optional long value associated with a key,
- * or zero if there is no such key or if the value is not a number.
- * If the value is a string, an attempt will be made to evaluate it as
- * a number.
- *
- * @param key A key string.
- * @return An object which is the value.
- */
- public long optLong(String key) {
- }
-
- /**
- * Get an optional long value associated with a key,
- * or the default if there is no such key or if the value is not a number.
- * If the value is a string, an attempt will be made to evaluate it as
- * a number.
- *
- * @param key A key string.
- * @param defaultValue The default.
- * @return An object which is the value.
- */
- public long optLong(String key, long defaultValue) {
- }
-
- /**
- * Get an optional string associated with a key.
- * It returns an empty string if there is no such key. If the value is not
- * a string and is not null, then it is coverted to a string.
- *
- * @param key A key string.
- * @return A string which is the value.
- */
- public String optString(String key) {
- }
-
- /**
- * Get an optional string associated with a key.
- * It returns the defaultValue if there is no such key.
- *
- * @param key A key string.
- * @param defaultValue The default.
- * @return A string which is the value.
- */
- public String optString(String key, String defaultValue) {
- }
-
- /**
- * Put a key/boolean pair in the JSONObject.
- *
- * @param key A key string.
- * @param value A boolean which is the value.
- * @return this.
- * @throws JSONException If the key is null.
- */
- public JSONObject put(String key, boolean value) {
- }
-
- /**
- * Put a key/int pair in the JSONObject.
- *
- * @param key A key string.
- * @param value An int which is the value.
- * @return this.
- * @throws JSONException If the key is null.
- */
- public JSONObject put(String key, int value) {
- }
-
- /**
- * Put a key/long pair in the JSONObject.
- *
- * @param key A key string.
- * @param value A long which is the value.
- * @return this.
- * @throws JSONException If the key is null.
- */
- public JSONObject put(String key, long value) {
- }
-
- /**
- * Put a key/value pair in the JSONObject. If the value is null,
- * then the key will be removed from the JSONObject if it is present.
- * @param key A key string.
- * @param value An object which is the value. It should be of one of these
- * types: Boolean, Double, Integer, JSONArray, JSONObject, Long, String,
- * or the JSONObject.NULL object.
- * @return this.
- * @throws JSONException If the value is non-finite number
- * or if the key is null.
- */
- public JSONObject put(String key, Object value) {
- }
-
- /**
- * Put a key/value pair in the JSONObject, but only if the
- * key and the value are both non-null.
- * @param key A key string.
- * @param value An object which is the value. It should be of one of these
- * types: Boolean, Double, Integer, JSONArray, JSONObject, Long, String,
- * or the JSONObject.NULL object.
- * @return this.
- * @throws JSONException If the value is a non-finite number.
- */
- public JSONObject putOpt(String key, Object value) {
- }
-
- /**
- * Produce a string in double quotes with backslash sequences in all the
- * right places. A backslash will be inserted within , allowing JSON
- * text to be delivered in HTML. In JSON text, a string cannot contain a
- * control character or an unescaped quote or backslash.
- * @param string A String
- * @return A String correctly formatted for insertion in a JSON text.
- */
- public static String quote(String string) {
- }
-
- /**
- * Remove a name and its value, if present.
- * @param key The name to be removed.
- * @return The value that was associated with the name,
- * or null if there was no value.
- */
- public Object remove(String key) {
- }
-
- /**
- * Produce a JSONArray containing the values of the members of this
- * JSONObject.
- * @param names A JSONArray containing a list of key strings. This
- * determines the sequence of the values in the result.
- * @return A JSONArray of values.
- * @throws JSONException If any of the values are non-finite numbers.
- */
- public JSONArray toJSONArray(JSONArray names) {
- }
-
- /**
- * Make a JSON text of this JSONObject. For compactness, no whitespace
- * is added. If this would not result in a syntactically correct JSON text,
- * then null will be returned instead.
- *
- * Warning: This method assumes that the data structure is acyclical.
- *
- * @return a printable, displayable, portable, transmittable
- * representation of the object, beginning
- * with {
(left brace) and ending
- * with }
(right brace).
- */
- public String toString() {
- }
-
- /**
- * Make a prettyprinted JSON text of this JSONObject.
- *
- * Warning: This method assumes that the data structure is acyclical.
- * @param indentFactor The number of spaces to add to each level of
- * indentation.
- * @return a printable, displayable, portable, transmittable
- * representation of the object, beginning
- * with {
(left brace) and ending
- * with }
(right brace).
- * @throws JSONException If the object contains an invalid number.
- */
- public String toString(int indentFactor) {
- }
-
- /**
- * Write the contents of the JSONObject as JSON text to a writer.
- * For compactness, no whitespace is added.
- *
- * Warning: This method assumes that the data structure is acyclical.
- *
- * @return The writer.
- * @throws JSONException
- */
- public java.io.Writer write(java.io.Writer writer) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/JSONString.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/JSONString.java
deleted file mode 100644
index 3734b6431..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/JSONString.java
+++ /dev/null
@@ -1,21 +0,0 @@
-package org.json;
-
-
-/**
- * The JSONString
interface allows a toJSONString()
- * method so that a class can change the behavior of
- * JSONObject.toString()
, JSONArray.toString()
,
- * and JSONWriter.value(
Object)
. The
- * toJSONString
method will be used instead of the default behavior
- * of using the Object's toString()
method and quoting the result.
- */
-public interface JSONString {
-
- /**
- * The toJSONString
method allows a class to produce its own JSON
- * serialization.
- *
- * @return A strictly syntactically correct JSON text.
- */
- public String toJSONString();
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/JSONStringer.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/JSONStringer.java
deleted file mode 100644
index 93315d58e..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/JSONStringer.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package org.json;
-
-
-/**
- * JSONStringer provides a quick and convenient way of producing JSON text.
- * The texts produced strictly conform to JSON syntax rules. No whitespace is
- * added, so the results are ready for transmission or storage. Each instance of
- * JSONStringer can produce one JSON text.
- *
- * A JSONStringer instance provides a value
method for appending
- * values to the
- * text, and a key
- * method for adding keys before values in objects. There are array
- * and endArray
methods that make and bound array values, and
- * object
and endObject
methods which make and bound
- * object values. All of these methods return the JSONWriter instance,
- * permitting cascade style. For example,
- * myString = new JSONStringer() - * .object() - * .key("JSON") - * .value("Hello, World!") - * .endObject() - * .toString();which produces the string
- * {"JSON":"Hello, World!"}- *
- * The first method called must be array
or object
.
- * There are no methods for adding commas or colons. JSONStringer adds them for
- * you. Objects and arrays can be nested up to 20 levels deep.
- *
- * This can sometimes be easier than using a JSONObject to build a string.
- * @author JSON.org
- * @version 2
- */
-public class JSONStringer extends JSONWriter {
-
- /**
- * Make a fresh JSONStringer. It can be used to build one JSON text.
- */
- public JSONStringer() {
- }
-
- /**
- * Return the JSON text. This method is used to obtain the product of the
- * JSONStringer instance. It will return null
if there was a
- * problem in the construction of the JSON text (such as the calls to
- * array
were not properly balanced with calls to
- * endArray
).
- * @return The JSON text.
- */
- public String toString() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/JSONTokener.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/JSONTokener.java
deleted file mode 100644
index daacb4fbb..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/JSONTokener.java
+++ /dev/null
@@ -1,161 +0,0 @@
-package org.json;
-
-
-/**
- * A JSONTokener takes a source string and extracts characters and tokens from
- * it. It is used by the JSONObject and JSONArray constructors to parse
- * JSON source strings.
- * @author JSON.org
- * @version 2
- */
-public class JSONTokener {
-
- /**
- * Construct a JSONTokener from a string.
- *
- * @param s A source string.
- */
- public JSONTokener(String s) {
- }
-
- /**
- * Back up one character. This provides a sort of lookahead capability,
- * so that you can test for a digit or letter before attempting to parse
- * the next number or identifier.
- */
- public void back() {
- }
-
- /**
- * Get the hex value of a character (base16).
- * @param c A character between '0' and '9' or between 'A' and 'F' or
- * between 'a' and 'f'.
- * @return An int between 0 and 15, or -1 if c was not a hex digit.
- */
- public static int dehexchar(char c) {
- }
-
- /**
- * Determine if the source string still contains characters that next()
- * can consume.
- * @return true if not yet at the end of the source.
- */
- public boolean more() {
- }
-
- /**
- * Get the next character in the source string.
- *
- * @return The next character, or 0 if past the end of the source string.
- */
- public char next() {
- }
-
- /**
- * Consume the next character, and check that it matches a specified
- * character.
- * @param c The character to match.
- * @return The character.
- * @throws JSONException if the character does not match.
- */
- public char next(char c) {
- }
-
- /**
- * Get the next n characters.
- *
- * @param n The number of characters to take.
- * @return A string of n characters.
- * @throws JSONException
- * Substring bounds error if there are not
- * n characters remaining in the source string.
- */
- public String next(int n) {
- }
-
- /**
- * Get the next char in the string, skipping whitespace
- * and comments (slashslash, slashstar, and hash).
- * @throws JSONException
- * @return A character, or 0 if there are no more characters.
- */
- public char nextClean() {
- }
-
- /**
- * Return the characters up to the next close quote character.
- * Backslash processing is done. The formal JSON format does not
- * allow strings in single quotes, but an implementation is allowed to
- * accept them.
- * @param quote The quoting character, either
- * "
(double quote) or
- * '
(single quote).
- * @return A String.
- * @throws JSONException Unterminated string.
- */
- public String nextString(char quote) {
- }
-
- /**
- * Get the text up but not including the specified character or the
- * end of line, whichever comes first.
- * @param d A delimiter character.
- * @return A string.
- */
- public String nextTo(char d) {
- }
-
- /**
- * Get the text up but not including one of the specified delimeter
- * characters or the end of line, whichever comes first.
- * @param delimiters A set of delimiter characters.
- * @return A string, trimmed.
- */
- public String nextTo(String delimiters) {
- }
-
- /**
- * Get the next value. The value can be a Boolean, Double, Integer,
- * JSONArray, JSONObject, Long, or String, or the JSONObject.NULL object.
- * @throws JSONException If syntax error.
- *
- * @return An object.
- */
- public Object nextValue() {
- }
-
- /**
- * Skip characters until the next character is the requested character.
- * If the requested character is not found, no characters are skipped.
- * @param to A character to skip to.
- * @return The requested character, or zero if the requested character
- * is not found.
- */
- public char skipTo(char to) {
- }
-
- /**
- * Skip characters until past the requested string.
- * If it is not found, we are left at the end of the source.
- * @param to A string to skip past.
- */
- public void skipPast(String to) {
- }
-
- /**
- * Make a JSONException to signal a syntax error.
- *
- * @param message The error message.
- * @return A JSONException object, suitable for throwing
- */
- public JSONException syntaxError(String message) {
- }
-
- /**
- * Make a printable string of this JSONTokener.
- *
- * @return " at character [this.myIndex] of [this.mySource]"
- */
- public String toString() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/JSONWriter.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/JSONWriter.java
deleted file mode 100644
index 35f842255..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/JSONWriter.java
+++ /dev/null
@@ -1,138 +0,0 @@
-package org.json;
-
-
-/**
- * JSONWriter provides a quick and convenient way of producing JSON text.
- * The texts produced strictly conform to JSON syntax rules. No whitespace is
- * added, so the results are ready for transmission or storage. Each instance of
- * JSONWriter can produce one JSON text.
- *
- * A JSONWriter instance provides a value
method for appending
- * values to the
- * text, and a key
- * method for adding keys before values in objects. There are array
- * and endArray
methods that make and bound array values, and
- * object
and endObject
methods which make and bound
- * object values. All of these methods return the JSONWriter instance,
- * permitting a cascade style. For example,
- * new JSONWriter(myWriter) - * .object() - * .key("JSON") - * .value("Hello, World!") - * .endObject();which writes
- * {"JSON":"Hello, World!"}- *
- * The first method called must be array
or object
.
- * There are no methods for adding commas or colons. JSONWriter adds them for
- * you. Objects and arrays can be nested up to 20 levels deep.
- *
- * This can sometimes be easier than using a JSONObject to build a string.
- * @author JSON.org
- * @version 2
- */
-public class JSONWriter {
-
- /**
- * The current mode. Values:
- * 'a' (array),
- * 'd' (done),
- * 'i' (initial),
- * 'k' (key),
- * 'o' (object).
- */
- protected char mode;
-
- /**
- * The writer that will receive the output.
- */
- protected java.io.Writer writer;
-
- /**
- * Make a fresh JSONWriter. It can be used to build one JSON text.
- */
- public JSONWriter(java.io.Writer w) {
- }
-
- /**
- * Begin appending a new array. All values until the balancing
- * endArray
will be appended to this array. The
- * endArray
method must be called to mark the array's end.
- * @return this
- * @throws JSONException If the nesting is too deep, or if the object is
- * started in the wrong place (for example as a key or after the end of the
- * outermost array or object).
- */
- public JSONWriter array() {
- }
-
- /**
- * End an array. This method most be called to balance calls to
- * array
.
- * @return this
- * @throws JSONException If incorrectly nested.
- */
- public JSONWriter endArray() {
- }
-
- /**
- * End an object. This method most be called to balance calls to
- * object
.
- * @return this
- * @throws JSONException If incorrectly nested.
- */
- public JSONWriter endObject() {
- }
-
- /**
- * Append a key. The key will be associated with the next value. In an
- * object, every value must be preceded by a key.
- * @param s A key string.
- * @return this
- * @throws JSONException If the key is out of place. For example, keys
- * do not belong in arrays or if the key is null.
- */
- public JSONWriter key(String s) {
- }
-
- /**
- * Begin appending a new object. All keys and values until the balancing
- * endObject
will be appended to this object. The
- * endObject
method must be called to mark the object's end.
- * @return this
- * @throws JSONException If the nesting is too deep, or if the object is
- * started in the wrong place (for example as a key or after the end of the
- * outermost array or object).
- */
- public JSONWriter object() {
- }
-
- /**
- * Append either the value true
or the value
- * false
.
- * @param b A boolean.
- * @return this
- * @throws JSONException
- */
- public JSONWriter value(boolean b) {
- }
-
- /**
- * Append a long value.
- * @param l A long.
- * @return this
- * @throws JSONException
- */
- public JSONWriter value(long l) {
- }
-
- /**
- * Append an object value.
- * @param o The object to append. It can be null, or a Boolean, Number,
- * String, JSONObject, or JSONArray, or an object with a toJSONString()
- * method.
- * @return this
- * @throws JSONException If the value is out of sequence.
- */
- public JSONWriter value(Object o) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/StringWriter.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/StringWriter.java
deleted file mode 100644
index 7f4cece5e..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/StringWriter.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package org.json;
-
-
-/**
- * A simple StringBuffer-based implementation of StringWriter
- */
-public class StringWriter extends java.io.Writer {
-
- public StringWriter() {
- }
-
- public StringWriter(int initialSize) {
- }
-
- public void write(char[] cbuf, int off, int len) {
- }
-
- public void write(String str) {
- }
-
- public void write(String str, int off, int len) {
- }
-
- public void flush() {
- }
-
- public void close() {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/util/XML.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/util/XML.java
deleted file mode 100644
index 30d37ce72..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/util/XML.java
+++ /dev/null
@@ -1,109 +0,0 @@
-package org.json.util;
-
-
-/**
- * This provides static methods to convert an XML text into a JSONObject,
- * and to covert a JSONObject into an XML text.
- * @author JSON.org
- * @version 2
- */
-public class XML {
-
- /**
- * The Character '&'.
- */
- public static final Character AMP;
-
- /**
- * The Character '''.
- */
- public static final Character APOS;
-
- /**
- * The Character '!'.
- */
- public static final Character BANG;
-
- /**
- * The Character '='.
- */
- public static final Character EQ;
-
- /**
- * The Character '>'.
- */
- public static final Character GT;
-
- /**
- * The Character '<'.
- */
- public static final Character LT;
-
- /**
- * The Character '?'.
- */
- public static final Character QUEST;
-
- /**
- * The Character '"'.
- */
- public static final Character QUOT;
-
- /**
- * The Character '/'.
- */
- public static final Character SLASH;
-
- public XML() {
- }
-
- /**
- * Replace special characters with XML escapes:
- *
- * & (ampersand) is replaced by & - * < (less than) is replaced by < - * > (greater than) is replaced by > - * " (double quote) is replaced by " - *- * @param string The string to be escaped. - * @return The escaped string. - */ - public static String escape(String string) { - } - - /** - * Convert a well-formed (but not necessarily valid) XML string into a - * JSONObject. Some information may be lost in this transformation - * because JSON is a data format and XML is a document format. XML uses - * elements, attributes, and content text, while JSON uses unordered - * collections of name/value pairs and arrays of values. JSON does not - * does not like to distinguish between elements and attributes. - * Sequences of similar elements are represented as JSONArrays. Content - * text may be placed in a "content" member. Comments, prologs, DTDs, and - *
<[ [ ]]>
are ignored.
- * @param string The source string.
- * @return A JSONObject containing the structured data from the XML string.
- * @throws JSONException
- */
- public static org.json.JSONObject toJSONObject(String string) {
- }
-
- /**
- * Convert a JSONObject into a well-formed, element-normal XML string.
- * @param o A JSONObject.
- * @return A string.
- * @throws JSONException
- */
- public static String toString(Object o) {
- }
-
- /**
- * Convert a JSONObject into a well-formed, element-normal XML string.
- * @param o A JSONObject.
- * @param tagName The optional name of the enclosing tag.
- * @return A string.
- * @throws JSONException
- */
- public static String toString(Object o, String tagName) {
- }
-}
diff --git a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/util/XMLTokener.java b/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/util/XMLTokener.java
deleted file mode 100644
index 51dd759f2..000000000
--- a/codenameone/examples/PubnubDevConsole/lib/impl/stubs/org/json/util/XMLTokener.java
+++ /dev/null
@@ -1,77 +0,0 @@
-package org.json.util;
-
-
-/**
- * The XMLTokener extends the JSONTokener to provide additional methods
- * for the parsing of XML texts.
- * @author JSON.org
- * @version 2
- */
-public class XMLTokener extends org.json.JSONTokener {
-
- /**
- * The table of entity values. It initially contains Character values for
- * amp, apos, gt, lt, quot.
- */
- public static final java.util.Hashtable entity;
-
- /**
- * Construct an XMLTokener from a string.
- * @param s A source string.
- */
- public XMLTokener(String s) {
- }
-
- /**
- * Get the text in the CDATA block.
- * @return The string up to the ]]>
.
- * @throws JSONException If the ]]>
is not found.
- */
- public String nextCDATA() {
- }
-
- /**
- * Get the next XML outer token, trimming whitespace. There are two kinds
- * of tokens: the '<' character which begins a markup tag, and the content
- * text between markup tags.
- *
- * @return A string, or a '<' Character, or null if there is no more
- * source text.
- * @throws JSONException
- */
- public Object nextContent() {
- }
-
- /**
- * Return the next entity. These entities are translated to Characters:
- * & ' > < "
.
- * @param a An ampersand character.
- * @return A Character or an entity String if the entity is not recognized.
- * @throws JSONException If missing ';' in XML entity.
- */
- public Object nextEntity(char a) {
- }
-
- /**
- * Returns the next XML meta token. This is used for skipping over
- * and ...?> structures.
- * @return Syntax characters (< > / = ! ?
) are returned as
- * Character, and strings and names are returned as Boolean. We don't care
- * what the values actually are.
- * @throws JSONException If a string is not properly closed or if the XML
- * is badly structured.
- */
- public Object nextMeta() {
- }
-
- /**
- * Get the next XML Token. These tokens are found inside of angle
- * brackets. It may be one of these characters: / > = ! ?
or it
- * may be a string wrapped in single quotes or double quotes, or it may be a
- * name.
- * @return a String or a Character.
- * @throws JSONException If the XML is not well formed.
- */
- public Object nextToken() {
- }
-}