Class AuthenticationRakpNone

java.lang.Object
org.sentrysoftware.ipmi.core.coding.security.AuthenticationAlgorithm
org.sentrysoftware.ipmi.core.coding.security.AuthenticationRakpNone

public class AuthenticationRakpNone extends AuthenticationAlgorithm
RAKP-None authentication algorithm.
  • Constructor Details

    • AuthenticationRakpNone

      public AuthenticationRakpNone()
  • Method Details

    • getCode

      public byte getCode()
      Specified by:
      getCode in class AuthenticationAlgorithm
      Returns:
      algorithm-specific code
    • checkKeyExchangeAuthenticationCode

      public boolean checkKeyExchangeAuthenticationCode(byte[] data, byte[] key, String password)
      Checks value of the Key Exchange Authentication Code in RAKP messages using the RAKP-None algorithm.
      Specified by:
      checkKeyExchangeAuthenticationCode in class AuthenticationAlgorithm
      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

      public byte[] getKeyExchangeAuthenticationCode(byte[] data, String password)
      Calculates value of the Key Exchange Authentication Code in RAKP messages using the RAKP-None algorithm.
      Specified by:
      getKeyExchangeAuthenticationCode in class AuthenticationAlgorithm
      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.
      Specified by:
      doIntegrityCheck in class AuthenticationAlgorithm
      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:
      getKeyLength in class AuthenticationAlgorithm
      Returns:
      length of the key for the RAKP2 message
    • getIntegrityCheckBaseLength

      public int getIntegrityCheckBaseLength()
      Specified by:
      getIntegrityCheckBaseLength in class AuthenticationAlgorithm
      Returns:
      length of the integrity check base for RAKP4 message