public abstract class ConnectionToAppleServer extends Object
Communication protocol differences between Notification and Feedback servers are
implemented in ConnectionToNotificationServer and ConnectionToFeedbackServer.
| Modifier and Type | Field and Description |
|---|---|
static String |
KEYSTORE_TYPE_JKS |
static String |
KEYSTORE_TYPE_PKCS12 |
| Modifier | Constructor and Description |
|---|---|
protected |
ConnectionToAppleServer(AppleServer server)
Builds a connection to an Apple server.
|
protected |
ConnectionToAppleServer(AppleServer server,
KeyStore keystore)
Builds a connection to an Apple server.
|
| Modifier and Type | Method and Description |
|---|---|
AppleServer |
getServer() |
abstract String |
getServerHost() |
protected abstract int |
getServerPort() |
SSLSocket |
getSSLSocket()
Create a SSLSocket which will be used to send data to Apple
|
void |
setKeystore(KeyStore ks) |
public static final String KEYSTORE_TYPE_PKCS12
public static final String KEYSTORE_TYPE_JKS
protected ConnectionToAppleServer(AppleServer server) throws KeystoreException
server - connection detailsKeystoreException - thrown if an error occurs when loading the keystoreprotected ConnectionToAppleServer(AppleServer server, KeyStore keystore)
server - connection detailskeystore - public AppleServer getServer()
public void setKeystore(KeyStore ks)
public abstract String getServerHost()
protected abstract int getServerPort()
public SSLSocket getSSLSocket() throws KeystoreException, CommunicationException
KeystoreExceptionCommunicationExceptionCopyright © 2016. All rights reserved.