public abstract class IntegrityAlgorithm
extends java.lang.Object
Constructor and Description |
---|
IntegrityAlgorithm() |
Modifier and Type | Method and Description |
---|---|
abstract byte[] |
generateAuthCode(byte[] base)
Creates AuthCode field for message.
|
abstract byte |
getCode()
Returns the algorithm's ID.
|
void |
initialize(byte[] sik)
Initializes Integrity Algorithm
|
public void initialize(byte[] sik) throws java.security.InvalidKeyException
sik
- - Session Integrity Key calculated during the opening of the
session or user password if 'one-key' logins are enabled.java.security.InvalidKeyException
- - when initiation of the algorithm failspublic abstract byte getCode()
public abstract byte[] generateAuthCode(byte[] base)
base
- - data starting with the AuthType/Format field up to and
including the field that immediately precedes the AuthCode
fieldRakp1.calculateSik(com.veraxsystems.vxipmi.coding.commands.session.Rakp1ResponseData)