| Modifier and Type | Class and Description |
|---|---|
| public static enum | VersionFinder.
The operating system type. |
| Modifier and Type | Field and Description |
|---|---|
| public static final boolean | JAVA_IS_EA_VERSION
Java is EA release -- true for "11-ea", etc. |
| public static final int | JAVA_MAJOR_VERSION
Java major version -- 7 for "1.7", 8 for "1.8.0_244", 9 for "9", 11 for "11-ea", etc. |
| public static final int | JAVA_MINOR_VERSION
Java minor version -- 0 for "11.0.4" |
| public static final int | JAVA_SUB_VERSION
Java minor version -- 4 for "11.0.4" |
| public static final String | JAVA_VERSION
Java version string. |
| private static final String | MAVEN_ARTIFACT
The Maven artifact for ClassGraph. |
| private static final String | MAVEN_PACKAGE
The Maven package for ClassGraph. |
| public static final VersionFinder. | OS
The operating system type. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String | Returns: the property valuethe property name propName)Get a system property (returning null if a SecurityException was thrown). |
| public static String | Returns: the property value, or the default if the property is not defined.the property name propName, final String the default value for the property defaultVal)Get a system property (returning null if a SecurityException was thrown). |
| private static DocumentBuilderFactory | Returns: DocumentBuilderFactoryHelper method to provide a XXE secured DocumentBuilder Factory. |
| private static XPathFactory | Returns: XPathFactoryHelper method to provide a XXE secured XPathFactory Factory. |
| public static synchronized String |
| JAVA_IS_EA_VERSION | back to summary |
|---|---|
| public static final boolean JAVA_IS_EA_VERSION Java is EA release -- true for "11-ea", etc. | |
| JAVA_MAJOR_VERSION | back to summary |
|---|---|
| public static final int JAVA_MAJOR_VERSION Java major version -- 7 for "1.7", 8 for "1.8.0_244", 9 for "9", 11 for "11-ea", etc. | |
| JAVA_MINOR_VERSION | back to summary |
|---|---|
| public static final int JAVA_MINOR_VERSION Java minor version -- 0 for "11.0.4" | |
| JAVA_SUB_VERSION | back to summary |
|---|---|
| public static final int JAVA_SUB_VERSION Java minor version -- 4 for "11.0.4" | |
| JAVA_VERSION | back to summary |
|---|---|
| public static final String JAVA_VERSION Java version string. | |
| MAVEN_ARTIFACT | back to summary |
|---|---|
| private static final String MAVEN_ARTIFACT The Maven artifact for ClassGraph. | |
| MAVEN_PACKAGE | back to summary |
|---|---|
| private static final String MAVEN_PACKAGE The Maven package for ClassGraph. | |
| OS | back to summary |
|---|---|
| public static final VersionFinder. The operating system type. | |
| VersionFinder | back to summary |
|---|---|
| private VersionFinder() Constructor. | |
| getProperty | back to summary |
|---|---|
| public static String getProperty(final String propName) Get a system property (returning null if a SecurityException was thrown). | |
| getProperty | back to summary |
|---|---|
| public static String getProperty(final String propName, final String defaultVal) Get a system property (returning null if a SecurityException was thrown). | |
| getSecureDocumentBuilderFactory | back to summary |
|---|---|
| private static DocumentBuilderFactory getSecureDocumentBuilderFactory() throws ParserConfigurationException Helper method to provide a XXE secured DocumentBuilder Factory. reference - https://gist.github.com/AlainODea/1779a7c6a26a5c135280bc9b3b71868f reference - https://rules.sonarsource.com/java/tag/owasp/RSPEC-2755
| |
| getSecureXPathFactory | back to summary |
|---|---|
| private static XPathFactory getSecureXPathFactory() throws XPathFactoryConfigurationException Helper method to provide a XXE secured XPathFactory Factory. reference - https://rules.sonarsource.com/java/tag/owasp/RSPEC-2755
| |
| getVersion | back to summary |
|---|---|
| public static synchronized String getVersion() Get the version number of ClassGraph.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final VersionFinder. | BSD
BSD. |
| public static final VersionFinder. | Linux
Linux. |
| public static final VersionFinder. | MacOSX
Mac OS X. |
| public static final VersionFinder. | Solaris
Solaris. |
| public static final VersionFinder. | Unix
Unix or AIX. |
| public static final VersionFinder. | Unknown
Unknown. |
| public static final VersionFinder. | Windows
Windows. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static VersionFinder. | |
| public static VersionFinder. |
| BSD | back to summary |
|---|---|
| public static final VersionFinder. BSD. | |
| Linux | back to summary |
|---|---|
| public static final VersionFinder. Linux. | |
| MacOSX | back to summary |
|---|---|
| public static final VersionFinder. Mac OS X. | |
| Solaris | back to summary |
|---|---|
| public static final VersionFinder. Solaris. | |
| Unix | back to summary |
|---|---|
| public static final VersionFinder. Unix or AIX. | |
| Unknown | back to summary |
|---|---|
| public static final VersionFinder. Unknown. | |
| Windows | back to summary |
|---|---|
| public static final VersionFinder. Windows. | |
| OperatingSystem | back to summary |
|---|---|
| private OperatingSystem() | |
| valueOf | back to summary |
|---|---|
| public static VersionFinder. | |
| values | back to summary |
|---|---|
| public static VersionFinder. | |