public abstract class EncryptionEngine extends Object
| Constructor and Description |
|---|
EncryptionEngine() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract byte[] |
calculateIntegrity(byte[] plainText,
byte[] key,
KeyUsage usage) |
protected byte[] |
concatenateBytes(byte[] array1,
byte[] array2) |
protected abstract byte[] |
decrypt(byte[] cipherText,
byte[] key) |
protected byte[] |
deriveRandom(byte[] key,
byte[] usage,
int n,
int k) |
protected abstract byte[] |
encrypt(byte[] plainText,
byte[] key) |
protected int |
getBit(byte[] data,
int pos) |
protected abstract int |
getChecksumLength() |
protected abstract int |
getConfounderLength() |
protected abstract byte[] |
getDecryptedData(EncryptionKey key,
EncryptedData data,
KeyUsage usage) |
protected abstract EncryptedData |
getEncryptedData(EncryptionKey key,
byte[] plainText,
KeyUsage usage) |
protected abstract EncryptionType |
getEncryptionType() |
protected byte[] |
getRandomBytes(int size) |
protected byte[] |
getUsageKc(KeyUsage usage)
The "well-known constant" used for the DK function is the key
usage number, expressed as four octets in big-endian order,
followed by one octet indicated below.
|
protected byte[] |
getUsageKe(KeyUsage usage)
The "well-known constant" used for the DK function is the key
usage number, expressed as four octets in big-endian order,
followed by one octet indicated below.
|
protected byte[] |
getUsageKi(KeyUsage usage)
The "well-known constant" used for the DK function is the key
usage number, expressed as four octets in big-endian order,
followed by one octet indicated below.
|
protected byte[] |
padString(byte[] encodedString) |
protected byte[] |
removeLeadingBytes(byte[] array,
int confounder,
int checksum) |
protected byte[] |
removeTrailingBytes(byte[] array,
int confounder,
int checksum) |
protected void |
setBit(byte[] data,
int pos,
int val) |
protected abstract byte[] getDecryptedData(EncryptionKey key, EncryptedData data, KeyUsage usage) throws KerberosException
KerberosExceptionprotected abstract EncryptedData getEncryptedData(EncryptionKey key, byte[] plainText, KeyUsage usage)
protected abstract EncryptionType getEncryptionType()
protected abstract int getConfounderLength()
protected abstract int getChecksumLength()
protected abstract byte[] encrypt(byte[] plainText,
byte[] key)
protected abstract byte[] decrypt(byte[] cipherText,
byte[] key)
protected abstract byte[] calculateIntegrity(byte[] plainText,
byte[] key,
KeyUsage usage)
protected byte[] deriveRandom(byte[] key,
byte[] usage,
int n,
int k)
protected byte[] getRandomBytes(int size)
protected byte[] padString(byte[] encodedString)
protected byte[] concatenateBytes(byte[] array1,
byte[] array2)
protected byte[] removeLeadingBytes(byte[] array,
int confounder,
int checksum)
protected byte[] removeTrailingBytes(byte[] array,
int confounder,
int checksum)
protected int getBit(byte[] data,
int pos)
protected void setBit(byte[] data,
int pos,
int val)
protected byte[] getUsageKc(KeyUsage usage)
protected byte[] getUsageKe(KeyUsage usage)
protected byte[] getUsageKi(KeyUsage usage)
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.