Java Code Examples for sun.security.krb5.Checksum#CKSUMTYPE_HMAC_SHA1_DES3_KD

The following examples show how to use sun.security.krb5.Checksum#CKSUMTYPE_HMAC_SHA1_DES3_KD . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
public int checksumType() {
    return Checksum.CKSUMTYPE_HMAC_SHA1_DES3_KD;
}
 
Example 2
public int checksumType() {
    return Checksum.CKSUMTYPE_HMAC_SHA1_DES3_KD;
}
 
Example 3
public static CksumType getInstance(int cksumTypeConst)
    throws KdcErrException {
    CksumType cksumType = null;
    String cksumTypeName = null;
    switch (cksumTypeConst) {
    case Checksum.CKSUMTYPE_CRC32:
        cksumType = new Crc32CksumType();
        cksumTypeName = "sun.security.krb5.internal.crypto.Crc32CksumType";
        break;
    case Checksum.CKSUMTYPE_DES_MAC:
        cksumType = new DesMacCksumType();
        cksumTypeName = "sun.security.krb5.internal.crypto.DesMacCksumType";
        break;
    case Checksum.CKSUMTYPE_DES_MAC_K:
        cksumType = new DesMacKCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.DesMacKCksumType";
        break;
    case Checksum.CKSUMTYPE_RSA_MD5:
        cksumType = new RsaMd5CksumType();
        cksumTypeName = "sun.security.krb5.internal.crypto.RsaMd5CksumType";
        break;
    case Checksum.CKSUMTYPE_RSA_MD5_DES:
        cksumType = new RsaMd5DesCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.RsaMd5DesCksumType";
        break;

    case Checksum.CKSUMTYPE_HMAC_SHA1_DES3_KD:
        cksumType = new HmacSha1Des3KdCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacSha1Des3KdCksumType";
        break;

    case Checksum.CKSUMTYPE_HMAC_SHA1_96_AES128:
        cksumType = new HmacSha1Aes128CksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacSha1Aes128CksumType";
        break;

    case Checksum.CKSUMTYPE_HMAC_SHA1_96_AES256:
        cksumType = new HmacSha1Aes256CksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacSha1Aes256CksumType";
        break;

    case Checksum.CKSUMTYPE_HMAC_MD5_ARCFOUR:
        cksumType = new HmacMd5ArcFourCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacMd5ArcFourCksumType";
        break;

        // currently we don't support MD4.
    case Checksum.CKSUMTYPE_RSA_MD4_DES_K:
        // cksumType = new RsaMd4DesKCksumType();
        // cksumTypeName =
        //          "sun.security.krb5.internal.crypto.RsaMd4DesKCksumType";
    case Checksum.CKSUMTYPE_RSA_MD4:
        // cksumType = new RsaMd4CksumType();
        // linux box support rsamd4, how to solve conflict?
        // cksumTypeName =
        //          "sun.security.krb5.internal.crypto.RsaMd4CksumType";
    case Checksum.CKSUMTYPE_RSA_MD4_DES:
        // cksumType = new RsaMd4DesCksumType();
        // cksumTypeName =
        //          "sun.security.krb5.internal.crypto.RsaMd4DesCksumType";

    default:
        throw new KdcErrException(Krb5.KDC_ERR_SUMTYPE_NOSUPP);
    }
    if (DEBUG) {
        System.out.println(">>> CksumType: " + cksumTypeName);
    }
    return cksumType;
}
 
Example 4
public int cksumType() {
    return Checksum.CKSUMTYPE_HMAC_SHA1_DES3_KD;
}
 
Example 5
public int checksumType() {
    return Checksum.CKSUMTYPE_HMAC_SHA1_DES3_KD;
}
 
Example 6
public int checksumType() {
    return Checksum.CKSUMTYPE_HMAC_SHA1_DES3_KD;
}
 
Example 7
public int cksumType() {
    return Checksum.CKSUMTYPE_HMAC_SHA1_DES3_KD;
}
 
