Package swiss.trustbroker.saml.dto
Class ResponseStatus
java.lang.Object
swiss.trustbroker.saml.dto.ResponseStatus
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CpResponse,RpRequest
Base class for CP and RP side status codes.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classResponseStatus.ResponseStatusBuilder<C extends ResponseStatus,B extends ResponseStatus.ResponseStatusBuilder<C, B>> -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionvoidAbort a SAML exchange (script hook).voidAbort a SAML exchange with a message to RP.voidAbort a SAML exchange with a message to RP.booleanaddFeatureCondition(String featureCondition) Script hook: Add single feature condition.booleanaddFeatureCondition(String featureCondition, String parameter) Script hook: Add single feature condition with a nullable parameter.protected booleanvoidcopyAbortConditions(ResponseStatus responseStatus) booleanbooleanfeatureCondition(String featureCondition) Script hook: Get single feature condition parameter.Get all feature conditions.voidfeatureConditions(Map<String, String> featureConditions) Script hook: Toggle features via conditions.voidfeatureConditions(Set<String> featureConditions) Script hook: Toggle features via conditions.Get all feature conditions without parameters.Set by scripts to toggle features, to be consumed by the respective implementations.Optional flow policy to control the abort flow.Usually urn:oasis:names:tc:SAML:2.0:status:ResponderE.g.E.g.booleanhasFeatureCondition(String featureCondition) Script hook: Test single feature condition.inthashCode()booleannestedStatusCode(SamlProperties samlProperties) booleanremoveFeatureCondition(String featureCondition) Script hook: Remove single feature condition.voidReset error page passed as flow policy to abort.voidsetFeatureConditions(Map<String, String> featureConditions) Set by scripts to toggle features, to be consumed by the respective implementations.voidsetFlowPolicy(Flow flowPolicy) Optional flow policy to control the abort flow.voidsetStatusCode(String statusCode) Usually urn:oasis:names:tc:SAML:2.0:status:RespondervoidsetStatusMessage(String statusMessage) E.g.voidsetStatusNestedCode(String statusNestedCode) E.g.booleanstatusMessage(SamlProperties samlProperties) toString()uiFlags()
-
Field Details
-
statusCode
Usually urn:oasis:names:tc:SAML:2.0:status:Responder -
statusNestedCode
E.g. urn:oasis:names:tc:SAML:2.0:status:UnknownAttrProfile -
statusMessage
E.g. SAML Federation not completed due to .... -
flowPolicy
Optional flow policy to control the abort flow.
-
-
Constructor Details
-
ResponseStatus
-
ResponseStatus
public ResponseStatus()
-
-
Method Details
-
abort
Abort a SAML exchange (script hook). -
abort
Abort a SAML exchange with a message to RP. -
abort
public void abort(String statusCode, String statusMessage, String statusNestedCode, Flow flowPolicy) Abort a SAML exchange with a message to RP. -
resetErrorPageStatus
public void resetErrorPageStatus()Reset error page passed as flow policy to abort. -
copyAbortConditions
-
isAborted
public boolean isAborted() -
showErrorPage
public boolean showErrorPage() -
doAppRedirect
public boolean doAppRedirect() -
statusMessage
-
statusMessage
-
nestedStatusCode
-
nestedStatusCode
-
uiErrorCode
-
uiFlags
-
featureConditions
Script hook: Toggle features via conditions.- Since:
- 1.9.0
-
featureConditions
Script hook: Toggle features via conditions.- Since:
- 1.11.0
-
addFeatureCondition
Script hook: Add single feature condition.- Returns:
- true if it was not present before
- Since:
- 1.9.0
-
addFeatureCondition
Script hook: Add single feature condition with a nullable parameter.- Returns:
- true if it was not present before
- Since:
- 1.11.0
-
removeFeatureCondition
Script hook: Remove single feature condition.- Returns:
- true if it was present
- Since:
- 1.9.0
-
hasFeatureCondition
Script hook: Test single feature condition.- Since:
- 1.9.0
-
featureCondition
Script hook: Get single feature condition parameter.- Since:
- 1.11.0
-
featureConditions
Get all feature conditions.- Since:
- 1.11.0
-
featureConditionSet
Get all feature conditions without parameters.- Since:
- 1.11.0
-
getStatusCode
Usually urn:oasis:names:tc:SAML:2.0:status:Responder -
getStatusNestedCode
E.g. urn:oasis:names:tc:SAML:2.0:status:UnknownAttrProfile -
getStatusMessage
E.g. SAML Federation not completed due to .... -
getFlowPolicy
Optional flow policy to control the abort flow. -
getFeatureConditions
Set by scripts to toggle features, to be consumed by the respective implementations.
Potentially breaking changes:- With 1.11.0 This changed from
SettoMap. Scripts that access the getter/setter directly have to be adapted (usefeatureConditionSet,featureConditions).
- Since:
- 1.9.0
- With 1.11.0 This changed from
-
setStatusCode
Usually urn:oasis:names:tc:SAML:2.0:status:Responder -
setStatusNestedCode
E.g. urn:oasis:names:tc:SAML:2.0:status:UnknownAttrProfile -
setStatusMessage
E.g. SAML Federation not completed due to .... -
setFlowPolicy
Optional flow policy to control the abort flow. -
setFeatureConditions
Set by scripts to toggle features, to be consumed by the respective implementations.
Potentially breaking changes:- With 1.11.0 This changed from
SettoMap. Scripts that access the getter/setter directly have to be adapted (usefeatureConditionSet,featureConditions).
- Since:
- 1.9.0
- With 1.11.0 This changed from
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-