public class IdentityTokenRequest extends AccessTokenRequest
| Modifier and Type | Field and Description |
|---|---|
static String |
IDENTITY_GRANT_TYPE |
EXPIRES_IN_FORM, GRANT_TYPE_FORM, GRANT_TYPE_JSON, SCOPE_FORM, SCOPE_JSONX_CORRELATION_ID| Constructor and Description |
|---|
IdentityTokenRequest() |
| Modifier and Type | Method and Description |
|---|---|
static IdentityTokenRequest |
fromFormParams(Map<String,List<String>> formParams)
Converts the formParams generated from an instance of IdentityTokenRequest,
back into the IdentityTokenRequest with proper properties set.
|
String |
getNamespace() |
String |
getPodName() |
String |
getPodUid() |
String |
getRunAsId() |
String |
getRunAsIdName() |
protected static String |
getSingleFormValue(Map<String,List<String>> formParams,
String formParamKey)
If available, gets the first value matching the formParamKey from formParams.
|
Map<String,List<String>> |
toFormParams()
Converts this request, to its formParams Map representation.
|
IdentityTokenRequest |
withNamespace(String namespace) |
IdentityTokenRequest |
withPodName(String podName) |
IdentityTokenRequest |
withPodUid(String podUid) |
IdentityTokenRequest |
withRunAsId(String runAsId) |
IdentityTokenRequest |
withRunAsIdName(String runAsIdName) |
addFormParam, getAdditionalHeaders, getCorrelationId, getExpiresIn, getGrantType, getScope, setAdditionalHeaders, setCorrelationId, setExpiresIn, setScope, toJsonpublic static final String IDENTITY_GRANT_TYPE
public String getRunAsId()
public IdentityTokenRequest withRunAsId(String runAsId)
public String getNamespace()
public IdentityTokenRequest withNamespace(String namespace)
public String getRunAsIdName()
public IdentityTokenRequest withRunAsIdName(String runAsIdName)
public String getPodName()
public IdentityTokenRequest withPodName(String podName)
public String getPodUid()
public IdentityTokenRequest withPodUid(String podUid)
public Map<String,List<String>> toFormParams()
toFormParams in class AccessTokenRequestpublic static IdentityTokenRequest fromFormParams(Map<String,List<String>> formParams)
formParams - the formParams representing an IdentityTokenRequestprotected static String getSingleFormValue(Map<String,List<String>> formParams, String formParamKey)
formParams - the form parametersformParamKey - the keyCopyright © 2023 HERE Europe B.V. All Rights Reserved.