InfoboxValidationResult
public class InfoboxValidationResultImpl extends Object implements InfoboxValidationResult
InfoboxValidationResult
interface.Modifier and Type | Field | Description |
---|---|---|
protected String |
errorMessage_ |
The error message.
|
protected at.gv.egovernment.moa.id.commons.api.data.ExtendedSAMLAttribute[] |
extendedSamlAttributes_ |
The SAML attributes returned by the infobox validator.
|
protected boolean |
valid_ |
Indicates whether the validation was successful or not.
|
Constructor | Description |
---|---|
InfoboxValidationResultImpl() |
Empty constructor.
|
InfoboxValidationResultImpl(boolean valid,
at.gv.egovernment.moa.id.commons.api.data.ExtendedSAMLAttribute[] extendedSamlAttributes,
String errorMessage) |
Constructor to set all values.
|
Modifier and Type | Method | Description |
---|---|---|
String |
getErrorMessage() |
A short error description that should be displayed by MOA-ID if
validation of the InfoBoxReadResponse fails.
|
at.gv.egovernment.moa.id.commons.api.data.ExtendedSAMLAttribute[] |
getExtendedSamlAttributes() |
Returns an array of
ExtendedSAMLAttributes that should be added to the SAML-Assertion
provided to the online application. |
boolean |
isValid() |
The method returns
true if validation succeeds. |
void |
setErrorMessage(String errorMessage) |
Sets the error message if validation fails..
|
void |
setExtendedSamlAttributes(at.gv.egovernment.moa.id.commons.api.data.ExtendedSAMLAttribute[] extendedSamlAttributes) |
Sets the SAML attributes returned by the infobox validatior..
|
void |
setValid(boolean valid) |
Sets validation result..
|
protected boolean valid_
protected String errorMessage_
protected at.gv.egovernment.moa.id.commons.api.data.ExtendedSAMLAttribute[] extendedSamlAttributes_
public InfoboxValidationResultImpl()
public InfoboxValidationResultImpl(boolean valid, at.gv.egovernment.moa.id.commons.api.data.ExtendedSAMLAttribute[] extendedSamlAttributes, String errorMessage)
valid
- Global validation result.extendedSamlAttributes
- SAML attributes that should be appended to the final
SAML Assertion
or to the AUTH Block
or to both.errorMessage
- An error message if infobox validation fails.public String getErrorMessage()
InfoboxValidationResult
getErrorMessage
in interface InfoboxValidationResult
InfoboxValidationResult.getErrorMessage()
public at.gv.egovernment.moa.id.commons.api.data.ExtendedSAMLAttribute[] getExtendedSamlAttributes()
InfoboxValidationResult
ExtendedSAMLAttributes
that should be added to the SAML-Assertion
provided to the online application.
The SAML-Attributes in that array will be added to the final
SAML-Assertion, the AUTH-Block, or both, exactly in the order as they are arranged
in the array this method returns.getExtendedSamlAttributes
in interface InfoboxValidationResult
ExtendedSAMLAttributes
that should be added to the SAML-Assertion
provided to the online application, the AUTH-Block, or both. If no attributes should
be added this array maybe null
or empty.InfoboxValidationResult.getExtendedSamlAttributes()
public boolean isValid()
InfoboxValidationResult
true
if validation succeeds. In that case
method InfoboxValidationResult.getExtendedSamlAttributes()
may provide an array of
ExtendedSAMLAttributes
that should be appended to the final SAML-Assertion or the
AUTH-Block or to both.
false
if validation fails. In that case
method InfoboxValidationResult.getErrorMessage()
has to provide a short error description.isValid
in interface InfoboxValidationResult
True
if validation succeeds,
otherwise false
.InfoboxValidationResult.isValid()
public void setErrorMessage(String errorMessage)
errorMessage
- The error message to set.public void setExtendedSamlAttributes(at.gv.egovernment.moa.id.commons.api.data.ExtendedSAMLAttribute[] extendedSamlAttributes)
extendedSamlAttributes
- The SAML attributes returned by the infobox validator.public void setValid(boolean valid)
valid
- True
if the infobox could be validated successfully,
otherwise false
.Copyright © 2019. All rights reserved.