diff --git a/saml-core/src/main/java/org/keycloak/saml/processing/core/saml/v2/util/XMLTimeUtil.java b/saml-core/src/main/java/org/keycloak/saml/processing/core/saml/v2/util/XMLTimeUtil.java index 31916ff627..8510d47658 100755 --- a/saml-core/src/main/java/org/keycloak/saml/processing/core/saml/v2/util/XMLTimeUtil.java +++ b/saml-core/src/main/java/org/keycloak/saml/processing/core/saml/v2/util/XMLTimeUtil.java @@ -130,7 +130,7 @@ public class XMLTimeUtil { * @return */ public static long inMilis(int valueInMins) { - return valueInMins * 60 * 1000; + return (long) valueInMins * 60 * 1000; } /** @@ -241,4 +241,4 @@ public class XMLTimeUtil { } } } -} \ No newline at end of file +}