blob: 4008e541c09e30700fbcfb20a53b0fb6a075d79f [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="fr">
<head>
<!-- Generated by javadoc (1.8.0_201) on Sat May 02 22:20:02 CEST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JavaEnvironment (Apache Shiro 1.5.3 API)</title>
<meta name="date" content="2020-05-02">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="JavaEnvironment (Apache Shiro 1.5.3 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":41,"i1":41,"i2":41,"i3":41,"i4":41};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/JavaEnvironment.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/shiro/util/InstantiationException.html" title="class in org.apache.shiro.util"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/shiro/util/JdbcUtils.html" title="class in org.apache.shiro.util"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/shiro/util/JavaEnvironment.html" target="_top">Frames</a></li>
<li><a href="JavaEnvironment.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.shiro.util</div>
<h2 title="Class JavaEnvironment" class="title">Class JavaEnvironment</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.shiro.util.JavaEnvironment</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;
<div class="block"><span class="deprecationComment">This class is no longer used in Shiro and will be removed in the next major version.</span></div>
</div>
<br>
<pre><a href="https://docs.oracle.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
public abstract class <a href="../../../../src-html/org/apache/shiro/util/JavaEnvironment.html#line.37">JavaEnvironment</a>
extends <a href="https://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre>
<div class="block">Internal helper class used to find the Java/JDK version
that Shiro is operating within, to allow for automatically
adapting to the present platform's capabilities.
<p>Note that Shiro does not support 1.2 or earlier JVMs - only 1.3 and later.
<p><em>This class was borrowed and heavily based upon a nearly identical version found in
the <a href="http://www.springframework.org/">Spring Framework</a>, with minor modifications.
The original author names and copyright (Apache 2.0) has been left in place. A special
thanks to Rod Johnson, Juergen Hoeller, and Rick Evans for making this available.</em></div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>0.2</dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/util/JavaEnvironment.html#JAVA_13">JAVA_13</a></span></code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Constant identifying the 1.3.x JVM (JDK 1.3).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/util/JavaEnvironment.html#JAVA_14">JAVA_14</a></span></code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Constant identifying the 1.4.x JVM (J2SE 1.4).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/util/JavaEnvironment.html#JAVA_15">JAVA_15</a></span></code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Constant identifying the 1.5 JVM (Java 5).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/util/JavaEnvironment.html#JAVA_16">JAVA_16</a></span></code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Constant identifying the 1.6 JVM (Java 6).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/util/JavaEnvironment.html#JAVA_17">JAVA_17</a></span></code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Constant identifying the 1.7 JVM.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/util/JavaEnvironment.html#JAVA_18">JAVA_18</a></span></code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Constant identifying the 1.8 JVM.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/util/JavaEnvironment.html#JavaEnvironment--">JavaEnvironment</a></span>()</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/util/JavaEnvironment.html#getMajorVersion--">getMajorVersion</a></span>()</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Get the major version code.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/util/JavaEnvironment.html#getVersion--">getVersion</a></span>()</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Return the full Java version string, as returned by
<code>System.getProperty("java.version")</code>.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/util/JavaEnvironment.html#isAtLeastVersion14--">isAtLeastVersion14</a></span>()</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Convenience method to determine if the current JVM is at least Java 1.4.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/util/JavaEnvironment.html#isAtLeastVersion15--">isAtLeastVersion15</a></span>()</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Convenience method to determine if the current JVM is at least
Java 1.5 (Java 5).</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/util/JavaEnvironment.html#isAtLeastVersion16--">isAtLeastVersion16</a></span>()</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Convenience method to determine if the current JVM is at least
Java 1.6 (Java 6).</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="JAVA_13">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>JAVA_13</h4>
<pre>public static final&nbsp;int <a href="../../../../src-html/org/apache/shiro/util/JavaEnvironment.html#line.42">JAVA_13</a></pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Constant identifying the 1.3.x JVM (JDK 1.3).</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.shiro.util.JavaEnvironment.JAVA_13">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="JAVA_14">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>JAVA_14</h4>
<pre>public static final&nbsp;int <a href="../../../../src-html/org/apache/shiro/util/JavaEnvironment.html#line.47">JAVA_14</a></pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Constant identifying the 1.4.x JVM (J2SE 1.4).</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.shiro.util.JavaEnvironment.JAVA_14">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="JAVA_15">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>JAVA_15</h4>
<pre>public static final&nbsp;int <a href="../../../../src-html/org/apache/shiro/util/JavaEnvironment.html#line.52">JAVA_15</a></pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Constant identifying the 1.5 JVM (Java 5).</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.shiro.util.JavaEnvironment.JAVA_15">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="JAVA_16">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>JAVA_16</h4>
<pre>public static final&nbsp;int <a href="../../../../src-html/org/apache/shiro/util/JavaEnvironment.html#line.57">JAVA_16</a></pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Constant identifying the 1.6 JVM (Java 6).</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.shiro.util.JavaEnvironment.JAVA_16">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="JAVA_17">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>JAVA_17</h4>
<pre>public static final&nbsp;int <a href="../../../../src-html/org/apache/shiro/util/JavaEnvironment.html#line.62">JAVA_17</a></pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Constant identifying the 1.7 JVM.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.shiro.util.JavaEnvironment.JAVA_17">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="JAVA_18">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>JAVA_18</h4>
<pre>public static final&nbsp;int <a href="../../../../src-html/org/apache/shiro/util/JavaEnvironment.html#line.67">JAVA_18</a></pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Constant identifying the 1.8 JVM.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.apache.shiro.util.JavaEnvironment.JAVA_18">Constant Field Values</a></dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="JavaEnvironment--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>JavaEnvironment</h4>
<pre>public&nbsp;<a href="../../../../src-html/org/apache/shiro/util/JavaEnvironment.html#line.37">JavaEnvironment</a>()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getVersion--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVersion</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../src-html/org/apache/shiro/util/JavaEnvironment.html#line.114">getVersion</a>()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Return the full Java version string, as returned by
<code>System.getProperty("java.version")</code>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the full Java version string</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="https://docs.oracle.com/javase/6/docs/api/java/lang/System.html?is-external=true#getProperty-java.lang.String-" title="class or interface in java.lang"><code>System.getProperty(String)</code></a></dd>
</dl>
</li>
</ul>
<a name="getMajorVersion--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMajorVersion</h4>
<pre>public static&nbsp;int&nbsp;<a href="../../../../src-html/org/apache/shiro/util/JavaEnvironment.html#line.130">getMajorVersion</a>()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Get the major version code. This means we can do things like
<code>if (getMajorVersion() < JAVA_14)</code>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a code comparable to the JAVA_XX codes in this class</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/apache/shiro/util/JavaEnvironment.html#JAVA_13"><code>JAVA_13</code></a>,
<a href="../../../../org/apache/shiro/util/JavaEnvironment.html#JAVA_14"><code>JAVA_14</code></a>,
<a href="../../../../org/apache/shiro/util/JavaEnvironment.html#JAVA_15"><code>JAVA_15</code></a>,
<a href="../../../../org/apache/shiro/util/JavaEnvironment.html#JAVA_16"><code>JAVA_16</code></a>,
<a href="../../../../org/apache/shiro/util/JavaEnvironment.html#JAVA_17"><code>JAVA_17</code></a>,
<a href="../../../../org/apache/shiro/util/JavaEnvironment.html#JAVA_18"><code>JAVA_18</code></a></dd>
</dl>
</li>
</ul>
<a name="isAtLeastVersion14--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isAtLeastVersion14</h4>
<pre>public static&nbsp;boolean&nbsp;<a href="../../../../src-html/org/apache/shiro/util/JavaEnvironment.html#line.145">isAtLeastVersion14</a>()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Convenience method to determine if the current JVM is at least Java 1.4.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if the current JVM is at least Java 1.4</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/apache/shiro/util/JavaEnvironment.html#getMajorVersion--"><code>getMajorVersion()</code></a>,
<a href="../../../../org/apache/shiro/util/JavaEnvironment.html#JAVA_14"><code>JAVA_14</code></a>,
<a href="../../../../org/apache/shiro/util/JavaEnvironment.html#JAVA_15"><code>JAVA_15</code></a>,
<a href="../../../../org/apache/shiro/util/JavaEnvironment.html#JAVA_16"><code>JAVA_16</code></a>,
<a href="../../../../org/apache/shiro/util/JavaEnvironment.html#JAVA_17"><code>JAVA_17</code></a>,
<a href="../../../../org/apache/shiro/util/JavaEnvironment.html#JAVA_18"><code>JAVA_18</code></a></dd>
</dl>
</li>
</ul>
<a name="isAtLeastVersion15--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isAtLeastVersion15</h4>
<pre>public static&nbsp;boolean&nbsp;<a href="../../../../src-html/org/apache/shiro/util/JavaEnvironment.html#line.160">isAtLeastVersion15</a>()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Convenience method to determine if the current JVM is at least
Java 1.5 (Java 5).</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if the current JVM is at least Java 1.5</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/apache/shiro/util/JavaEnvironment.html#getMajorVersion--"><code>getMajorVersion()</code></a>,
<a href="../../../../org/apache/shiro/util/JavaEnvironment.html#JAVA_15"><code>JAVA_15</code></a>,
<a href="../../../../org/apache/shiro/util/JavaEnvironment.html#JAVA_16"><code>JAVA_16</code></a>,
<a href="../../../../org/apache/shiro/util/JavaEnvironment.html#JAVA_17"><code>JAVA_17</code></a>,
<a href="../../../../org/apache/shiro/util/JavaEnvironment.html#JAVA_18"><code>JAVA_18</code></a></dd>
</dl>
</li>
</ul>
<a name="isAtLeastVersion16--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>isAtLeastVersion16</h4>
<pre>public static&nbsp;boolean&nbsp;<a href="../../../../src-html/org/apache/shiro/util/JavaEnvironment.html#line.177">isAtLeastVersion16</a>()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Convenience method to determine if the current JVM is at least
Java 1.6 (Java 6).</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if the current JVM is at least Java 1.6</dd>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>1.2</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../org/apache/shiro/util/JavaEnvironment.html#getMajorVersion--"><code>getMajorVersion()</code></a>,
<a href="../../../../org/apache/shiro/util/JavaEnvironment.html#JAVA_15"><code>JAVA_15</code></a>,
<a href="../../../../org/apache/shiro/util/JavaEnvironment.html#JAVA_16"><code>JAVA_16</code></a>,
<a href="../../../../org/apache/shiro/util/JavaEnvironment.html#JAVA_17"><code>JAVA_17</code></a>,
<a href="../../../../org/apache/shiro/util/JavaEnvironment.html#JAVA_18"><code>JAVA_18</code></a></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/JavaEnvironment.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/shiro/util/InstantiationException.html" title="class in org.apache.shiro.util"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/shiro/util/JdbcUtils.html" title="class in org.apache.shiro.util"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/shiro/util/JavaEnvironment.html" target="_top">Frames</a></li>
<li><a href="JavaEnvironment.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2004&#x2013;2020 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>