Class AbstractCheckSumTypeHandler
java.lang.Object
org.apache.kerby.kerberos.kerb.crypto.AbstractCryptoTypeHandler
org.apache.kerby.kerberos.kerb.crypto.cksum.AbstractCheckSumTypeHandler
- All Implemented Interfaces:
CheckSumTypeHandler,CryptoTypeHandler
- Direct Known Subclasses:
AbstractKeyedCheckSumTypeHandler,AbstractUnkeyedCheckSumTypeHandler
public abstract class AbstractCheckSumTypeHandler
extends AbstractCryptoTypeHandler
implements CheckSumTypeHandler
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractCheckSumTypeHandler(EncryptProvider encProvider, HashProvider hashProvider, int computeSize, int outputSize) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]checksum(byte[] data) byte[]checksum(byte[] data, int start, int size) byte[]checksumWithKey(byte[] data, byte[] key, int usage) byte[]checksumWithKey(byte[] data, int start, int size, byte[] key, int usage) intintintbooleanisSafe()intkeySize()name()intbooleanverify(byte[] data, byte[] checksum) booleanverify(byte[] data, int start, int size, byte[] checksum) booleanverifyWithKey(byte[] data, byte[] key, int usage, byte[] checksum) Methods inherited from class org.apache.kerby.kerberos.kerb.crypto.AbstractCryptoTypeHandler
checksumEqual, checksumEqual, encProvider, hashProviderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.kerby.kerberos.kerb.crypto.CheckSumTypeHandler
cksumTypeMethods inherited from interface org.apache.kerby.kerberos.kerb.crypto.CryptoTypeHandler
encProvider, hashProvider
-
Constructor Details
-
AbstractCheckSumTypeHandler
public AbstractCheckSumTypeHandler(EncryptProvider encProvider, HashProvider hashProvider, int computeSize, int outputSize)
-
-
Method Details
-
name
- Specified by:
namein interfaceCryptoTypeHandler
-
displayName
- Specified by:
displayNamein interfaceCryptoTypeHandler
-
computeSize
public int computeSize()- Specified by:
computeSizein interfaceCheckSumTypeHandler
-
outputSize
public int outputSize()- Specified by:
outputSizein interfaceCheckSumTypeHandler
-
isSafe
public boolean isSafe()- Specified by:
isSafein interfaceCheckSumTypeHandler
-
cksumSize
public int cksumSize()- Specified by:
cksumSizein interfaceCheckSumTypeHandler
-
keySize
public int keySize()- Specified by:
keySizein interfaceCheckSumTypeHandler
-
confounderSize
public int confounderSize()- Specified by:
confounderSizein interfaceCheckSumTypeHandler
-
checksum
public byte[] checksum(byte[] data) throws org.apache.kerby.kerberos.kerb.KrbException - Specified by:
checksumin interfaceCheckSumTypeHandler- Throws:
org.apache.kerby.kerberos.kerb.KrbException
-
checksum
public byte[] checksum(byte[] data, int start, int size) throws org.apache.kerby.kerberos.kerb.KrbException - Specified by:
checksumin interfaceCheckSumTypeHandler- Throws:
org.apache.kerby.kerberos.kerb.KrbException
-
verify
public boolean verify(byte[] data, byte[] checksum) throws org.apache.kerby.kerberos.kerb.KrbException - Specified by:
verifyin interfaceCheckSumTypeHandler- Throws:
org.apache.kerby.kerberos.kerb.KrbException
-
verify
public boolean verify(byte[] data, int start, int size, byte[] checksum) throws org.apache.kerby.kerberos.kerb.KrbException - Specified by:
verifyin interfaceCheckSumTypeHandler- Throws:
org.apache.kerby.kerberos.kerb.KrbException
-
checksumWithKey
public byte[] checksumWithKey(byte[] data, byte[] key, int usage) throws org.apache.kerby.kerberos.kerb.KrbException - Specified by:
checksumWithKeyin interfaceCheckSumTypeHandler- Throws:
org.apache.kerby.kerberos.kerb.KrbException
-
checksumWithKey
public byte[] checksumWithKey(byte[] data, int start, int size, byte[] key, int usage) throws org.apache.kerby.kerberos.kerb.KrbException - Specified by:
checksumWithKeyin interfaceCheckSumTypeHandler- Throws:
org.apache.kerby.kerberos.kerb.KrbException
-
verifyWithKey
public boolean verifyWithKey(byte[] data, byte[] key, int usage, byte[] checksum) throws org.apache.kerby.kerberos.kerb.KrbException - Specified by:
verifyWithKeyin interfaceCheckSumTypeHandler- Throws:
org.apache.kerby.kerberos.kerb.KrbException
-