public class FipsSymmetricalEncryptor extends Object implements ISymmetricalEncryptor
Constructor and Description |
---|
FipsSymmetricalEncryptor() |
Modifier and Type | Method and Description |
---|---|
Cipher |
createEncryptor() |
void |
generateIV() |
void |
generateKey() |
byte[] |
getIV() |
byte[] |
getKey() |
int |
getKeySize() |
public byte[] getKey()
getKey
in interface ISymmetricalEncryptor
public byte[] getIV()
getIV
in interface ISymmetricalEncryptor
public int getKeySize()
getKeySize
in interface ISymmetricalEncryptor
public void generateKey() throws NoSuchAlgorithmException
generateKey
in interface ISymmetricalEncryptor
NoSuchAlgorithmException
public void generateIV()
generateIV
in interface ISymmetricalEncryptor
public Cipher createEncryptor() throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException
createEncryptor
in interface ISymmetricalEncryptor
NoSuchAlgorithmException
NoSuchPaddingException
InvalidKeyException
InvalidAlgorithmParameterException
Copyright © 2016. All Rights Reserved.