001/* 002 * SPDX-FileCopyrightText: none 003 * SPDX-License-Identifier: CC0-1.0 004 */ 005 006package gov.nist.secauto.oscal.lib; 007 008import gov.nist.secauto.metaschema.core.util.IVersionInfo; 009 010/** 011 * Provides version information for the underlying OSCAL implementation used by this library. 012 */ 013public final class OscalVersion implements IVersionInfo { 014 private static final String NAME = "oscal"; 015 private static final String BUILD_TIMESTAMP = "2024-11-26 16:40"; 016 private static final String COMMIT = "b123c11"; 017 private static final String BRANCH = "b123c11bd12c8b8f1bcc8bf85763e5775c0423e9"; 018 private static final String CLOSEST_TAG = "v1.1.3"; 019 private static final String ORIGIN = "https://github.com/usnistgov/OSCAL.git"; 020 021 @Override 022 public String getName() { 023 return NAME; 024 } 025 026 @Override 027 public String getVersion() { 028 return CLOSEST_TAG; 029 } 030 031 @Override 032 public String getBuildTimestamp() { 033 return BUILD_TIMESTAMP; 034 } 035 036 @Override 037 public String getGitOriginUrl() { 038 return ORIGIN; 039 } 040 041 @Override 042 public String getGitCommit() { 043 return COMMIT; 044 } 045 046 @Override 047 public String getGitBranch() { 048 return BRANCH; 049 } 050 051 @Override 052 public String getGitClosestTag() { 053 return CLOSEST_TAG; 054 } 055}