public class AuthenticationRakpHmacSha1 extends AuthenticationAlgorithm
Constructor and Description |
---|
AuthenticationRakpHmacSha1()
Initiates RAKP-HMAC-SHA1 authentication algorithm.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkKeyExchangeAuthenticationCode(byte[] data,
byte[] key,
java.lang.String password)
Checks value of the Key Exchange Authentication Code in RAKP messages
|
boolean |
doIntegrityCheck(byte[] data,
byte[] reference,
byte[] sik)
Validates Integrity Check Value in RAKP Message 4.
|
byte |
getCode() |
int |
getIntegrityCheckBaseLength() |
byte[] |
getKeyExchangeAuthenticationCode(byte[] data,
java.lang.String password)
Calculates value of the Key Exchange Authentication Code in RAKP messages
|
int |
getKeyLength() |
public AuthenticationRakpHmacSha1() throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
- - when initiation of the algorithm failspublic byte getCode()
getCode
in class AuthenticationAlgorithm
public boolean checkKeyExchangeAuthenticationCode(byte[] data, byte[] key, java.lang.String password) throws java.security.NoSuchAlgorithmException, java.security.InvalidKeyException
AuthenticationAlgorithm
checkKeyExchangeAuthenticationCode
in class AuthenticationAlgorithm
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 byte[] getKeyExchangeAuthenticationCode(byte[] data, java.lang.String password) throws java.security.NoSuchAlgorithmException, java.security.InvalidKeyException
AuthenticationAlgorithm
getKeyExchangeAuthenticationCode
in class AuthenticationAlgorithm
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 boolean doIntegrityCheck(byte[] data, byte[] reference, byte[] sik) throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException
AuthenticationAlgorithm
doIntegrityCheck
in class AuthenticationAlgorithm
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.InvalidKeyException
- when creating of the algorithm key failsjava.security.NoSuchAlgorithmException
- when initiation of the algorithm failsRakp1.calculateSik(com.veraxsystems.vxipmi.coding.commands.session.Rakp1ResponseData)
public int getKeyLength()
getKeyLength
in class AuthenticationAlgorithm
public int getIntegrityCheckBaseLength()
getIntegrityCheckBaseLength
in class AuthenticationAlgorithm