Package org.apereo.cas.util
Class CasVersion
- java.lang.Object
-
- org.apereo.cas.util.CasVersion
-
public class CasVersion extends java.lang.ObjectClass that exposes the CAS version. Fetches the "Implementation-Version" manifest attribute from the jar file.- Since:
- 3.0.0
-
-
Constructor Summary
Constructors Constructor Description CasVersion()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringasString()To string.static java.time.ZonedDateTimegetDateTime()Gets last modified date/time for the module.static java.lang.StringgetSpecificationVersion()Gets specification version from the manifest package.static java.lang.StringgetVersion()The full CAS version string.
-
-
-
Method Detail
-
asString
public static java.lang.String asString()
To string.- Returns:
- the string
-
getVersion
public static java.lang.String getVersion()
The full CAS version string.- Returns:
- Return the full CAS version string.
- See Also:
Package.getImplementationVersion()
-
getSpecificationVersion
public static java.lang.String getSpecificationVersion()
Gets specification version from the manifest package.- Returns:
- the specification version
-
getDateTime
public static java.time.ZonedDateTime getDateTime()
Gets last modified date/time for the module.- Returns:
- the date/time
-
-