Example 8
public static CksumType getInstance(int cksumTypeConst)
    throws KdcErrException {
    CksumType cksumType = null;
    String cksumTypeName = null;
    switch (cksumTypeConst) {
    case Checksum.CKSUMTYPE_CRC32:
        cksumType = new Crc32CksumType();
        cksumTypeName = "sun.security.krb5.internal.crypto.Crc32CksumType";
        break;
    case Checksum.CKSUMTYPE_DES_MAC:
        cksumType = new DesMacCksumType();
        cksumTypeName = "sun.security.krb5.internal.crypto.DesMacCksumType";
        break;
    case Checksum.CKSUMTYPE_DES_MAC_K:
        cksumType = new DesMacKCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.DesMacKCksumType";
        break;
    case Checksum.CKSUMTYPE_RSA_MD5:
        cksumType = new RsaMd5CksumType();
        cksumTypeName = "sun.security.krb5.internal.crypto.RsaMd5CksumType";
        break;
    case Checksum.CKSUMTYPE_RSA_MD5_DES:
        cksumType = new RsaMd5DesCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.RsaMd5DesCksumType";
        break;

    case Checksum.CKSUMTYPE_HMAC_SHA1_DES3_KD:
        cksumType = new HmacSha1Des3KdCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacSha1Des3KdCksumType";
        break;

    case Checksum.CKSUMTYPE_HMAC_SHA1_96_AES128:
        cksumType = new HmacSha1Aes128CksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacSha1Aes128CksumType";
        break;
    case Checksum.CKSUMTYPE_HMAC_SHA1_96_AES256:
        cksumType = new HmacSha1Aes256CksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacSha1Aes256CksumType";
        break;

    case Checksum.CKSUMTYPE_HMAC_MD5_ARCFOUR:
        cksumType = new HmacMd5ArcFourCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacMd5ArcFourCksumType";
        break;

        // currently we don't support MD4.
    case Checksum.CKSUMTYPE_RSA_MD4_DES_K:
        // cksumType = new RsaMd4DesKCksumType();
        // cksumTypeName =
        //          "sun.security.krb5.internal.crypto.RsaMd4DesKCksumType";
    case Checksum.CKSUMTYPE_RSA_MD4:
        // cksumType = new RsaMd4CksumType();
        // linux box support rsamd4, how to solve conflict?
        // cksumTypeName =
        //          "sun.security.krb5.internal.crypto.RsaMd4CksumType";
    case Checksum.CKSUMTYPE_RSA_MD4_DES:
        // cksumType = new RsaMd4DesCksumType();
        // cksumTypeName =
        //          "sun.security.krb5.internal.crypto.RsaMd4DesCksumType";

    default:
        throw new KdcErrException(Krb5.KDC_ERR_SUMTYPE_NOSUPP);
    }
    if (DEBUG) {
        System.out.println(">>> CksumType: " + cksumTypeName);
    }
    return cksumType;
}
 
Example 9
public static CksumType getInstance(int cksumTypeConst)
    throws KdcErrException {
    CksumType cksumType = null;
    String cksumTypeName = null;
    switch (cksumTypeConst) {
    case Checksum.CKSUMTYPE_CRC32:
        cksumType = new Crc32CksumType();
        cksumTypeName = "sun.security.krb5.internal.crypto.Crc32CksumType";
        break;
    case Checksum.CKSUMTYPE_DES_MAC:
        cksumType = new DesMacCksumType();
        cksumTypeName = "sun.security.krb5.internal.crypto.DesMacCksumType";
        break;
    case Checksum.CKSUMTYPE_DES_MAC_K:
        cksumType = new DesMacKCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.DesMacKCksumType";
        break;
    case Checksum.CKSUMTYPE_RSA_MD5:
        cksumType = new RsaMd5CksumType();
        cksumTypeName = "sun.security.krb5.internal.crypto.RsaMd5CksumType";
        break;
    case Checksum.CKSUMTYPE_RSA_MD5_DES:
        cksumType = new RsaMd5DesCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.RsaMd5DesCksumType";
        break;

    case Checksum.CKSUMTYPE_HMAC_SHA1_DES3_KD:
        cksumType = new HmacSha1Des3KdCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacSha1Des3KdCksumType";
        break;

    case Checksum.CKSUMTYPE_HMAC_SHA1_96_AES128:
        cksumType = new HmacSha1Aes128CksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacSha1Aes128CksumType";
        break;
    case Checksum.CKSUMTYPE_HMAC_SHA1_96_AES256:
        cksumType = new HmacSha1Aes256CksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacSha1Aes256CksumType";
        break;

    case Checksum.CKSUMTYPE_HMAC_MD5_ARCFOUR:
        cksumType = new HmacMd5ArcFourCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacMd5ArcFourCksumType";
        break;

        // currently we don't support MD4.
    case Checksum.CKSUMTYPE_RSA_MD4_DES_K:
        // cksumType = new RsaMd4DesKCksumType();
        // cksumTypeName =
        //          "sun.security.krb5.internal.crypto.RsaMd4DesKCksumType";
    case Checksum.CKSUMTYPE_RSA_MD4:
        // cksumType = new RsaMd4CksumType();
        // linux box support rsamd4, how to solve conflict?
        // cksumTypeName =
        //          "sun.security.krb5.internal.crypto.RsaMd4CksumType";
    case Checksum.CKSUMTYPE_RSA_MD4_DES:
        // cksumType = new RsaMd4DesCksumType();
        // cksumTypeName =
        //          "sun.security.krb5.internal.crypto.RsaMd4DesCksumType";

    default:
        throw new KdcErrException(Krb5.KDC_ERR_SUMTYPE_NOSUPP);
    }
    if (DEBUG) {
        System.out.println(">>> CksumType: " + cksumTypeName);
    }
    return cksumType;
}
 
