Class HttpHeaderGoogleConfigProvider
- java.lang.Object
-
- org.springframework.cloud.config.server.environment.secretmanager.HttpHeaderGoogleConfigProvider
-
- All Implemented Interfaces:
GoogleConfigProvider
public class HttpHeaderGoogleConfigProvider extends Object implements GoogleConfigProvider
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACCESS_TOKEN_HEADER
The Config Token ID Header admited to get the access token from the client.static String
PREFIX_HEADER
The prefix we should search for in secrets to take them into account.static String
PROJECT_ID_HEADER
The Project ID Header admited to get the project name for google cloud secret manager.
-
Constructor Summary
Constructors Constructor Description HttpHeaderGoogleConfigProvider(org.springframework.beans.factory.ObjectProvider<javax.servlet.http.HttpServletRequest> request)
-
-
-
Field Detail
-
PROJECT_ID_HEADER
public static final String PROJECT_ID_HEADER
The Project ID Header admited to get the project name for google cloud secret manager.- See Also:
- Constant Field Values
-
ACCESS_TOKEN_HEADER
public static final String ACCESS_TOKEN_HEADER
The Config Token ID Header admited to get the access token from the client.- See Also:
- Constant Field Values
-
PREFIX_HEADER
public static final String PREFIX_HEADER
The prefix we should search for in secrets to take them into account.- See Also:
- Constant Field Values
-
-
Method Detail
-
getValue
public String getValue(String key, Boolean mandatory)
- Specified by:
getValue
in interfaceGoogleConfigProvider
-
-