Package tigase.push.apns
Class ApnsService.Builder
java.lang.Object
tigase.push.apns.ApnsService.Builder
- Enclosing class:
ApnsService
-
Method Summary
Modifier and TypeMethodDescriptionbuild()withAppleDestination(boolean value) withBase64Cert(String base64certificate, String certificatePassword) withCert(InputStream is, String certPass) withCertificateKeyStore(KeyStore keyStore, String keyStorePassword) withEncryptionKey(String encryptionKeyId, String encryptionKey, String teamId) withEncryptionKey(String encryptionKeyId, String encryptionKey, String encryptionKeyPath, String teamId) withEncryptionKey(String encryptionKeyId, PrivateKey encryptionKey, String teamId) withEncryptionKeyFile(String encryptionKeyId, String encryptionKeyPath, String teamId) withKeepAliveTimeout(long keepAliveTimeout) withWhitelistedCertificates(String[] certificateHashes)
-
Method Details
-
withWhitelistedCertificates
-
withAppleDestination
-
withCert
public ApnsService.Builder withCert(String certificatePath, String base64certificate, String certificatePassword) throws IOException - Throws:
IOException
-
withCert
- Throws:
IOException
-
withCert
- Throws:
IOException
-
withEncryptionKey
public ApnsService.Builder withEncryptionKey(String encryptionKeyId, String encryptionKey, String encryptionKeyPath, String teamId) throws InvalidKeySpecException, NoSuchAlgorithmException, IOException -
withEncryptionKey
public ApnsService.Builder withEncryptionKey(String encryptionKeyId, String encryptionKey, String teamId) throws InvalidKeySpecException, NoSuchAlgorithmException -
withEncryptionKeyFile
public ApnsService.Builder withEncryptionKeyFile(String encryptionKeyId, String encryptionKeyPath, String teamId) throws InvalidKeySpecException, NoSuchAlgorithmException, IOException -
withEncryptionKey
public ApnsService.Builder withEncryptionKey(String encryptionKeyId, PrivateKey encryptionKey, String teamId) -
withCertificateKeyStore
public ApnsService.Builder withCertificateKeyStore(KeyStore keyStore, String keyStorePassword) throws IOException - Throws:
IOException
-
build
- Throws:
IOException
-
withBase64Cert
public ApnsService.Builder withBase64Cert(String base64certificate, String certificatePassword) throws IOException - Throws:
IOException
-
withKeepAliveTimeout
-