/**
 * JBoss, Home of Professional Open Source
 * Copyright Red Hat, Inc., and individual contributors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * 	http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.jboss.aerogear.unifiedpush.api;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * The iOS variant class encapsulates APNs specific behavior.
 */
public class iOSVariant extends Variant {
    private static final long serialVersionUID = -889367404039436329L;

    private boolean production;

    @NotNull
    @Size(max = 255)
    private String passphrase;

    @NotNull
    private byte[] certificate;

    /**
     * If <code>true</code> a connection to Apple's Production APNs server
     * will be established for this iOS variant.
     *
     * If the method returns <code>false</code> a connection to
     * Apple's Sandbox/Development APNs server will be established
     * for this iOS variant.
     */
    public boolean isProduction() {
        return production;
    }

    public void setProduction(boolean production) {
        this.production = production;
    }

    /**
     * The APNs passphrase that is needed to establish a connection to any
     * of Apple's APNs Push Servers.
     */
    public String getPassphrase() {
        return this.passphrase;
    }

    public void setPassphrase(final String passphrase) {
        this.passphrase = passphrase;
    }

    /**
     * The APNs certificate that is needed to establish a connection to any
     * of Apple's APNs Push Servers.
     */
    public byte[] getCertificate() {
        return certificate;
    }

    public void setCertificate(byte[] cert) {
        this.certificate = cert;
    }

    @Override
    public VariantType getType() {
        return VariantType.IOS;
    }
}

@@ -701,16 +701,117 @@
 h.api;%0A%0A
+import org.codehaus.jackson.annotate.JsonIgnore;%0Aimport org.codehaus.jackson.annotate.JsonProperty;%0A%0A
 import j
@@ -847,16 +847,16 @@
 otNull;%0A
-
 import j
@@ -1141,16 +1141,32 @@
  = 255)%0A
+    @JsonIgnore%0A
     priv
@@ -1198,24 +1198,40 @@
    @NotNull%0A
+    @JsonIgnore%0A
     private 
@@ -1845,32 +1845,48 @@
 ervers.%0A     */%0A
+    @JsonIgnore%0A
     public Strin
@@ -1936,32 +1936,50 @@
 sphrase;%0A    %7D%0A%0A
+    @JsonProperty%0A
     public void 
@@ -2185,32 +2185,48 @@
 ervers.%0A     */%0A
+    @JsonIgnore%0A
     public byte%5B
@@ -2273,32 +2273,50 @@
 ificate;%0A    %7D%0A%0A
+    @JsonProperty%0A
     public void 

Exclude sensitive fields on HTTP response