// Path: ESignCore/src/main/java/tr/gov/turkiye/esign/enums/OSVersion.java
// public enum OSVersion {SPARC, SPARC_V9};
// 
// Path: ESignCore/src/main/java/tr/gov/turkiye/esign/enums/OSNames.java
// public enum OSNames {WINDOWS, LINUX, MACOS, OTHER, SOLARIS};
// 
// Path: ESignCore/src/main/java/tr/gov/turkiye/esign/enums/OSArch.java
// public enum OSArch {_32BIT, _64BIT};


import tr.gov.turkiye.esign.enums.OSNames;
import tr.gov.turkiye.esign.enums.OSArch;
import java.util.Locale;
import tr.gov.turkiye.esign.enums.OSVersion;
            return OSNames.SOLARIS;
        }else{
            return OSNames.OTHER;
        }
    }
    
    /**
     * Gets bits of operating system.
     * 
     * @return 
     */
    public static OSArch getSystemOSArch() {
        String osAcrh = System.getProperty("os.arch").toLowerCase(Locale.ENGLISH);
        if (osAcrh.contains("64")) {
            return OSArch._64BIT;
        } else {
            return OSArch._32BIT;
        }
    }
    
    /**
     * Gets system version from Solaris operation system.
     * 
     * @return 
     */
    public static OSVersion getSystemOSVersionForSolaris() {
        String osVersion = System.getProperty("os.version").toLowerCase(Locale.ENGLISH);
        if (osVersion.contains("V9")) {
            return OSVersion.SPARC_V9;
        } else{
// Path: ESignCore/src/main/java/tr/gov/turkiye/esign/enums/OSVersion.java
// public enum OSVersion {SPARC, SPARC_V9};
// 
// Path: ESignCore/src/main/java/tr/gov/turkiye/esign/enums/OSNames.java
// public enum OSNames {WINDOWS, LINUX, MACOS, OTHER, SOLARIS};
// 
// Path: ESignCore/src/main/java/tr/gov/turkiye/esign/enums/OSArch.java
// public enum OSArch {_32BIT, _64BIT};


// Path: ESignCore/src/main/java/tr/gov/turkiye/esign/statics/OS.java
import tr.gov.turkiye.esign.enums.OSNames;
import tr.gov.turkiye.esign.enums.OSArch;
import java.util.Locale;
import tr.gov.turkiye.esign.enums.OSVersion;

            return OSNames.SOLARIS;
        }else{
            return OSNames.OTHER;
        }
    }
    
    /**
     * Gets bits of operating system.
     * 
     * @return 
     */
    public static OSArch getSystemOSArch() {
        String osAcrh = System.getProperty("os.arch").toLowerCase(Locale.ENGLISH);
        if (osAcrh.contains("64")) {
            return OSArch._64BIT;
        } else {
            return OSArch._32BIT;
        }
    }
    
    /**
     * Gets system version from Solaris operation system.
     * 
     * @return 
     */
    public static OSVersion getSystemOSVersionForSolaris() {
        String osVersion = System.getProperty("os.version").toLowerCase(Locale.ENGLISH);
        if (osVersion.contains("V9")) {
            return OSVersion.SPARC_V9;
        } else{
            return OSVersion.SPARC;