/*
 * Copyright 2016 Lime - HighTech Solutions s.r.o.
 *
 * 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 io.getlime.security.powerauth.rest.api.model.base;

/**
 * Generic class for all PowerAuth RESTful API Requests.
 *
 * @author Petr Dvorak
 *
 * @param <T> Type used as a request object in the request.
 */
public class PowerAuthApiRequest<T> {

    private T requestObject;

    /**
     * Default constructor
     */
    public PowerAuthApiRequest() {
    }

    /**
     * Constructor with a given request object
     * @param requestObject Request object
     */
    public PowerAuthApiRequest(T requestObject) {
        this.requestObject = requestObject;
    }

    /**
     * Get request object
     * @return Request object
     */
    public T getRequestObject() {
        return requestObject;
    }

    /**
     * Set request object
     * @param requestObject Request object
     */
    public void setRequestObject(T requestObject) {
        this.requestObject = requestObject;
    }

}

@@ -866,317 +866,1501 @@
     
-private T requestObject;%0A%0A    /**%0A     * Default constructor%0A     */%0A    public PowerAuthApiRequest() %7B%0A    %7D%0A%0A    /**%0A     * Constructor with a given request object%0A     * @param requestObject Request object%0A     */%0A    public PowerAuthApiRequest(T requestObject) %7B%0A        this.requestObject = requestObject
+/**%0A     * Request encryption type%0A     */%0A    public class Encryption %7B%0A%0A        /**%0A         * None%0A         */%0A        public static final String NONE = %22none%22;%0A%0A        /**%0A         * Personalized%0A         */%0A        public static final String PERSONALIZED = %22personalized%22;%0A%0A        /**%0A         * Non-personalized%0A         */%0A        public static final String NON_PERSONALIZED = %22nonpersonalized%22;%0A%0A    %7D%0A%0A    private String encryption;%0A    private T requestObject;%0A%0A    /**%0A     * Default constructor%0A     */%0A    public PowerAuthApiRequest() %7B%0A    %7D%0A%0A    /**%0A     * Constructor with a given request object%0A     * @param requestObject Request object%0A     */%0A    public PowerAuthApiRequest(T requestObject) %7B%0A        this.encryption = Encryption.NONE;%0A        this.requestObject = requestObject;%0A    %7D%0A%0A    /**%0A     * Constructor with a given request object%0A     * @param encryption Request encryption type, use static constant from %7B@link Encryption%7D class.%0A     * @param requestObject Request object%0A     */%0A    public PowerAuthApiRequest(String encryption, T requestObject) %7B%0A        this.encryption = encryption;%0A        this.requestObject = requestObject;%0A    %7D%0A%0A    /**%0A     * Get encryption type.%0A     * @return Encryption type.%0A     */%0A    public String getEncryption() %7B%0A        return encryption;%0A    %7D%0A%0A    /**%0A     * Set encryption type.%0A     * @param encryption Encryption type.%0A     */%0A    public void setEncryption(String encryption) %7B%0A        this.encryption = encryption
 ;%0A  

Add encryption attribute in PA2Request class (network transport object).