public class CheckSum extends KrbSequenceType
Checksum ::= SEQUENCE {
cksumtype [0] Int32,
checksum [1] OCTET STRING
}
| Modifier and Type | Class and Description |
|---|---|
protected static class |
CheckSum.CheckSumField
The CheckSum fields
|
| Constructor and Description |
|---|
CheckSum()
Creates a new (empty) instance of Checksum
|
CheckSum(CheckSumType cksumType,
byte[] checksum)
Creates a new initialized instance of Checksum
|
CheckSum(int cksumType,
byte[] checksum)
Creates a new initialized instance of Checksum
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
byte[] |
getChecksum() |
CheckSumType |
getCksumtype() |
int |
hashCode() |
boolean |
isEqual(byte[] cksumBytes)
Compare the checksum value of a given Checksum instance and this instance.
|
boolean |
isEqual(CheckSum other) |
void |
setChecksum(byte[] checksum)
Set the checksum in this instance
|
void |
setCksumtype(CheckSumType cksumtype)
Set the
CheckSumType |
getFieldAsInt, getFieldAsTime, setField, setFieldAsString, setFieldAsTimedecodeBody, dumpWith, encodeBody, encodingBodyLength, getFieldAs, getFieldAsAny, getFieldAsInteger, getFieldAsObjId, getFieldAsOctets, getFieldAsString, setAnyFieldValueType, setFieldAs, setFieldAsAny, setFieldAsInt, setFieldAsInt, setFieldAsObjId, setFieldAsOctetsgetValue, setValue, toStringdecode, decode, decode, encode, encode, encodingHeaderLength, encodingLength, getBodyLength, getHeaderLength, isBER, isCER, isDefinitiveLength, isDER, isImplicit, isPrimitive, resetBodyLength, taggedDecode, taggedDecode, taggedDecode, taggedEncode, taggedEncode, taggedEncodingLength, useBER, useCER, useDefinitiveLength, useDER, useImplicit, usePrimitiveisAppSpecific, isCollection, isContextSpecific, isEOC, isNull, isSimple, isTagSpecific, isUniversal, simpleInfo, tag, tagFlags, tagNopublic CheckSum()
public CheckSum(CheckSumType cksumType, byte[] checksum)
cksumType - The CheckSumTypechecksum - The checksum as a byte[]public CheckSum(int cksumType,
byte[] checksum)
cksumType - The CheckSumType as an intchecksum - The checksum as a byte[]public CheckSumType getCksumtype()
CheckSumType used for this instancepublic void setCksumtype(CheckSumType cksumtype)
CheckSumTypecksumtype - The CheckSumType to setpublic byte[] getChecksum()
public void setChecksum(byte[] checksum)
checksum - The checksum to setpublic boolean equals(Object other)
equals in class ObjectObject.equals(Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean isEqual(CheckSum other)
other - The checksum to be comparedpublic boolean isEqual(byte[] cksumBytes)
cksumBytes - The checksum bytes to be comparedCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.