Class AuthenticationRakpNone
java.lang.Object
org.metricshub.ipmi.core.coding.security.AuthenticationAlgorithm
org.metricshub.ipmi.core.coding.security.AuthenticationRakpNone
RAKP-None authentication algorithm.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an instance of the RAKP-None authentication algorithm. -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckKeyExchangeAuthenticationCode(byte[] data, byte[] key, String password) Checks value of the Key Exchange Authentication Code in RAKP messages using the RAKP-None algorithm.booleandoIntegrityCheck(byte[] data, byte[] reference, byte[] sik) Performs Integrity Check in RAKP 4 message using the RAKP-None algorithm.bytegetCode()intbyte[]getKeyExchangeAuthenticationCode(byte[] data, String password) Calculates value of the Key Exchange Authentication Code in RAKP messages using the RAKP-None algorithm.int
-
Constructor Details
-
AuthenticationRakpNone
public AuthenticationRakpNone()Constructs an instance of the RAKP-None authentication algorithm.
-
-
Method Details
-
getCode
public byte getCode()- Specified by:
getCodein classAuthenticationAlgorithm- Returns:
- algorithm-specific code
-
checkKeyExchangeAuthenticationCode
Checks value of the Key Exchange Authentication Code in RAKP messages using the RAKP-None algorithm.- Overrides:
checkKeyExchangeAuthenticationCodein classAuthenticationAlgorithm- Parameters:
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 session- Returns:
- True if authentication check was successful, false otherwise.
-
getKeyExchangeAuthenticationCode
Calculates value of the Key Exchange Authentication Code in RAKP messages using the RAKP-None algorithm.- Overrides:
getKeyExchangeAuthenticationCodein classAuthenticationAlgorithm- Parameters:
data- - The base for authentication algorithm. Depends on RAKP Message.password- - password of the user establishing a session
-
doIntegrityCheck
public boolean doIntegrityCheck(byte[] data, byte[] reference, byte[] sik) Performs Integrity Check in RAKP 4 message using the RAKP-None algorithm.- Overrides:
doIntegrityCheckin classAuthenticationAlgorithm- Parameters:
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.- Returns:
- True if integrity check was successful, false otherwise.
- See Also:
-
getKeyLength
public int getKeyLength()- Specified by:
getKeyLengthin classAuthenticationAlgorithm- Returns:
- length of the key for the RAKP2 message
-
getIntegrityCheckBaseLength
public int getIntegrityCheckBaseLength()- Specified by:
getIntegrityCheckBaseLengthin classAuthenticationAlgorithm- Returns:
- length of the integrity check base for RAKP4 message
-
getAlgorithmName
- Specified by:
getAlgorithmNamein classAuthenticationAlgorithm- Returns:
- the name of the algorithm as a
String.
-