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

java.com.ionic.sdk.agent.cipher.batch.data.PlainTextItem Maven / Gradle / Ivy

Go to download

The Ionic Java SDK provides an easy-to-use interface to the Ionic Platform.

There is a newer version: 2.9.0
Show newest version
package com.ionic.sdk.agent.cipher.batch.data;

import com.ionic.sdk.core.codec.Transcoder;

/**
 * Container for item in the context of a {@link com.ionic.sdk.agent.cipher.batch.BatchCipherAbstract} API usage.  An
 * instance of this class may be used to encrypt multiple logically related items using an single Ionic Machina key.
 */
public class PlainTextItem extends DataItem {

    /**
     * Constructor.
     *
     * @param plainText the plaintext data to be encrypted
     */
    public PlainTextItem(final byte[] plainText) {
        super(plainText);
    }

    /**
     * Constructor.
     *
     * @param plainText the plaintext data to be encrypted
     */
    public PlainTextItem(final String plainText) {
        super(Transcoder.utf8().decode(plainText));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy