Package org.keycloak.compatibility
Interface CompatibilityResult
public interface CompatibilityResult
The result of
CompatibilityMetadataProvider.isCompatible(Map)
.
It is composed by the exit code (to help building scripts around this tool as it is easier than parsing logs), and an optional error message.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionint
exitCode()
static CompatibilityResult
incompatibleAttribute
(String providerId, String attribute, String previousValue, String currentValue) static CompatibilityResult
providerCompatible
(String providerId)
-
Method Details
-
exitCode
int exitCode()- Returns:
- The exit code to use to signal the compatibility result.
-
errorMessage
- Returns:
- An optional error message explaining what caused the incompatibility.
-
endMessage
- Returns:
- An optional message after the check is finished.
-
providerCompatible
-
incompatibleAttribute
static CompatibilityResult incompatibleAttribute(String providerId, String attribute, String previousValue, String currentValue)
-