|
||||||||||
| 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
|
protected static org.apache.log4j.Logger |
logger
|
| 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. |
protected SSLSocketFactory |
createSSLSocketFactoryWithTrustManagers(TrustManager[] trustManagers)
Generic SSLSocketFactory builder |
KeyStore |
getKeystore()
|
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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger logger
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 keystore
public ConnectionToAppleServer(AppleServer server,
KeyStore keystore)
server - connection detailskeystore - | Method Detail |
|---|
public AppleServer getServer()
public KeyStore getKeystore()
public void setKeystore(KeyStore ks)
protected SSLSocketFactory createSSLSocketFactoryWithTrustManagers(TrustManager[] trustManagers)
throws KeystoreException
trustManagers -
KeystoreExceptionpublic 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||