Class ApnsService.Builder

  • Enclosing class:
    ApnsService

    public static class ApnsService.Builder
    extends java.lang.Object
    • Method Detail

      • withCert

        public ApnsService.Builder withCert​(java.lang.String certificatePath,
                                            java.lang.String base64certificate,
                                            java.lang.String certificatePassword)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • withCert

        public ApnsService.Builder withCert​(java.lang.String certPath,
                                            java.lang.String certPass)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • withCert

        public ApnsService.Builder withCert​(java.io.InputStream is,
                                            java.lang.String certPass)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • withEncryptionKey

        public ApnsService.Builder withEncryptionKey​(java.lang.String encryptionKeyId,
                                                     java.lang.String encryptionKey,
                                                     java.lang.String encryptionKeyPath,
                                                     java.lang.String teamId)
                                              throws java.security.spec.InvalidKeySpecException,
                                                     java.security.NoSuchAlgorithmException,
                                                     java.io.IOException
        Throws:
        java.security.spec.InvalidKeySpecException
        java.security.NoSuchAlgorithmException
        java.io.IOException
      • withEncryptionKey

        public ApnsService.Builder withEncryptionKey​(java.lang.String encryptionKeyId,
                                                     java.lang.String encryptionKey,
                                                     java.lang.String teamId)
                                              throws java.security.spec.InvalidKeySpecException,
                                                     java.security.NoSuchAlgorithmException
        Throws:
        java.security.spec.InvalidKeySpecException
        java.security.NoSuchAlgorithmException
      • withEncryptionKeyFile

        public ApnsService.Builder withEncryptionKeyFile​(java.lang.String encryptionKeyId,
                                                         java.lang.String encryptionKeyPath,
                                                         java.lang.String teamId)
                                                  throws java.security.spec.InvalidKeySpecException,
                                                         java.security.NoSuchAlgorithmException,
                                                         java.io.IOException
        Throws:
        java.security.spec.InvalidKeySpecException
        java.security.NoSuchAlgorithmException
        java.io.IOException
      • withEncryptionKey

        public ApnsService.Builder withEncryptionKey​(java.lang.String encryptionKeyId,
                                                     java.security.PrivateKey encryptionKey,
                                                     java.lang.String teamId)
      • withCertificateKeyStore

        public ApnsService.Builder withCertificateKeyStore​(java.security.KeyStore keyStore,
                                                           java.lang.String keyStorePassword)
                                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • build

        public ApnsService build()
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • withBase64Cert

        public ApnsService.Builder withBase64Cert​(java.lang.String base64certificate,
                                                  java.lang.String certificatePassword)
                                           throws java.io.IOException
        Throws:
        java.io.IOException