TianoCore EDK2 master
|
Go to the source code of this file.
Data Structures | |
struct | _EDKII_REDFISH_CREDENTIAL2_PROTOCOL |
Macros | |
#define | REDFISH_CREDENTIAL_PROTOCOL_REVISION 0x00010000 |
#define | EDKII_REDFISH_CREDENTIAL2_PROTOCOL_GUID |
Typedefs | |
typedef struct _EDKII_REDFISH_CREDENTIAL2_PROTOCOL | EDKII_REDFISH_CREDENTIAL2_PROTOCOL |
typedef EFI_STATUS(EFIAPI * | EDKII_REDFISH_CREDENTIAL2_PROTOCOL_GET_AUTH_INFO) (IN EDKII_REDFISH_CREDENTIAL2_PROTOCOL *This, OUT EDKII_REDFISH_AUTH_METHOD *AuthMethod, OUT CHAR8 **UserId, OUT CHAR8 **Password) |
typedef EFI_STATUS(EFIAPI * | EDKII_REDFISH_CREDENTIAL2_PROTOCOL_STOP_SERVICE) (IN EDKII_REDFISH_CREDENTIAL2_PROTOCOL *This, IN EDKII_REDFISH_CREDENTIAL_STOP_SERVICE_TYPE ServiceStopType) |
typedef EFI_STATUS(EFIAPI * | EDKII_REDFISH_CREDENTIAL2_PROTOCOL_REGISTER_REDFISH_SERVICE) (IN EDKII_REDFISH_CREDENTIAL2_PROTOCOL *This, IN REDFISH_SERVICE RedfishService) |
typedef EFI_STATUS(EFIAPI * | EDKII_REDFISH_CREDENTIAL2_PROTOCOL_UNREGISTER_REDFISH_SERVICE) (IN EDKII_REDFISH_CREDENTIAL2_PROTOCOL *This, IN REDFISH_SERVICE RedfishService) |
Variables | |
EFI_GUID | gEdkIIRedfishCredential2ProtocolGuid |
This file defines the EDKII_REDFISH_CREDENTIAL2_PROTOCOL interface.
Copyright (c) 2019, Intel Corporation. All rights reserved.
(C) Copyright 2020 Hewlett Packard Enterprise Development LP
(C) Copyright 2024 American Megatrends International LLC
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file EdkIIRedfishCredential2.h.
#define EDKII_REDFISH_CREDENTIAL2_PROTOCOL_GUID |
Definition at line 22 of file EdkIIRedfishCredential2.h.
#define REDFISH_CREDENTIAL_PROTOCOL_REVISION 0x00010000 |
Definition at line 20 of file EdkIIRedfishCredential2.h.
Definition at line 18 of file EdkIIRedfishCredential2.h.
typedef EFI_STATUS(EFIAPI * EDKII_REDFISH_CREDENTIAL2_PROTOCOL_GET_AUTH_INFO) (IN EDKII_REDFISH_CREDENTIAL2_PROTOCOL *This, OUT EDKII_REDFISH_AUTH_METHOD *AuthMethod, OUT CHAR8 **UserId, OUT CHAR8 **Password) |
Retrieve platform's Redfish authentication information.
This functions returns the Redfish authentication method together with the user Id and password.
Callers are responsible for and freeing the returned string storage.
[in] | This | Pointer to EDKII_REDFISH_CREDENTIAL2_PROTOCOL instance. |
[out] | AuthMethod | Type of Redfish authentication method. |
[out] | UserId | The pointer to store the returned UserId string. |
[out] | Password | The pointer to store the returned Password string. |
EFI_SUCCESS | Get the authentication information successfully. |
EFI_ACCESS_DENIED | SecureBoot is disabled after EndOfDxe. |
EFI_INVALID_PARAMETER | This or AuthMethod or UserId or Password is NULL. |
EFI_OUT_OF_RESOURCES | There are not enough memory resources. |
EFI_UNSUPPORTED | Unsupported authentication method is found. |
Definition at line 52 of file EdkIIRedfishCredential2.h.
typedef EFI_STATUS(EFIAPI * EDKII_REDFISH_CREDENTIAL2_PROTOCOL_REGISTER_REDFISH_SERVICE) (IN EDKII_REDFISH_CREDENTIAL2_PROTOCOL *This, IN REDFISH_SERVICE RedfishService) |
Register Redfish service instance so protocol knows that some module uses bootstrap account .
[in] | This | Pointer to EDKII_REDFISH_CREDENTIAL2_PROTOCOL instance. |
[in] | RedfishService | Redfish service instance to register. |
EFI_SUCCESS | This Redfish service instance has been registered successfully. |
Definition at line 95 of file EdkIIRedfishCredential2.h.
typedef EFI_STATUS(EFIAPI * EDKII_REDFISH_CREDENTIAL2_PROTOCOL_STOP_SERVICE) (IN EDKII_REDFISH_CREDENTIAL2_PROTOCOL *This, IN EDKII_REDFISH_CREDENTIAL_STOP_SERVICE_TYPE ServiceStopType) |
Notifies the Redfish service provider to stop providing configuration service to this platform. Deletes the bootstrap account on BMC side, so it will not be used by any other driver.
This function should be called when the platfrom is about to leave the safe environment. It will delete the bootstrap account sending DELETE request to BMC. It will notify the Redfish service provider to abort all logined session, and prohibit further login with original auth info. GetAuthInfo() will return EFI_UNSUPPORTED once this function is returned.
[in] | This | Pointer to EDKII_REDFISH_CREDENTIAL2_PROTOCOL instance. |
[in] | ServiceStopType | Reason of stopping Redfish service. |
EFI_SUCCESS | Service has been stopped successfully. |
EFI_INVALID_PARAMETER | This is NULL. |
Others | Some error happened. |
Definition at line 79 of file EdkIIRedfishCredential2.h.
typedef EFI_STATUS(EFIAPI * EDKII_REDFISH_CREDENTIAL2_PROTOCOL_UNREGISTER_REDFISH_SERVICE) (IN EDKII_REDFISH_CREDENTIAL2_PROTOCOL *This, IN REDFISH_SERVICE RedfishService) |
Unregister Redfish service instance and delete the bootstrap account when all registered services unregistered.
[in] | This | Pointer to EDKII_REDFISH_CREDENTIAL2_PROTOCOL instance. |
[in] | RedfishService | Redfish service instance to unregister. |
EFI_SUCCESS | This Redfish service instance has been unregistered successfully. |
Definition at line 112 of file EdkIIRedfishCredential2.h.