public class HttpHeaders extends Object
We have runtime dependency on OkHttp which is a transitive dependency coming from Fabric8 Kubernetes Client. We needed only parseChallengeHeader method for parsing WWW-Authenticate header for fetching authentication challenges. It seemed a better option to port the required method instead of adding okhttp dependency to the project.
| Modifier and Type | Method and Description |
|---|---|
static List<Map<String,String>> |
parseWwwAuthenticateChallengeHeaders(String header)
Parse WWW-Authenticate header contents as a list of maps, with each map representing
an authentication challenge.
|
public static List<Map<String,String>> parseWwwAuthenticateChallengeHeaders(String header) throws IOException
header - string containing header valueIOException - in case of parsing stringCopyright © 2024. All rights reserved.