aerogear-crypto 0.1.2

org.jboss.aerogear.crypto
Class BlockCipher

java.lang.Object
  extended by org.jboss.aerogear.crypto.BlockCipher

public class BlockCipher
extends Object

Representation of the cipher modes supported


Constructor Summary
private BlockCipher()
           
 
Method Summary
static org.bouncycastle.crypto.modes.AEADBlockCipher getInstance()
           
static byte[] getIV()
          Generates a non-predictable initialization vector
static org.bouncycastle.crypto.modes.AEADBlockCipher getNewCipher(AeroGearCrypto.Mode blockMode)
          Retrieve a new instance of the block mode provided
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockCipher

private BlockCipher()
Method Detail

getInstance

public static org.bouncycastle.crypto.modes.AEADBlockCipher getInstance()

getNewCipher

public static org.bouncycastle.crypto.modes.AEADBlockCipher getNewCipher(AeroGearCrypto.Mode blockMode)
Retrieve a new instance of the block mode provided

Parameters:
blockMode - block mode name
Returns:
instance to the block mode

getIV

public static byte[] getIV()
Generates a non-predictable initialization vector

Returns:
byte array with the initialization vector generated

aerogear-crypto 0.1.2

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.