Example 10
public int cksumType() {
    return Checksum.CKSUMTYPE_HMAC_SHA1_DES3_KD;
}
 
Example 11
public int checksumType() {
    return Checksum.CKSUMTYPE_HMAC_SHA1_DES3_KD;
}
 
Example 12
public static CksumType getInstance(int cksumTypeConst)
    throws KdcErrException {
    CksumType cksumType = null;
    String cksumTypeName = null;
    switch (cksumTypeConst) {
    case Checksum.CKSUMTYPE_CRC32:
        cksumType = new Crc32CksumType();
        cksumTypeName = "sun.security.krb5.internal.crypto.Crc32CksumType";
        break;
    case Checksum.CKSUMTYPE_DES_MAC:
        cksumType = new DesMacCksumType();
        cksumTypeName = "sun.security.krb5.internal.crypto.DesMacCksumType";
        break;
    case Checksum.CKSUMTYPE_DES_MAC_K:
        cksumType = new DesMacKCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.DesMacKCksumType";
        break;
    case Checksum.CKSUMTYPE_RSA_MD5:
        cksumType = new RsaMd5CksumType();
        cksumTypeName = "sun.security.krb5.internal.crypto.RsaMd5CksumType";
        break;
    case Checksum.CKSUMTYPE_RSA_MD5_DES:
        cksumType = new RsaMd5DesCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.RsaMd5DesCksumType";
        break;

    case Checksum.CKSUMTYPE_HMAC_SHA1_DES3_KD:
        cksumType = new HmacSha1Des3KdCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacSha1Des3KdCksumType";
        break;

    case Checksum.CKSUMTYPE_HMAC_SHA1_96_AES128:
        cksumType = new HmacSha1Aes128CksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacSha1Aes128CksumType";
        break;

    case Checksum.CKSUMTYPE_HMAC_SHA1_96_AES256:
        cksumType = new HmacSha1Aes256CksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacSha1Aes256CksumType";
        break;

    case Checksum.CKSUMTYPE_HMAC_MD5_ARCFOUR:
        cksumType = new HmacMd5ArcFourCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacMd5ArcFourCksumType";
        break;

        // currently we don't support MD4.
    case Checksum.CKSUMTYPE_RSA_MD4_DES_K:
        // cksumType = new RsaMd4DesKCksumType();
        // cksumTypeName =
        //          "sun.security.krb5.internal.crypto.RsaMd4DesKCksumType";
    case Checksum.CKSUMTYPE_RSA_MD4:
        // cksumType = new RsaMd4CksumType();
        // linux box support rsamd4, how to solve conflict?
        // cksumTypeName =
        //          "sun.security.krb5.internal.crypto.RsaMd4CksumType";
    case Checksum.CKSUMTYPE_RSA_MD4_DES:
        // cksumType = new RsaMd4DesCksumType();
        // cksumTypeName =
        //          "sun.security.krb5.internal.crypto.RsaMd4DesCksumType";

    default:
        throw new KdcErrException(Krb5.KDC_ERR_SUMTYPE_NOSUPP);
    }
    if (DEBUG) {
        System.out.println(">>> CksumType: " + cksumTypeName);
    }
    return cksumType;
}
 
