/** * Creates a new initialized instance of Checksum * * @param cksumType The {@link CheckSumType} as an int * @param checksum The checksum as a byte[] */ public CheckSum(int cksumType, byte[] checksum) { this(CheckSumType.fromValue(cksumType), checksum); }
/** * Creates a new initialized instance of Checksum * * @param cksumType The {@link CheckSumType} as an int * @param checksum The checksum as a byte[] */ public CheckSum(int cksumType, byte[] checksum) { this(CheckSumType.fromValue(cksumType), checksum); }
/** * @return The {@link CheckSumType} used for this instance */ public CheckSumType getCksumtype() { Integer value = getFieldAsInteger(CheckSumField.CKSUM_TYPE); return CheckSumType.fromValue(value); }
/** * @return The {@link CheckSumType} used for this instance */ public CheckSumType getCksumtype() { Integer value = getFieldAsInteger(CheckSumField.CKSUM_TYPE); return CheckSumType.fromValue(value); }
public static CheckSumTypeHandler getCheckSumHandler(int cksumType) throws KrbException { CheckSumType eTypeEnum = CheckSumType.fromValue(cksumType); return getCheckSumHandler(eTypeEnum); }
public static CheckSumTypeHandler getCheckSumHandler(int cksumType) throws KrbException { CheckSumType eTypeEnum = CheckSumType.fromValue(cksumType); return getCheckSumHandler(eTypeEnum); }