VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/RedfishPkg/RedfishCredentialDxe/RedfishCredentialDxe.h@ 99404

最後變更 在這個檔案從99404是 99404,由 vboxsync 提交於 2 年 前

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

  • 屬性 svn:eol-style 設為 native
檔案大小: 2.8 KB
 
1/** @file
2 Definition of Redfish Credential DXE driver.
3
4 (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
5
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8**/
9
10#ifndef EDKII_REDFISH_CREDENTIAL_DXE_H_
11#define EDKII_REDFISH_CREDENTIAL_DXE_H_
12
13#include <Protocol/EdkIIRedfishCredential.h>
14
15#include <Library/BaseLib.h>
16#include <Library/DebugLib.h>
17#include <Library/PrintLib.h>
18#include <Library/RedfishCredentialLib.h>
19#include <Library/UefiLib.h>
20#include <Library/UefiBootServicesTableLib.h>
21
22/**
23 Retrieve platform's Redfish authentication information.
24
25 This functions returns the Redfish authentication method together with the user Id and
26 password.
27 - For AuthMethodNone, the UserId and Password could be used for HTTP header authentication
28 as defined by RFC7235.
29 - For AuthMethodRedfishSession, the UserId and Password could be used for Redfish
30 session login as defined by Redfish API specification (DSP0266).
31
32 Callers are responsible for and freeing the returned string storage.
33
34 @param[in] This Pointer to EDKII_REDFISH_CREDENTIAL_PROTOCOL instance.
35 @param[out] AuthMethod Type of Redfish authentication method.
36 @param[out] UserId The pointer to store the returned UserId string.
37 @param[out] Password The pointer to store the returned Password string.
38
39 @retval EFI_SUCCESS Get the authentication information successfully.
40 @retval EFI_ACCESS_DENIED SecureBoot is disabled after EndOfDxe.
41 @retval EFI_INVALID_PARAMETER This or AuthMethod or UserId or Password is NULL.
42 @retval EFI_OUT_OF_RESOURCES There are not enough memory resources.
43 @retval EFI_UNSUPPORTED Unsupported authentication method is found.
44
45**/
46EFI_STATUS
47EFIAPI
48RedfishCredentialGetAuthInfo (
49 IN EDKII_REDFISH_CREDENTIAL_PROTOCOL *This,
50 OUT EDKII_REDFISH_AUTH_METHOD *AuthMethod,
51 OUT CHAR8 **UserId,
52 OUT CHAR8 **Password
53 );
54
55/**
56 Notify the Redfish service provide to stop provide configuration service to this platform.
57
58 This function should be called when the platfrom is about to leave the safe environment.
59 It will notify the Redfish service provider to abort all logined session, and prohibit
60 further login with original auth info. GetAuthInfo() will return EFI_UNSUPPORTED once this
61 function is returned.
62
63 @param[in] This Pointer to EDKII_REDFISH_CREDENTIAL_PROTOCOL instance.
64
65 @retval EFI_SUCCESS Service has been stoped successfully.
66 @retval EFI_INVALID_PARAMETER This is NULL.
67 @retval Others Some error happened.
68
69**/
70EFI_STATUS
71EFIAPI
72RedfishCredentialStopService (
73 IN EDKII_REDFISH_CREDENTIAL_PROTOCOL *This,
74 IN EDKII_REDFISH_CREDENTIAL_STOP_SERVICE_TYPE ServiceStopType
75 );
76
77#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette