public class AuthenticationRequest extends Object implements Serializable
Constructor and Description |
---|
AuthenticationRequest() |
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String key,
String values)
Add headers which are in the authentication request.
|
void |
addRequestQueryParam(String key,
String[] value)
Add a parameter to the set of query params
|
void |
appendRequestQueryParams(Map<String,String[]> map)
Append params to already existing set of request query params
|
String |
getCommonAuthCallerPath()
Get common auth caller path.
|
boolean |
getForceAuth()
Whether the request is a force auth request or not
|
boolean |
getPassiveAuth()
Get whether the request is a passive authentication request
|
String |
getRelyingParty()
Get relying party of the authentication request
|
Map<String,String> |
getRequestHeaders()
Get request headers in authentication requests
|
String[] |
getRequestQueryParam(String key)
Get the query param with specified key
|
Map<String,String[]> |
getRequestQueryParams()
To retrieve request query params which are stored.
|
String |
getTenantDomain()
Get the tenant domain
|
String |
getType()
Type of the request.
|
boolean |
isPost()
Whether the request is a post or not
|
void |
setCommonAuthCallerPath(String commonAuthCallerPath)
set common auth caller path.
|
void |
setForceAuth(boolean forceAuth)
Set the force auth status.
|
void |
setPassiveAuth(boolean passiveAuth)
Set passive auth.
|
void |
setPost(boolean post)
Set the type of request.
|
void |
setRelyingParty(String relyingParty)
Set the relying party of the authentication request
|
void |
setRequestQueryParams(Map<String,String[]> requestQueryParams)
Set request query params which are comming from the calling servelets
|
void |
setTenantDomain(String tenantDomain)
Set the tenant domain which the authentication request is comming from
|
void |
setType(String type)
Set the type of the request
|
public Map<String,String[]> getRequestQueryParams()
public void setRequestQueryParams(Map<String,String[]> requestQueryParams)
requestQueryParams
- Map of query paramspublic void addHeader(String key, String values)
key
- Key of the headervalues
- value of the headerpublic String getRelyingParty()
public void setRelyingParty(String relyingParty)
relyingParty
- Relying party. Party that sends the requestpublic Map<String,String> getRequestHeaders()
public boolean isPost()
public void setPost(boolean post)
post
- True if the request is a POST. false if it is GETpublic void addRequestQueryParam(String key, String[] value)
key
- Key of the Query paramvalue
- Value of the query parampublic String[] getRequestQueryParam(String key)
key
- Key of the query parampublic void appendRequestQueryParams(Map<String,String[]> map)
map
- Map of new paramspublic String getTenantDomain()
public void setTenantDomain(String tenantDomain)
tenantDomain
- Tenant Domainpublic boolean getForceAuth()
public void setForceAuth(boolean forceAuth)
forceAuth
- True if the incoming request is force authenticate request.public String getCommonAuthCallerPath()
public void setCommonAuthCallerPath(String commonAuthCallerPath)
commonAuthCallerPath
- Path which the common auth endpoint is called frompublic String getType()
public void setType(String type)
type
- Type of the requestpublic boolean getPassiveAuth()
public void setPassiveAuth(boolean passiveAuth)
passiveAuth
- True if the authentication is passive. Else falseCopyright © 2015 WSO2. All rights reserved.