public abstract class AuthenticationAlgorithm
extends java.lang.Object
Constructor and Description |
---|
AuthenticationAlgorithm() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
checkKeyExchangeAuthenticationCode(byte[] data,
byte[] key,
java.lang.String password)
Checks value of the Key Exchange Authentication Code in RAKP messages
|
abstract boolean |
doIntegrityCheck(byte[] data,
byte[] reference,
byte[] sik)
Validates Integrity Check Value in RAKP Message 4.
|
abstract byte |
getCode() |
abstract int |
getIntegrityCheckBaseLength() |
abstract byte[] |
getKeyExchangeAuthenticationCode(byte[] data,
java.lang.String password)
Calculates value of the Key Exchange Authentication Code in RAKP messages
|
abstract int |
getKeyLength() |
public abstract byte getCode()
public abstract int getKeyLength()
public abstract int getIntegrityCheckBaseLength()
public abstract boolean checkKeyExchangeAuthenticationCode(byte[] data, byte[] key, java.lang.String password) throws java.security.NoSuchAlgorithmException, java.security.InvalidKeyException
data
- - The base for authentication algorithm. Depends on RAKP
Message.key
- - the Key Exchange Authentication Code to check.password
- - password of the user establishing a sessionjava.security.NoSuchAlgorithmException
- when initiation of the algorithm failsjava.security.InvalidKeyException
- when creating of the algorithm key failsSpublic abstract byte[] getKeyExchangeAuthenticationCode(byte[] data, java.lang.String password) throws java.security.NoSuchAlgorithmException, java.security.InvalidKeyException
data
- - The base for authentication algorithm. Depends on RAKP
Message.password
- - password of the user establishing a sessionjava.security.NoSuchAlgorithmException
- when initiation of the algorithm failsjava.security.InvalidKeyException
- when creating of the algorithm key failspublic abstract boolean doIntegrityCheck(byte[] data, byte[] reference, byte[] sik) throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException
data
- - The base for authentication algorithm.reference
- - The Integrity Check Value to validate.sik
- - The Session Integrity Key generated on base of RAKP Messages
1 and 2.java.security.NoSuchAlgorithmException
- when initiation of the algorithm failsjava.security.InvalidKeyException
- when creating of the algorithm key failsRakp1.calculateSik(com.veraxsystems.vxipmi.coding.commands.session.Rakp1ResponseData)