TianoCore EDK2 master
|
Go to the source code of this file.
Data Structures | |
struct | _EDKII_REDFISH_CREDENTIAL_PROTOCOL |
Macros | |
#define | EDKII_REDFISH_CREDENTIAL_PROTOCOL_GUID |
Typedefs | |
typedef struct _EDKII_REDFISH_CREDENTIAL_PROTOCOL | EDKII_REDFISH_CREDENTIAL_PROTOCOL |
typedef EFI_STATUS(EFIAPI * | EDKII_REDFISH_CREDENTIAL_PROTOCOL_GET_AUTH_INFO) (IN EDKII_REDFISH_CREDENTIAL_PROTOCOL *This, OUT EDKII_REDFISH_AUTH_METHOD *AuthMethod, OUT CHAR8 **UserId, OUT CHAR8 **Password) |
typedef EFI_STATUS(EFIAPI * | EDKII_REDFISH_CREDENTIAL_PROTOCOL_STOP_SERVICE) (IN EDKII_REDFISH_CREDENTIAL_PROTOCOL *This, IN EDKII_REDFISH_CREDENTIAL_STOP_SERVICE_TYPE ServiceStopType) |
Enumerations | |
enum | EDKII_REDFISH_AUTH_METHOD { AuthMethodNone , AuthMethodHttpBasic , AuthMethodRedfishSession , AuthMethodMax } |
enum | EDKII_REDFISH_CREDENTIAL_STOP_SERVICE_TYPE { ServiceStopTypeNone = 0 , ServiceStopTypeSecureBootDisabled , ServiceStopTypeExitBootService , ServiceStopTypeMax } |
Variables | |
EFI_GUID | gEdkIIRedfishCredentialProtocolGuid |
This file defines the EDKII_REDFISH_CREDENTIAL_PROTOCOL interface.
Copyright (c) 2019, Intel Corporation. All rights reserved.
(C) Copyright 2020 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file EdkIIRedfishCredential.h.
#define EDKII_REDFISH_CREDENTIAL_PROTOCOL_GUID |
Definition at line 16 of file EdkIIRedfishCredential.h.
Definition at line 14 of file EdkIIRedfishCredential.h.
typedef EFI_STATUS(EFIAPI * EDKII_REDFISH_CREDENTIAL_PROTOCOL_GET_AUTH_INFO) (IN EDKII_REDFISH_CREDENTIAL_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_CREDENTIAL_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 62 of file EdkIIRedfishCredential.h.
typedef EFI_STATUS(EFIAPI * EDKII_REDFISH_CREDENTIAL_PROTOCOL_STOP_SERVICE) (IN EDKII_REDFISH_CREDENTIAL_PROTOCOL *This, IN EDKII_REDFISH_CREDENTIAL_STOP_SERVICE_TYPE ServiceStopType) |
Notify the Redfish service provide to stop provide configuration service to this platform.
This function should be called when the platfrom is about to leave the safe environment. 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_CREDENTIAL_PROTOCOL instance. |
[in] | ServiceStopType | Reason of stopping Redfish service. |
EFI_SUCCESS | Service has been stoped successfully. |
EFI_INVALID_PARAMETER | This is NULL. |
Others | Some error happened. |
Definition at line 87 of file EdkIIRedfishCredential.h.
Enumerator | |
---|---|
AuthMethodNone | No authentication is required. |
AuthMethodHttpBasic | Basic authentication is required. |
AuthMethodRedfishSession | Session authentication is required. |
Definition at line 21 of file EdkIIRedfishCredential.h.
Definition at line 28 of file EdkIIRedfishCredential.h.