Example usage for org.bouncycastle.cms CMSEnvelopedGenerator DES_EDE3_CBC

List of usage examples for org.bouncycastle.cms CMSEnvelopedGenerator DES_EDE3_CBC

Introduction

In this page you can find the example usage for org.bouncycastle.cms CMSEnvelopedGenerator DES_EDE3_CBC.

Prototype

String DES_EDE3_CBC

To view the source code for org.bouncycastle.cms CMSEnvelopedGenerator DES_EDE3_CBC.

Click Source Link

Usage

From source file:org.neociclo.odetteftp.util.EnvelopingUtil.java

License:Apache License

public static String asEncryptionAlgorithm(CipherSuite cipherSuite) {
    if (cipherSuite == CipherSuite.TRIPLEDES_RSA_SHA1)
        return CMSEnvelopedGenerator.DES_EDE3_CBC;
    else if (cipherSuite == CipherSuite.AES_RSA_SHA1)
        return CMSEnvelopedGenerator.AES256_CBC;
    else//from  w  w w .j  a v  a2s.  co m
        return null;
}