Class SamlStatus
java.lang.Object
se.swedenconnect.signservice.authn.saml.SamlStatus
A utility class for working with SAML
Status
objects.-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The status code for cancel (defined by the Swedish eID framework). -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the main status code.Gets the minor status code.Gets the status message.getStatusMessage
(String defaultMessage) Gets the status message, and if no such message exists, returns the supplieddefaultMessage
boolean
isCancel()
Predicate telling whether this status object represents a cancelled operation.toString()
-
Field Details
-
CANCEL_STATUS_CODE
The status code for cancel (defined by the Swedish eID framework).- See Also:
-
-
Constructor Details
-
SamlStatus
Constructor.- Parameters:
status
- the status object
-
-
Method Details
-
getMainStatusCode
Gets the main status code.- Returns:
- the main status code
-
getMinorStatusCode
Gets the minor status code.- Returns:
- the minor status code
-
getStatusMessage
Gets the status message.- Returns:
- the status message
-
getStatusMessage
Gets the status message, and if no such message exists, returns the supplieddefaultMessage
- Parameters:
defaultMessage
- the default message- Returns:
- the status message (or the default message if no message is available)
-
isCancel
public boolean isCancel()Predicate telling whether this status object represents a cancelled operation.- Returns:
- true if the status represents a cancelled operation and false otherwise
-
toString
-