public abstract class Decoder extends Object
Constructor and Description |
---|
Decoder() |
Modifier and Type | Method and Description |
---|---|
abstract int |
blockSize() |
abstract int |
checksumSize() |
abstract int |
confounderSize() |
int |
dataSize(byte[] data) |
abstract byte[] |
decrypt(byte[] cipher,
byte[] key,
int usage) |
byte[] |
decryptedData(byte[] data) |
static Decoder |
getInstace(int type)
Factory method to create the correct implementation.
|
abstract int |
keySize() |
int |
startOfChecksum() |
int |
startOfData() |
public static Decoder getInstace(int type) throws NegotiationException
type
- Encryption typeNegotiationException
public abstract int keySize()
public abstract int checksumSize()
public abstract int confounderSize()
public abstract int blockSize()
public abstract byte[] decrypt(byte[] cipher, byte[] key, int usage) throws NegotiationException
NegotiationException
public int startOfChecksum()
public int dataSize(byte[] data)
public int startOfData()
public byte[] decryptedData(byte[] data)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.