Package com.avoka.tm.security
Class Saml2ParserResult
- java.lang.Object
-
- com.avoka.tm.security.Saml2ParserResult
-
public class Saml2ParserResult extends Object
The Saml2ParserResult is returned from the Saml2Paser.parse(request) method.- Since:
- 5.1.4
- See Also:
Saml2Parser
-
-
Field Summary
Fields Modifier and Type Field Description String
debugLog
contains a detailed log, including the infoLog entries of the parse operation.Throwable
error
the Throwable when an error occurs during the parsing.String
infoLog
contains a summary log of the parse operation.boolean
isValid
The isValid is true when the parsing has completed successfully without error.String
responseB64Decoded
The SAMLResponse XML (String) after it has been Base64 decoded.String
responseRaw
The raw SAMLResponse (String) taken from the request parameter.SSOAuthToken
ssoAuthToken
The ssoAuthToken (SSOAuthToken) holds the parsed user details from the SAML Response.List<String>
validationErrors
contains a List of the validation error messages.
-
Constructor Summary
Constructors Constructor Description Saml2ParserResult(SSOAuthToken ssoAuthToken, String responseRaw, String responseB64Decoded, Throwable error, List<String> validationErrors, String debugLog, String infoLog)
Creates a immutable Saml2ParserResult.
-
-
-
Field Detail
-
isValid
public final boolean isValid
The isValid is true when the parsing has completed successfully without error.
-
ssoAuthToken
public final SSOAuthToken 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
public final String 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
public final String 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
public final Throwable error
the Throwable when an error occurs during the parsing.
-
debugLog
public final String debugLog
contains a detailed log, including the infoLog entries of the parse operation.
-
infoLog
public final String infoLog
contains a summary log of the parse operation.
-
-
Constructor Detail
-
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.
-
-