Package com.stackrox.invoker.auth
Class HttpBasicAuth
- java.lang.Object
-
- com.stackrox.invoker.auth.HttpBasicAuth
-
- All Implemented Interfaces:
Authentication
public class HttpBasicAuth extends Object implements Authentication
-
-
Constructor Summary
Constructors Constructor Description HttpBasicAuth()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyToParams(List<com.stackrox.invoker.Pair> queryParams, Map<String,String> headerParams, Map<String,String> cookieParams, String payload, String method, URI uri)
Apply authentication settings to header and query params.String
getPassword()
String
getUsername()
void
setPassword(String password)
void
setUsername(String username)
-
-
-
Method Detail
-
getUsername
public String getUsername()
-
setUsername
public void setUsername(String username)
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String password)
-
applyToParams
public void applyToParams(List<com.stackrox.invoker.Pair> queryParams, Map<String,String> headerParams, Map<String,String> cookieParams, String payload, String method, URI uri) throws com.stackrox.invoker.ApiException
Description copied from interface:Authentication
Apply authentication settings to header and query params.- Specified by:
applyToParams
in interfaceAuthentication
- Parameters:
queryParams
- List of query parametersheaderParams
- Map of header parameterscookieParams
- Map of cookie parameterspayload
- HTTP request bodymethod
- HTTP methoduri
- URI- Throws:
com.stackrox.invoker.ApiException
- if failed to update the parameters
-
-