Package com.avoka.tm.security
Class Saml2ParserResult
java.lang.Object
com.avoka.tm.security.Saml2ParserResult
The Saml2ParserResult is returned from the Saml2Paser.parse(request) method.
- Since:
- 5.1.4
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionfinal String
contains a detailed log, including the infoLog entries of the parse operation.final Throwable
the Throwable when an error occurs during the parsing.final String
contains a summary log of the parse operation.final boolean
The isValid is true when the parsing has completed successfully without error.final String
The SAMLResponse XML (String) after it has been Base64 decoded.final String
The raw SAMLResponse (String) taken from the request parameter.final SsoAuthToken
The ssoAuthToken (SsoAuthToken) holds the parsed user details from the SAML Response.contains a List of the validation error messages. -
Constructor Summary
ConstructorDescriptionSaml2ParserResult
(SsoAuthToken ssoAuthToken, String responseRaw, String responseB64Decoded, Throwable error, List<String> validationErrors, String debugLog, String infoLog) Creates a immutable Saml2ParserResult. -
Method Summary
-
Field Details
-
isValid
public final boolean isValidThe isValid is true when the parsing has completed successfully without error. -
ssoAuthToken
The ssoAuthToken (SsoAuthToken) holds the parsed user details from the SAML Response. If isValid == false then it will be null.If is valid the Security Manager Get SSO Auth Token should return this object
-
responseRaw
The raw SAMLResponse (String) taken from the request parameter.Save this to the SecurityLogger when troubleshooting. This can be useful for debug the Saml2Parser in a separate unit test
-
responseB64Decoded
The SAMLResponse XML (String) after it has been Base64 decoded. Save this to the SecurityLogger it is useful for troubleshooting the structure of the SAML token. -
error
the Throwable when an error occurs during the parsing. -
debugLog
contains a detailed log, including the infoLog entries of the parse operation. -
infoLog
contains a summary log of the parse operation. -
validationErrors
contains a List of the validation error messages.
-
-
Constructor Details
-
Saml2ParserResult
public Saml2ParserResult(SsoAuthToken ssoAuthToken, String responseRaw, String responseB64Decoded, Throwable error, List<String> validationErrors, String debugLog, String infoLog) Creates a immutable Saml2ParserResult.- Parameters:
ssoAuthToken
- the SsoAuthToken that holds the parsed user details from the SAML Response.responseRaw
- the String raw SAMLResponse taken from the request parameter.responseB64Decoded
- the String SAMLResonse XML after it is has been Base64 decoded.error
- the Throwable associated with a failure to parse the SAML ResponsevalidationErrors
- a String List or validationError entries. Each String entry contains a type, a path to the node in the SAML Response relates to, an error context message, if an exception was caught the e.message() and the stack trace.debugLog
- the String detailed log including the infoLog entries for the parse operationinfoLog
- the String summary log of the parse operation.
-