Example 13
Source Project: hottub   File: CksumType.java    License: GNU General Public License v2.0 4 votes vote down vote up
public static CksumType getInstance(int cksumTypeConst)
    throws KdcErrException {
    CksumType cksumType = null;
    String cksumTypeName = null;
    switch (cksumTypeConst) {
    case Checksum.CKSUMTYPE_CRC32:
        cksumType = new Crc32CksumType();
        cksumTypeName = "sun.security.krb5.internal.crypto.Crc32CksumType";
        break;
    case Checksum.CKSUMTYPE_DES_MAC:
        cksumType = new DesMacCksumType();
        cksumTypeName = "sun.security.krb5.internal.crypto.DesMacCksumType";
        break;
    case Checksum.CKSUMTYPE_DES_MAC_K:
        cksumType = new DesMacKCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.DesMacKCksumType";
        break;
    case Checksum.CKSUMTYPE_RSA_MD5:
        cksumType = new RsaMd5CksumType();
        cksumTypeName = "sun.security.krb5.internal.crypto.RsaMd5CksumType";
        break;
    case Checksum.CKSUMTYPE_RSA_MD5_DES:
        cksumType = new RsaMd5DesCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.RsaMd5DesCksumType";
        break;

    case Checksum.CKSUMTYPE_HMAC_SHA1_DES3_KD:
        cksumType = new HmacSha1Des3KdCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacSha1Des3KdCksumType";
        break;

    case Checksum.CKSUMTYPE_HMAC_SHA1_96_AES128:
        cksumType = new HmacSha1Aes128CksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacSha1Aes128CksumType";
        break;
    case Checksum.CKSUMTYPE_HMAC_SHA1_96_AES256:
        cksumType = new HmacSha1Aes256CksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacSha1Aes256CksumType";
        break;

    case Checksum.CKSUMTYPE_HMAC_MD5_ARCFOUR:
        cksumType = new HmacMd5ArcFourCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacMd5ArcFourCksumType";
        break;

        // currently we don't support MD4.
    case Checksum.CKSUMTYPE_RSA_MD4_DES_K:
        // cksumType = new RsaMd4DesKCksumType();
        // cksumTypeName =
        //          "sun.security.krb5.internal.crypto.RsaMd4DesKCksumType";
    case Checksum.CKSUMTYPE_RSA_MD4:
        // cksumType = new RsaMd4CksumType();
        // linux box support rsamd4, how to solve conflict?
        // cksumTypeName =
        //          "sun.security.krb5.internal.crypto.RsaMd4CksumType";
    case Checksum.CKSUMTYPE_RSA_MD4_DES:
        // cksumType = new RsaMd4DesCksumType();
        // cksumTypeName =
        //          "sun.security.krb5.internal.crypto.RsaMd4DesCksumType";

    default:
        throw new KdcErrException(Krb5.KDC_ERR_SUMTYPE_NOSUPP);
    }
    if (DEBUG) {
        System.out.println(">>> CksumType: " + cksumTypeName);
    }
    return cksumType;
}
 
