Example usage for com.amazonaws.services.elastictranscoder.model Encryption setInitializationVector

List of usage examples for com.amazonaws.services.elastictranscoder.model Encryption setInitializationVector

Introduction

In this page you can find the example usage for com.amazonaws.services.elastictranscoder.model Encryption setInitializationVector.

Prototype


public void setInitializationVector(String initializationVector) 

Source Link

Document

The series of random bits created by a random bit generator, unique for every encryption operation, that you used to encrypt your input files or that you want Elastic Transcoder to use to encrypt your output files.

Usage

From source file:org.alanwilliamson.amazon.transcoder.job.Create.java

License:Open Source License

private Encryption getEncryption(cfStructData es) throws dataNotSupportedException {
    Encryption e = new Encryption();

    if (es.containsKey("key"))
        e.setKey(es.getData("key").getString());

    if (es.containsKey("keymd5"))
        e.setKeyMd5(es.getData("keymd5").getString());

    if (es.containsKey("mode"))
        e.setMode(es.getData("mode").getString());

    if (es.containsKey("initializationvector"))
        e.setInitializationVector(es.getData("initializationvector").getString());

    return e;//from   w  w w. ja va 2 s.c  o m
}