public abstract class

EType

extends Object
java.lang.Object
   ↳ sun.security.mule.krb5.internal.crypto.EType
Known Direct Subclasses

Summary

Fields
private static final int[] BUILTIN_ETYPES
private static final int[] BUILTIN_ETYPES_NOAES256
private static final boolean DEBUG
Public Constructors
EType()
Public Methods
abstract int blockSize()
abstract int checksumSize()
abstract int checksumType()
abstract int confounderSize()
int dataSize(byte[] data)
abstract byte[] decrypt(byte[] cipher, byte[] key, int usage)
abstract byte[] decrypt(byte[] cipher, byte[] key, byte[] ivec, int usage)
byte[] decryptedData(byte[] data)
abstract int eType()
abstract byte[] encrypt(byte[] data, byte[] key, byte[] ivec, int usage)
abstract byte[] encrypt(byte[] data, byte[] key, int usage)
static int[] getBuiltInDefaults()
static int[] getDefaults(String configName, EncryptionKey[] keys, Config kerberosConfig)
Retrieve the default etypes from the configuration file for those etypes for which there are corresponding keys.
static int[] getDefaults(String configName, Config kerberosConfig)
Retrieves the default etypes from the configuration file, or if that's not available, return the built-in list of default etypes.
static EType getInstance(int eTypeConst)
static boolean isSupported(int eTypeConst, int[] config)
static boolean isSupported(int eTypeConst)
abstract int keySize()
abstract int keyType()
abstract int minimumPadSize()
int padSize(byte[] data)
int startOfChecksum()
int startOfData()
int startOfPad(byte[] data)
static String toString(int type)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private static final int[] BUILTIN_ETYPES

private static final int[] BUILTIN_ETYPES_NOAES256

private static final boolean DEBUG

Public Constructors

public EType ()

Public Methods

public abstract int blockSize ()

public abstract int checksumSize ()

public abstract int checksumType ()

public abstract int confounderSize ()

public int dataSize (byte[] data)

Parameters
data

public abstract byte[] decrypt (byte[] cipher, byte[] key, int usage)

Parameters
cipher
key
usage

public abstract byte[] decrypt (byte[] cipher, byte[] key, byte[] ivec, int usage)

Parameters
cipher
key
ivec
usage

public byte[] decryptedData (byte[] data)

Parameters
data

public abstract int eType ()

public abstract byte[] encrypt (byte[] data, byte[] key, byte[] ivec, int usage)

Parameters
data
key
ivec
usage

public abstract byte[] encrypt (byte[] data, byte[] key, int usage)

Parameters
data
key
usage

public static int[] getBuiltInDefaults ()

public static int[] getDefaults (String configName, EncryptionKey[] keys, Config kerberosConfig)

Retrieve the default etypes from the configuration file for those etypes for which there are corresponding keys. Used in scenario we have some keys from a keytab with etypes different from those named in configName. Then, in order to decrypt an AS-REP, we should only ask for etypes for which we have keys.

Parameters
configName
keys
kerberosConfig
Throws
KrbException

public static int[] getDefaults (String configName, Config kerberosConfig)

Retrieves the default etypes from the configuration file, or if that's not available, return the built-in list of default etypes.

Parameters
configName
kerberosConfig

public static EType getInstance (int eTypeConst)

Parameters
eTypeConst

public static boolean isSupported (int eTypeConst, int[] config)

Parameters
eTypeConst
config

public static boolean isSupported (int eTypeConst)

Parameters
eTypeConst

public abstract int keySize ()

public abstract int keyType ()

public abstract int minimumPadSize ()

public int padSize (byte[] data)

Parameters
data

public int startOfChecksum ()

public int startOfData ()

public int startOfPad (byte[] data)

Parameters
data

public static String toString (int type)

Parameters
type