public class InfoboxReadResponseParser extends Object
<InfoboxReadResponse>.| Constructor and Description |
|---|
InfoboxReadResponseParser(InputStream is)
Parses and validates the document given as stream and extracts the
root element.
|
InfoboxReadResponseParser(String xmlResponse)
Parses and validates the document given as string and extracts the
root element.
|
| Modifier and Type | Method and Description |
|---|---|
iaik.x509.X509Certificate |
parseCertificate()
Returns the certificate given in the InfoboxReadResponse
|
IdentityLink |
parseIdentityLink()
Parses the identity link from the
<saml:Assertion> |
Element |
parseSAMLAssertion()
Parses the embedded
<saml:Assertion> element from <InfoboxReadResponse> |
public InfoboxReadResponseParser(String xmlResponse) throws ParseException, AuthenticationException
xmlResponse - <InfoboxReadResponse> as StringParseException - If an element cannot be parsedAuthenticationException - If any authentication error occurspublic InfoboxReadResponseParser(InputStream is) throws ParseException, AuthenticationException
is - <InfoboxReadResponse> as InputStreamParseException - If an element cannot be parsedAuthenticationException - If any authentication error occurspublic Element parseSAMLAssertion() throws ParseException
<saml:Assertion> element from <InfoboxReadResponse><saml:Assertion> as StringParseException - on any parsing errorpublic IdentityLink parseIdentityLink() throws ParseException
<saml:Assertion>ParseException - on any parsing errorpublic iaik.x509.X509Certificate parseCertificate()
throws ParseException
ParseExceptionCopyright © 2016. All Rights Reserved.