public class AuthXMLRequest extends Object
AuthXMLRequest
represents the AuthRequest
XML
document. The table shows the Request and the possible
Responses for each Request:
Request Response ---------------------------------------------------------------------- NewAuthContext LoginStatus or Exception QueryInformation QueryResult or Exception Login GetRequirements or LoginStatus or Exception SubmitRequirements GetRequirements or LoginStatus or Exception Logout LoginStatus or Exception Abort LoginStatus or Exception
Modifier and Type | Field and Description |
---|---|
static int |
Abort
Constant of Authentication request for abort
|
static int |
Login
Constant of Authentication request for login
|
static int |
LoginIndex
Constant of Authentication request for login index
|
static int |
LoginPrincipal
Constant of Authentication request for login principal
|
static int |
LoginSubject
Constant of Authentication request for login subject
|
static int |
Logout
Constant of Authentication request for logout
|
static int |
NewAuthContext
Constant of Authentication request for new AuthContext
|
static int |
QueryInformation
Constant of Authentication request for query information
|
static int |
SubmitRequirements
Constant of Authentication request for submit auth requirements
|
Constructor and Description |
---|
AuthXMLRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getAppSSOTokenID()
Returns the Application SSO Token id as set by
setAppSSOTokenID |
AuthContextLocal |
getAuthContext()
Returns the authentication context for this request.
|
String |
getAuthIdentifier()
Returns the authentication Identifier - session ID
|
javax.servlet.http.HttpServletRequest |
getClientRequest()
Gets the client request
|
javax.servlet.http.HttpServletResponse |
getClientResponse()
Gets the client response
|
List |
getEnvironment()
Returns the environment setting for the request.
|
String |
getForceAuth()
Returns the force auth flag.
|
String |
getHostName()
Returns the host name.
|
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
Returns the servlet request.
|
String |
getIndexName()
Returns the index name.
|
AuthContext.IndexType |
getIndexType()
Returns the index type.
|
String |
getLocale()
Returns the locale.
|
String |
getOrgName()
Returns the organization name.
|
String |
getParams()
Returns the request parameters.
|
char[] |
getPassword()
Returns the password.
|
Principal |
getPrincipal()
Returns the principal.
|
int |
getRequestType()
Returns the request type.
|
Subject |
getSubject()
Returns the subject.
|
Callback[] |
getSubmittedCallbacks()
Returns the callbacks set by client.
|
boolean |
getValidSessionNoUpgrade()
Returns the attribute for valid session
and no session upgrade in request.
|
static AuthXMLRequest |
parseXML(String xml,
javax.servlet.http.HttpServletRequest req)
This method is used primarily at the server side to reconstruct
a
AuthXMLRequest object based on the XML document
received from client. |
void |
setAppSSOTokenID(String appSSOTokenID)
Sets the Application SSO Token id as received in PLL request
|
void |
setAuthContext(AuthContextLocal authContext)
Sets the authentication context for this request.
|
void |
setAuthIdentifier(String authIdentifier)
Sets the
authIdentifier - session ID |
void |
setClientRequest(javax.servlet.http.HttpServletRequest request)
Sets the client request
|
void |
setClientResponse(javax.servlet.http.HttpServletResponse response)
Sets the client response
|
void |
setEnvironment(List env)
Sets the environment for the request.
|
void |
setForceAuth(String aForceAuth)
Sets the Force Auth attribute.
|
void |
setHostName(String hostName)
Sets the host name.
|
void |
setHttpServletRequest(javax.servlet.http.HttpServletRequest servletRequest)
Sets the servlet request.
|
void |
setIndexName(String indexName)
Sets the index name.
|
void |
setIndexType(String strIndexType)
Sets the index Type.
|
void |
setLocale(String locale)
Sets the locale
|
void |
setOrgName(String orgName)
Sets the organization name.
|
void |
setParams(String params)
Sets the request parameters.
|
void |
setPassword(String password)
Sets the password.
|
void |
setPrincipal(String className,
String principalValue)
sets the principal for the class
|
void |
setRequestInformation(String requestInfo)
Sets the
requestinfo - moduleInstances . |
void |
setRequestType(int i)
Sets the request type.
|
void |
setRequestVersion(String version)
Sets the request version.
|
void |
setSubject(Subject subject)
Sets the subject.
|
void |
setSubmittedCallbacks(Callback[] submittedCallbacks)
Sets the submitted callbacks.
|
void |
setValidSessionNoUpgrade(boolean aValidSessionNoUpgrade)
Sets the attribute for valid session
and no session upgrade in request.
|
public static final int NewAuthContext
public static final int Login
public static final int SubmitRequirements
public static final int QueryInformation
public static final int Logout
public static final int Abort
public static final int LoginIndex
public static final int LoginPrincipal
public static final int LoginSubject
public static AuthXMLRequest parseXML(String xml, javax.servlet.http.HttpServletRequest req) throws AuthException
AuthXMLRequest
object based on the XML document
received from client. The DTD of this XML document is described above.xml
- The AuthXMLRequest
XML.req
- HTTP Servlet Request.AuthXMLRequest
if xml parsed without problem.AuthException
- if xml parsed with problem.public void setRequestType(int i)
i
- Request type.public void setRequestVersion(String version)
version
- Version.public void setAuthIdentifier(String authIdentifier)
authIdentifier
- session IDauthIdentifier
- public void setAppSSOTokenID(String appSSOTokenID)
appSSOTokenID
- Application SSOToken Id.public void setOrgName(String orgName)
orgName
- Organization Name.public void setHostName(String hostName)
hostName
- Host Name.public void setForceAuth(String aForceAuth)
aForceAuth
- Force Auth flag.public void setValidSessionNoUpgrade(boolean aValidSessionNoUpgrade)
aValidSessionNoUpgrade
- Session is valid No upgrade needed.public void setRequestInformation(String requestInfo)
requestinfo
- moduleInstances
.requestInfo
- Request Information.public void setIndexType(String strIndexType)
strIndexType
- public void setLocale(String locale)
locale
- locale setting.public void setIndexName(String indexName)
indexName
- Index Name.public void setPrincipal(String className, String principalValue)
className
- will have the principal.principalValue
- will be set for the class.public void setPassword(String password)
password
- Password.public void setSubmittedCallbacks(Callback[] submittedCallbacks)
submittedCallbacks
- Submitted callbacks.public void setClientRequest(javax.servlet.http.HttpServletRequest request)
request
- The client Http Servlet Requestpublic void setClientResponse(javax.servlet.http.HttpServletResponse response)
response
- The client Http Servlet Responsepublic javax.servlet.http.HttpServletRequest getClientRequest()
public javax.servlet.http.HttpServletResponse getClientResponse()
public int getRequestType()
public String getOrgName()
public String getHostName()
public String getForceAuth()
public boolean getValidSessionNoUpgrade()
public String getAuthIdentifier()
public String getAppSSOTokenID()
setAppSSOTokenID
public Callback[] getSubmittedCallbacks()
public AuthContext.IndexType getIndexType()
public String getLocale()
public String getIndexName()
public Principal getPrincipal()
public char[] getPassword()
public Subject getSubject()
public void setAuthContext(AuthContextLocal authContext)
authContext
- Authentication context for this request.public AuthContextLocal getAuthContext()
public void setSubject(Subject subject)
subject
- Subject.public void setHttpServletRequest(javax.servlet.http.HttpServletRequest servletRequest)
servletRequest
- Servlet request.public javax.servlet.http.HttpServletRequest getHttpServletRequest()
public void setParams(String params)
params
- will be set for the request.public String getParams()
public void setEnvironment(List env)
env
- environment to be set for the request.public List getEnvironment()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.