|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavapns.communication.ConnectionToAppleServer
public abstract class ConnectionToAppleServer
ConnectionToNotificationServer
and ConnectionToFeedbackServer
.
Field Summary | |
---|---|
static String |
KEYSTORE_TYPE_JKS
|
static String |
KEYSTORE_TYPE_PKCS12
|
Constructor Summary | |
---|---|
ConnectionToAppleServer(AppleServer server)
Builds a connection to an Apple server. |
|
ConnectionToAppleServer(AppleServer server,
KeyStore keystore)
Builds a connection to an Apple server. |
Method Summary | |
---|---|
SSLSocketFactory |
createSSLSocketFactory()
Return a SSLSocketFactory for creating sockets to communicate with Apple. |
KeyStore |
getKeystore()
|
static String |
getKeystoreType()
|
AppleServer |
getServer()
|
abstract String |
getServerHost()
|
abstract int |
getServerPort()
|
SSLSocket |
getSSLSocket()
Create a SSLSocket which will be used to send data to Apple |
SSLSocketFactory |
getSSLSocketFactory()
|
void |
setKeystore(KeyStore ks)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String KEYSTORE_TYPE_PKCS12
public static final String KEYSTORE_TYPE_JKS
Constructor Detail |
---|
public ConnectionToAppleServer(AppleServer server) throws KeystoreException
server
- connection details
KeystoreException
- thrown if an error occurs when loading the keystorepublic ConnectionToAppleServer(AppleServer server, KeyStore keystore)
server
- connection detailskeystore
- Method Detail |
---|
public AppleServer getServer()
public KeyStore getKeystore()
public void setKeystore(KeyStore ks)
public abstract String getServerHost()
public abstract int getServerPort()
public SSLSocketFactory createSSLSocketFactory() throws KeystoreException
KeystoreException
public SSLSocketFactory getSSLSocketFactory() throws KeystoreException
KeystoreException
public SSLSocket getSSLSocket() throws KeystoreException, CommunicationException
KeystoreException
CommunicationException
public static String getKeystoreType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |