All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gurux.dlms.objects.GXDLMSDataProtectionWrappeddKey Maven / Gradle / Ivy

There is a newer version: 4.0.72
Show newest version
package gurux.dlms.objects;

import gurux.dlms.objects.enums.DataProtectionWrappedKeyType;

/**
 * Data protection wrapped key.
 */
public class GXDLMSDataProtectionWrappeddKey {
    /**
     * Data protectionKey type.
     */
    private DataProtectionWrappedKeyType keyType = DataProtectionWrappedKeyType.MASTER_KEY;

    /**
     * Key ciphered data.
     */
    private byte[] key;

    /**
     * @return Data protectionKey type.
     */
    public final DataProtectionWrappedKeyType getKeyType() {
        return keyType;
    }

    /**
     * @param value
     *            Data protectionKey type.
     */
    public final void setKeyType(final DataProtectionWrappedKeyType value) {
        keyType = value;
    }

    /**
     * @return Key ciphered data.
     */
    public final byte[] getKey() {
        return key;
    }

    /**
     * @param value
     *            Key ciphered data.
     */
    public final void setKey(final byte[] value) {
        key = value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy