public class RequestSecurityTokenResponse extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
appliesTo |
protected String |
issuer |
protected String |
recipient |
protected RequestedSecurityToken |
token |
protected boolean |
valid |
protected boolean |
validationDone |
Constructor and Description |
---|
RequestSecurityTokenResponse(Element root)
Creates a new instance of RequestSecurityTokenResponse (RSTR) from a DOM
Element
|
RequestSecurityTokenResponse(RequestedSecurityToken token)
Creates a new instance of RequestSecurityTokenResponse (RSTR).
|
RequestSecurityTokenResponse(RequestedSecurityToken token,
String appliesTo)
Creates a new instance of RequestSecurityTokenResponse (RSTR).
|
Modifier and Type | Method and Description |
---|---|
String |
getAppliesTo()
This method returns the intended consumer of the RSTR
|
RequestedSecurityToken |
getRequestedSecurityToken()
This method returns the component RequestedSecurityToken
|
static RequestSecurityTokenResponse |
parseXML(InputStream is)
Returns RequestSecurityTokenResponse object based on the data in the
input stream.
|
static RequestSecurityTokenResponse |
parseXML(String xml)
Returns RequestSecurityTokenResponse object based on the XML document
received from server.
|
String |
toString()
This method marshalls the RSTR, returning a String comprising the textual
XML representation.
|
protected boolean valid
protected String recipient
protected boolean validationDone
protected String appliesTo
protected String issuer
protected RequestedSecurityToken token
public RequestSecurityTokenResponse(RequestedSecurityToken token, String appliesTo)
token
- the <RequestedSecurityToken> for the RSTRappliesTo
- the consumer of the RSTRpublic RequestSecurityTokenResponse(RequestedSecurityToken token)
token
- the <RequestedSecurityToken> for the RSTRpublic RequestSecurityTokenResponse(Element root) throws WSFederationException
root
- <RequestedSecurityToken> elementWSFederationException
- if an error occurs.public static RequestSecurityTokenResponse parseXML(String xml) throws WSFederationException
xml
- The RequestSecurityTokenResponse XML document String.WSFederationException
- if XML parsing failedpublic static RequestSecurityTokenResponse parseXML(InputStream is) throws WSFederationException
is
- an InputStreamWSFederationException
- if XML parsing failedpublic RequestedSecurityToken getRequestedSecurityToken()
public String getAppliesTo()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.