Example 14
public static CksumType getInstance(int cksumTypeConst)
    throws KdcErrException {
    CksumType cksumType = null;
    String cksumTypeName = null;
    switch (cksumTypeConst) {
    case Checksum.CKSUMTYPE_CRC32:
        cksumType = new Crc32CksumType();
        cksumTypeName = "sun.security.krb5.internal.crypto.Crc32CksumType";
        break;
    case Checksum.CKSUMTYPE_DES_MAC:
        cksumType = new DesMacCksumType();
        cksumTypeName = "sun.security.krb5.internal.crypto.DesMacCksumType";
        break;
    case Checksum.CKSUMTYPE_DES_MAC_K:
        cksumType = new DesMacKCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.DesMacKCksumType";
        break;
    case Checksum.CKSUMTYPE_RSA_MD5:
        cksumType = new RsaMd5CksumType();
        cksumTypeName = "sun.security.krb5.internal.crypto.RsaMd5CksumType";
        break;
    case Checksum.CKSUMTYPE_RSA_MD5_DES:
        cksumType = new RsaMd5DesCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.RsaMd5DesCksumType";
        break;

    case Checksum.CKSUMTYPE_HMAC_SHA1_DES3_KD:
        cksumType = new HmacSha1Des3KdCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacSha1Des3KdCksumType";
        break;

    case Checksum.CKSUMTYPE_HMAC_SHA1_96_AES128:
        cksumType = new HmacSha1Aes128CksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacSha1Aes128CksumType";
        break;
    case Checksum.CKSUMTYPE_HMAC_SHA1_96_AES256:
        cksumType = new HmacSha1Aes256CksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacSha1Aes256CksumType";
        break;

    case Checksum.CKSUMTYPE_HMAC_MD5_ARCFOUR:
        cksumType = new HmacMd5ArcFourCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacMd5ArcFourCksumType";
        break;

        // currently we don't support MD4.
    case Checksum.CKSUMTYPE_RSA_MD4_DES_K:
        // cksumType = new RsaMd4DesKCksumType();
        // cksumTypeName =
        //          "sun.security.krb5.internal.crypto.RsaMd4DesKCksumType";
    case Checksum.CKSUMTYPE_RSA_MD4:
        // cksumType = new RsaMd4CksumType();
        // linux box support rsamd4, how to solve conflict?
        // cksumTypeName =
        //          "sun.security.krb5.internal.crypto.RsaMd4CksumType";
    case Checksum.CKSUMTYPE_RSA_MD4_DES:
        // cksumType = new RsaMd4DesCksumType();
        // cksumTypeName =
        //          "sun.security.krb5.internal.crypto.RsaMd4DesCksumType";

    default:
        throw new KdcErrException(Krb5.KDC_ERR_SUMTYPE_NOSUPP);
    }
    if (DEBUG) {
        System.out.println(">>> CksumType: " + cksumTypeName);
    }
    return cksumType;
}
 
Example 15
public int cksumType() {
    return Checksum.CKSUMTYPE_HMAC_SHA1_DES3_KD;
}
 
Example 16
public int cksumType() {
    return Checksum.CKSUMTYPE_HMAC_SHA1_DES3_KD;
}
 
Example 17
public int checksumType() {
    return Checksum.CKSUMTYPE_HMAC_SHA1_DES3_KD;
}
 
Example 18
public static CksumType getInstance(int cksumTypeConst)
    throws KdcErrException {
    CksumType cksumType = null;
    String cksumTypeName = null;
    switch (cksumTypeConst) {
    case Checksum.CKSUMTYPE_CRC32:
        cksumType = new Crc32CksumType();
        cksumTypeName = "sun.security.krb5.internal.crypto.Crc32CksumType";
        break;
    case Checksum.CKSUMTYPE_DES_MAC:
        cksumType = new DesMacCksumType();
        cksumTypeName = "sun.security.krb5.internal.crypto.DesMacCksumType";
        break;
    case Checksum.CKSUMTYPE_DES_MAC_K:
        cksumType = new DesMacKCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.DesMacKCksumType";
        break;
    case Checksum.CKSUMTYPE_RSA_MD5:
        cksumType = new RsaMd5CksumType();
        cksumTypeName = "sun.security.krb5.internal.crypto.RsaMd5CksumType";
        break;
    case Checksum.CKSUMTYPE_RSA_MD5_DES:
        cksumType = new RsaMd5DesCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.RsaMd5DesCksumType";
        break;

    case Checksum.CKSUMTYPE_HMAC_SHA1_DES3_KD:
        cksumType = new HmacSha1Des3KdCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacSha1Des3KdCksumType";
        break;

    case Checksum.CKSUMTYPE_HMAC_SHA1_96_AES128:
        cksumType = new HmacSha1Aes128CksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacSha1Aes128CksumType";
        break;
    case Checksum.CKSUMTYPE_HMAC_SHA1_96_AES256:
        cksumType = new HmacSha1Aes256CksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacSha1Aes256CksumType";
        break;

    case Checksum.CKSUMTYPE_HMAC_MD5_ARCFOUR:
        cksumType = new HmacMd5ArcFourCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacMd5ArcFourCksumType";
        break;

        // currently we don't support MD4.
    case Checksum.CKSUMTYPE_RSA_MD4_DES_K:
        // cksumType = new RsaMd4DesKCksumType();
        // cksumTypeName =
        //          "sun.security.krb5.internal.crypto.RsaMd4DesKCksumType";
    case Checksum.CKSUMTYPE_RSA_MD4:
        // cksumType = new RsaMd4CksumType();
        // linux box support rsamd4, how to solve conflict?
        // cksumTypeName =
        //          "sun.security.krb5.internal.crypto.RsaMd4CksumType";
    case Checksum.CKSUMTYPE_RSA_MD4_DES:
        // cksumType = new RsaMd4DesCksumType();
        // cksumTypeName =
        //          "sun.security.krb5.internal.crypto.RsaMd4DesCksumType";

    default:
        throw new KdcErrException(Krb5.KDC_ERR_SUMTYPE_NOSUPP);
    }
    if (DEBUG) {
        System.out.println(">>> CksumType: " + cksumTypeName);
    }
    return cksumType;
}
 
