public abstract class AbstractEncryptProvider extends Object implements EncryptProvider
| Constructor and Description |
|---|
AbstractEncryptProvider(int blockSize,
int keyInputSize,
int keySize) |
| Modifier and Type | Method and Description |
|---|---|
int |
blockSize() |
byte[] |
cbcMac(byte[] key,
byte[] iv,
byte[] data) |
void |
decrypt(byte[] key,
byte[] data) |
void |
decrypt(byte[] key,
byte[] cipherState,
byte[] data) |
protected abstract void |
doEncrypt(byte[] data,
byte[] key,
byte[] cipherState,
boolean encrypt) |
void |
encrypt(byte[] key,
byte[] data) |
void |
encrypt(byte[] key,
byte[] cipherState,
byte[] data) |
int |
keyInputSize() |
int |
keySize() |
boolean |
supportCbcMac() |
public AbstractEncryptProvider(int blockSize,
int keyInputSize,
int keySize)
public int keyInputSize()
keyInputSize in interface EncryptProviderpublic int keySize()
keySize in interface EncryptProviderpublic int blockSize()
blockSize in interface EncryptProviderpublic void encrypt(byte[] key,
byte[] cipherState,
byte[] data)
throws KrbException
encrypt in interface EncryptProviderKrbExceptionpublic void decrypt(byte[] key,
byte[] cipherState,
byte[] data)
throws KrbException
decrypt in interface EncryptProviderKrbExceptionpublic void encrypt(byte[] key,
byte[] data)
throws KrbException
encrypt in interface EncryptProviderKrbExceptionpublic void decrypt(byte[] key,
byte[] data)
throws KrbException
decrypt in interface EncryptProviderKrbExceptionprotected abstract void doEncrypt(byte[] data,
byte[] key,
byte[] cipherState,
boolean encrypt)
throws KrbException
KrbExceptionpublic byte[] cbcMac(byte[] key,
byte[] iv,
byte[] data)
throws KrbException
cbcMac in interface EncryptProviderKrbExceptionpublic boolean supportCbcMac()
supportCbcMac in interface EncryptProviderCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.