org.apache.directory.server.kerberos.shared.crypto.checksum
Class ChecksumHandler
java.lang.Object
org.apache.directory.server.kerberos.shared.crypto.checksum.ChecksumHandler
public class ChecksumHandler
- extends java.lang.Object
A Hashed Adapter encapsulating checksum engines for performing integrity checks.
- Version:
- $Rev$, $Date$
- Author:
- Apache Directory Project
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChecksumHandler
public ChecksumHandler()
calculateChecksum
public Checksum calculateChecksum(ChecksumType checksumType,
byte[] bytes,
byte[] key,
KeyUsage usage)
throws KerberosException
- Calculate a checksum based on raw bytes and an (optional) key for keyed checksums.
- Parameters:
checksumType
- bytes
- key
- usage
-
- Returns:
- The
Checksum
.
- Throws:
KerberosException
verifyChecksum
public void verifyChecksum(Checksum checksum,
byte[] bytes,
byte[] key,
KeyUsage usage)
throws KerberosException
- Verify a checksum by providing the raw bytes and an (optional) key for keyed checksums.
- Parameters:
checksum
- bytes
- key
- usage
-
- Throws:
KerberosException
Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.