Example 19
public static CksumType getInstance(int cksumTypeConst)
    throws KdcErrException {
    CksumType cksumType = null;
    String cksumTypeName = null;
    switch (cksumTypeConst) {
    case Checksum.CKSUMTYPE_CRC32:
        cksumType = new Crc32CksumType();
        cksumTypeName = "sun.security.krb5.internal.crypto.Crc32CksumType";
        break;
    case Checksum.CKSUMTYPE_DES_MAC:
        cksumType = new DesMacCksumType();
        cksumTypeName = "sun.security.krb5.internal.crypto.DesMacCksumType";
        break;
    case Checksum.CKSUMTYPE_DES_MAC_K:
        cksumType = new DesMacKCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.DesMacKCksumType";
        break;
    case Checksum.CKSUMTYPE_RSA_MD5:
        cksumType = new RsaMd5CksumType();
        cksumTypeName = "sun.security.krb5.internal.crypto.RsaMd5CksumType";
        break;
    case Checksum.CKSUMTYPE_RSA_MD5_DES:
        cksumType = new RsaMd5DesCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.RsaMd5DesCksumType";
        break;

    case Checksum.CKSUMTYPE_HMAC_SHA1_DES3_KD:
        cksumType = new HmacSha1Des3KdCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacSha1Des3KdCksumType";
        break;

    case Checksum.CKSUMTYPE_HMAC_SHA1_96_AES128:
        cksumType = new HmacSha1Aes128CksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacSha1Aes128CksumType";
        break;
    case Checksum.CKSUMTYPE_HMAC_SHA1_96_AES256:
        cksumType = new HmacSha1Aes256CksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacSha1Aes256CksumType";
        break;

    case Checksum.CKSUMTYPE_HMAC_MD5_ARCFOUR:
        cksumType = new HmacMd5ArcFourCksumType();
        cksumTypeName =
            "sun.security.krb5.internal.crypto.HmacMd5ArcFourCksumType";
        break;

        // currently we don't support MD4.
    case Checksum.CKSUMTYPE_RSA_MD4_DES_K:
        // cksumType = new RsaMd4DesKCksumType();
        // cksumTypeName =
        //          "sun.security.krb5.internal.crypto.RsaMd4DesKCksumType";
    case Checksum.CKSUMTYPE_RSA_MD4:
        // cksumType = new RsaMd4CksumType();
        // linux box support rsamd4, how to solve conflict?
        // cksumTypeName =
        //          "sun.security.krb5.internal.crypto.RsaMd4CksumType";
    case Checksum.CKSUMTYPE_RSA_MD4_DES:
        // cksumType = new RsaMd4DesCksumType();
        // cksumTypeName =
        //          "sun.security.krb5.internal.crypto.RsaMd4DesCksumType";

    default:
        throw new KdcErrException(Krb5.KDC_ERR_SUMTYPE_NOSUPP);
    }
    if (DEBUG) {
        System.out.println(">>> CksumType: " + cksumTypeName);
    }
    return cksumType;
}
 
Example 20
public int cksumType() {
    return Checksum.CKSUMTYPE_HMAC_SHA1_DES3_KD;
}