Package jcifs.pac
Class PacMac
- java.lang.Object
-
- jcifs.pac.PacMac
-
public class PacMac extends Object
-
-
Constructor Summary
Constructors Constructor Description PacMac()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
calculateMac(int type, Map<Integer,KerberosKey> keys, byte[] data)
static byte[]
calculateMacArcfourHMACMD5(int keyusage, Key key, byte[] data)
static byte[]
calculateMacHMACAES(int usage, KerberosKey baseKey, byte[] input)
static byte[]
deriveKeyAES(KerberosKey key, byte[] constant)
static byte[]
expandNFold(byte[] data, int outlen)
-
-
-
Method Detail
-
calculateMacArcfourHMACMD5
public static byte[] calculateMacArcfourHMACMD5(int keyusage, Key key, byte[] data) throws GeneralSecurityException
- Throws:
GeneralSecurityException
-
calculateMacHMACAES
public static byte[] calculateMacHMACAES(int usage, KerberosKey baseKey, byte[] input) throws GeneralSecurityException
- Throws:
GeneralSecurityException
-
deriveKeyAES
public static byte[] deriveKeyAES(KerberosKey key, byte[] constant) throws GeneralSecurityException
- Throws:
GeneralSecurityException
-
expandNFold
public static byte[] expandNFold(byte[] data, int outlen)
-
calculateMac
public static byte[] calculateMac(int type, Map<Integer,KerberosKey> keys, byte[] data) throws PACDecodingException
- Parameters:
type
-keys
-- Returns:
- the calculated mac
- Throws:
PACDecodingException
-
-