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

java.com.ionic.sdk.agent.cipher.chunk.data.ChunkCrypto 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.chunk.data;

import com.ionic.sdk.agent.cipher.chunk.ChunkCipherAuto;

/**
 * Utility class for evaluating strings to determine the operant Ionic chunk format.
 */
public final class ChunkCrypto {

    /**
     * Constructor.
     * http://checkstyle.sourceforge.net/config_design.html#FinalClass
     */
    private ChunkCrypto() {
    }

    /**
     * Determines if a chunk is Ionic protected and various pieces of information about the chunk.
     *
     * @param inputString The input to be tested against known Ionic chunk cipher formats.
     * @return The chunk information object for the specified input string.
     */
    public static ChunkCryptoChunkInfo getChunkInfo(final String inputString) {
        final ChunkCipherAuto chunkCipher = new ChunkCipherAuto(null);
        return chunkCipher.getChunkInfo(inputString);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy