| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (1.8.0_92) on Mon Nov 14 15:04:19 EST 2016 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>AbstractHash (Apache Shiro 1.4.0-RC2 API)</title> |
| <meta name="date" content="2016-11-14"> |
| <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="AbstractHash (Apache Shiro 1.4.0-RC2 API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":42,"i1":38,"i2":42,"i3":42,"i4":42,"i5":42,"i6":42,"i7":42,"i8":42,"i9":42,"i10":42,"i11":42}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract 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/AbstractHash.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>Prev Class</li> |
| <li><a href="../../../../../org/apache/shiro/crypto/hash/ConfigurableHashService.html" title="interface in org.apache.shiro.crypto.hash"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/shiro/crypto/hash/AbstractHash.html" target="_top">Frames</a></li> |
| <li><a href="AbstractHash.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../allclasses-noframe.html">All 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: </li> |
| <li>Nested | </li> |
| <li><a href="#fields.inherited.from.class.org.apache.shiro.codec.CodecSupport">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </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.crypto.hash</div> |
| <h2 title="Class AbstractHash" class="title">Class AbstractHash</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="http://java.sun.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><a href="../../../../../org/apache/shiro/codec/CodecSupport.html" title="class in org.apache.shiro.codec">org.apache.shiro.codec.CodecSupport</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.shiro.crypto.hash.AbstractHash</li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><a href="http://java.sun.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="../../../../../org/apache/shiro/crypto/hash/Hash.html" title="interface in org.apache.shiro.crypto.hash">Hash</a>, <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></dd> |
| </dl> |
| <dl> |
| <dt>Direct Known Subclasses:</dt> |
| <dd><a href="../../../../../org/apache/shiro/crypto/hash/SimpleHash.html" title="class in org.apache.shiro.crypto.hash">SimpleHash</a></dd> |
| </dl> |
| <hr> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> |
| <div class="block"><span class="deprecationComment">in Shiro 1.1 in favor of using the concrete <a href="../../../../../org/apache/shiro/crypto/hash/SimpleHash.html" title="class in org.apache.shiro.crypto.hash"><code>SimpleHash</code></a> implementation directly.</span></div> |
| </div> |
| <br> |
| <pre><a href="http://java.sun.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/crypto/hash/AbstractHash.html#line.47">AbstractHash</a> |
| extends <a href="../../../../../org/apache/shiro/codec/CodecSupport.html" title="class in org.apache.shiro.codec">CodecSupport</a> |
| implements <a href="../../../../../org/apache/shiro/crypto/hash/Hash.html" title="interface in org.apache.shiro.crypto.hash">Hash</a>, <a href="http://java.sun.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></pre> |
| <div class="block">Provides a base for all Shiro Hash algorithms with support for salts and multiple hash iterations. |
| <p/> |
| Read |
| <a href="http://www.owasp.org/index.php/Hashing_Java" target="blank">http://www.owasp.org/index.php/Hashing_Java</a> |
| for a good article on the benefits of hashing, including what a 'salt' is as well as why it and multiple hash |
| iterations can be useful. |
| <p/> |
| This class and its subclasses support hashing with additional capabilities of salting and multiple iterations via |
| overloaded constructors.</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>0.9</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../serialized-form.html#org.apache.shiro.crypto.hash.AbstractHash">Serialized Form</a></dd> |
| </dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="nested.class.summary"> |
| <!-- --> |
| </a> |
| <h3>Nested Class Summary</h3> |
| <ul class="blockList"> |
| <li class="blockList"><a name="nested.classes.inherited.from.class.org.apache.shiro.util.ByteSource"> |
| <!-- --> |
| </a> |
| <h3>Nested classes/interfaces inherited from interface org.apache.shiro.util.<a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></h3> |
| <code><a href="../../../../../org/apache/shiro/util/ByteSource.Util.html" title="class in org.apache.shiro.util">ByteSource.Util</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <ul class="blockList"> |
| <li class="blockList"><a name="fields.inherited.from.class.org.apache.shiro.codec.CodecSupport"> |
| <!-- --> |
| </a> |
| <h3>Fields inherited from class org.apache.shiro.codec.<a href="../../../../../org/apache/shiro/codec/CodecSupport.html" title="class in org.apache.shiro.codec">CodecSupport</a></h3> |
| <code><a href="../../../../../org/apache/shiro/codec/CodecSupport.html#PREFERRED_ENCODING">PREFERRED_ENCODING</a></code></li> |
| </ul> |
| </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"> </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/crypto/hash/AbstractHash.html#AbstractHash--">AbstractHash</a></span>()</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Creates an new instance without any of its properties set (no hashing is performed).</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#AbstractHash-java.lang.Object-">AbstractHash</a></span>(<a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> source)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Creates a hash of the specified <code>source</code> with no <code>salt</code> using a single hash iteration.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#AbstractHash-java.lang.Object-java.lang.Object-">AbstractHash</a></span>(<a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> source, |
| <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> salt)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Creates a hash of the specified <code>source</code> using the given <code>salt</code> using a single hash iteration.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#AbstractHash-java.lang.Object-java.lang.Object-int-">AbstractHash</a></span>(<a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> source, |
| <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> salt, |
| int hashIterations)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Creates a hash of the specified <code>source</code> using the given <code>salt</code> a total of |
| <code>hashIterations</code> times.</div> |
| </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"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd"> </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>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#equals-java.lang.Object-">equals</a></span>(<a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Returns <code>true</code> if the specified object is a Hash and its <a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#getBytes--"><code>byte array</code></a> is identical to |
| this Hash's byte array, <code>false</code> otherwise.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>abstract <a href="http://java.sun.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/crypto/hash/AbstractHash.html#getAlgorithmName--">getAlgorithmName</a></span>()</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Implemented by subclasses, this specifies the <a href="http://java.sun.com/javase/6/docs/api/java/security/MessageDigest.html?is-external=true" title="class or interface in java.security"><code>MessageDigest</code></a> algorithm name |
| to use when performing the hash.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>byte[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#getBytes--">getBytes</a></span>()</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Returns the wrapped byte array.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>protected <a href="http://java.sun.com/javase/6/docs/api/java/security/MessageDigest.html?is-external=true" title="class or interface in java.security">MessageDigest</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#getDigest-java.lang.String-">getDigest</a></span>(<a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> algorithmName)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Returns the JDK MessageDigest instance to use for executing the hash.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>protected byte[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#hash-byte:A-">hash</a></span>(byte[] bytes)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Hashes the specified byte array without a salt for a single iteration.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>protected byte[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#hash-byte:A-byte:A-">hash</a></span>(byte[] bytes, |
| byte[] salt)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Hashes the specified byte array using the given <code>salt</code> for a single iteration.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>protected byte[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#hash-byte:A-byte:A-int-">hash</a></span>(byte[] bytes, |
| byte[] salt, |
| int hashIterations)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Hashes the specified byte array using the given <code>salt</code> for the specified number of iterations.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#hashCode--">hashCode</a></span>()</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Simply returns toHex().hashCode();</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#setBytes-byte:A-">setBytes</a></span>(byte[] alreadyHashedBytes)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Sets the raw bytes stored by this hash instance.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code><a href="http://java.sun.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/crypto/hash/AbstractHash.html#toBase64--">toBase64</a></span>()</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Returns a Base64-encoded string of the underlying <a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#getBytes--"><code>byte array</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code><a href="http://java.sun.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/crypto/hash/AbstractHash.html#toHex--">toHex</a></span>()</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Returns a hex-encoded string of the underlying <a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#getBytes--"><code>byte array</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code><a href="http://java.sun.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/crypto/hash/AbstractHash.html#toString--">toString</a></span>()</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Simple implementation that merely returns <a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#toHex--"><code>toHex()</code></a>.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.apache.shiro.codec.CodecSupport"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class org.apache.shiro.codec.<a href="../../../../../org/apache/shiro/codec/CodecSupport.html" title="class in org.apache.shiro.codec">CodecSupport</a></h3> |
| <code><a href="../../../../../org/apache/shiro/codec/CodecSupport.html#isByteSource-java.lang.Object-">isByteSource</a>, <a href="../../../../../org/apache/shiro/codec/CodecSupport.html#objectToBytes-java.lang.Object-">objectToBytes</a>, <a href="../../../../../org/apache/shiro/codec/CodecSupport.html#objectToString-java.lang.Object-">objectToString</a>, <a href="../../../../../org/apache/shiro/codec/CodecSupport.html#toBytes-char:A-">toBytes</a>, <a href="../../../../../org/apache/shiro/codec/CodecSupport.html#toBytes-char:A-java.lang.String-">toBytes</a>, <a href="../../../../../org/apache/shiro/codec/CodecSupport.html#toBytes-java.io.File-">toBytes</a>, <a href="../../../../../org/apache/shiro/codec/CodecSupport.html#toBytes-java.io.InputStream-">toBytes</a>, <a href="../../../../../org/apache/shiro/codec/CodecSupport.html#toBytes-java.lang.Object-">toBytes</a>, <a href="../../../../../org/apache/shiro/codec/CodecSupport.html#toBytes-java.lang.String-">toBytes</a>, <a href="../../../../../org/apache/shiro/codec/CodecSupport.html#toBytes-java.lang.String-java.lang.String-">toBytes</a>, <a href="../../../../../org/apache/shiro/codec/CodecSupport.html#toChars-byte:A-">toChars</a>, <a href="../../../../../org/apache/shiro/codec/CodecSupport.html#toChars-byte:A-java.lang.String-">toChars</a>, <a href="../../../../../org/apache/shiro/codec/CodecSupport.html#toString-byte:A-">toString</a>, <a href="../../../../../org/apache/shiro/codec/CodecSupport.html#toString-byte:A-java.lang.String-">toString</a>, <a href="../../../../../org/apache/shiro/codec/CodecSupport.html#toString-java.lang.Object-">toString</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="http://java.sun.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="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://java.sun.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="http://java.sun.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> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.apache.shiro.crypto.hash.Hash"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from interface org.apache.shiro.crypto.hash.<a href="../../../../../org/apache/shiro/crypto/hash/Hash.html" title="interface in org.apache.shiro.crypto.hash">Hash</a></h3> |
| <code><a href="../../../../../org/apache/shiro/crypto/hash/Hash.html#getIterations--">getIterations</a>, <a href="../../../../../org/apache/shiro/crypto/hash/Hash.html#getSalt--">getSalt</a></code></li> |
| </ul> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.apache.shiro.util.ByteSource"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from interface org.apache.shiro.util.<a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></h3> |
| <code><a href="../../../../../org/apache/shiro/util/ByteSource.html#isEmpty--">isEmpty</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="AbstractHash--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>AbstractHash</h4> |
| <pre>public <a href="../../../../../src-html/org/apache/shiro/crypto/hash/AbstractHash.html#line.72">AbstractHash</a>()</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Creates an new instance without any of its properties set (no hashing is performed). |
| <p/> |
| Because all constructors in this class (except this one) hash the <code>source</code> constructor argument, this |
| default, no-arg constructor is useful in scenarios when you have a byte array that you know is already hashed and |
| just want to set the bytes in their raw form directly on an instance. After instantiating the instance with |
| this default, no-arg constructor, you can then immediately call <a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#setBytes-byte:A-"><code>setBytes</code></a> to have a |
| fully-initialized instance.</div> |
| </li> |
| </ul> |
| <a name="AbstractHash-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>AbstractHash</h4> |
| <pre>public <a href="../../../../../src-html/org/apache/shiro/crypto/hash/AbstractHash.html#line.88">AbstractHash</a>(<a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> source) |
| throws <a href="../../../../../org/apache/shiro/codec/CodecException.html" title="class in org.apache.shiro.codec">CodecException</a></pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Creates a hash of the specified <code>source</code> with no <code>salt</code> using a single hash iteration. |
| <p/> |
| It is a convenience constructor that merely executes <code>this( source, null, 1);</code>. |
| <p/> |
| Please see the |
| <a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#AbstractHash-java.lang.Object-java.lang.Object-int-"><code>AbstractHash(Object,Object,int)</code></a> |
| constructor for the types of Objects that may be passed into this constructor, as well as how to support further |
| types.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>source</code> - the object to be hashed.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/shiro/codec/CodecException.html" title="class in org.apache.shiro.codec">CodecException</a></code> - if the specified <code>source</code> cannot be converted into a byte array (byte[]).</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="AbstractHash-java.lang.Object-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>AbstractHash</h4> |
| <pre>public <a href="../../../../../src-html/org/apache/shiro/crypto/hash/AbstractHash.html#line.106">AbstractHash</a>(<a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> source, |
| <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> salt) |
| throws <a href="../../../../../org/apache/shiro/codec/CodecException.html" title="class in org.apache.shiro.codec">CodecException</a></pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Creates a hash of the specified <code>source</code> using the given <code>salt</code> using a single hash iteration. |
| <p/> |
| It is a convenience constructor that merely executes <code>this( source, salt, 1);</code>. |
| <p/> |
| Please see the |
| <a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#AbstractHash-java.lang.Object-java.lang.Object-int-"><code>AbstractHash(Object,Object,int)</code></a> |
| constructor for the types of Objects that may be passed into this constructor, as well as how to support further |
| types.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>source</code> - the source object to be hashed.</dd> |
| <dd><code>salt</code> - the salt to use for the hash</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/shiro/codec/CodecException.html" title="class in org.apache.shiro.codec">CodecException</a></code> - if either constructor argument cannot be converted into a byte array.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="AbstractHash-java.lang.Object-java.lang.Object-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>AbstractHash</h4> |
| <pre>public <a href="../../../../../src-html/org/apache/shiro/crypto/hash/AbstractHash.html#line.129">AbstractHash</a>(<a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> source, |
| <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> salt, |
| int hashIterations) |
| throws <a href="../../../../../org/apache/shiro/codec/CodecException.html" title="class in org.apache.shiro.codec">CodecException</a></pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Creates a hash of the specified <code>source</code> using the given <code>salt</code> a total of |
| <code>hashIterations</code> times. |
| <p/> |
| By default, this class only supports Object method arguments of |
| type <code>byte[]</code>, <code>char[]</code>, <a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a>, <a href="http://java.sun.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io"><code>File</code></a>, or |
| <a href="http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io"><code>InputStream</code></a>. If either argument is anything other than these |
| types a <a href="../../../../../org/apache/shiro/codec/CodecException.html" title="class in org.apache.shiro.codec"><code>CodecException</code></a> will be thrown. |
| <p/> |
| If you want to be able to hash other object types, or use other salt types, you need to override the |
| <a href="../../../../../org/apache/shiro/codec/CodecSupport.html#toBytes-java.lang.Object-"><code>toBytes(Object)</code></a> method to support those specific types. Your other option is to |
| convert your arguments to one of the default three supported types first before passing them in to this |
| constructor}.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>source</code> - the source object to be hashed.</dd> |
| <dd><code>salt</code> - the salt to use for the hash</dd> |
| <dd><code>hashIterations</code> - the number of times the <code>source</code> argument hashed for attack resiliency.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/shiro/codec/CodecException.html" title="class in org.apache.shiro.codec">CodecException</a></code> - if either Object constructor argument cannot be converted into a byte array.</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="getAlgorithmName--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAlgorithmName</h4> |
| <pre>public abstract <a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/shiro/crypto/hash/AbstractHash.html#line.145">getAlgorithmName</a>()</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Implemented by subclasses, this specifies the <a href="http://java.sun.com/javase/6/docs/api/java/security/MessageDigest.html?is-external=true" title="class or interface in java.security"><code>MessageDigest</code></a> algorithm name |
| to use when performing the hash.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/shiro/crypto/hash/Hash.html#getAlgorithmName--">getAlgorithmName</a></code> in interface <code><a href="../../../../../org/apache/shiro/crypto/hash/Hash.html" title="interface in org.apache.shiro.crypto.hash">Hash</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <a href="http://java.sun.com/javase/6/docs/api/java/security/MessageDigest.html?is-external=true" title="class or interface in java.security"><code>MessageDigest</code></a> algorithm name to use when performing the hash.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getBytes--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getBytes</h4> |
| <pre>public byte[] <a href="../../../../../src-html/org/apache/shiro/crypto/hash/AbstractHash.html#line.147">getBytes</a>()</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/shiro/util/ByteSource.html#getBytes--">ByteSource</a></code></span></div> |
| <div class="block">Returns the wrapped byte array.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/shiro/util/ByteSource.html#getBytes--">getBytes</a></code> in interface <code><a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the wrapped byte array.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setBytes-byte:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setBytes</h4> |
| <pre>public void <a href="../../../../../src-html/org/apache/shiro/crypto/hash/AbstractHash.html#line.159">setBytes</a>(byte[] alreadyHashedBytes)</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Sets the raw bytes stored by this hash instance. |
| <p/> |
| The bytes are kept in raw form - they will not be hashed/changed. This is primarily a utility method for |
| constructing a Hash instance when the hashed value is already known.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>alreadyHashedBytes</code> - the raw already-hashed bytes to store in this instance.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getDigest-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDigest</h4> |
| <pre>protected <a href="http://java.sun.com/javase/6/docs/api/java/security/MessageDigest.html?is-external=true" title="class or interface in java.security">MessageDigest</a> <a href="../../../../../src-html/org/apache/shiro/crypto/hash/AbstractHash.html#line.172">getDigest</a>(<a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> algorithmName) |
| throws <a href="../../../../../org/apache/shiro/crypto/UnknownAlgorithmException.html" title="class in org.apache.shiro.crypto">UnknownAlgorithmException</a></pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Returns the JDK MessageDigest instance to use for executing the hash.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>algorithmName</code> - the algorithm to use for the hash, provided by subclasses.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the MessageDigest object for the specified <code>algorithm</code>.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/shiro/crypto/UnknownAlgorithmException.html" title="class in org.apache.shiro.crypto">UnknownAlgorithmException</a></code> - if the specified algorithm name is not available.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="hash-byte:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>hash</h4> |
| <pre>protected byte[] <a href="../../../../../src-html/org/apache/shiro/crypto/hash/AbstractHash.html#line.187">hash</a>(byte[] bytes)</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Hashes the specified byte array without a salt for a single iteration.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>bytes</code> - the bytes to hash.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the hashed bytes.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="hash-byte:A-byte:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>hash</h4> |
| <pre>protected byte[] <a href="../../../../../src-html/org/apache/shiro/crypto/hash/AbstractHash.html#line.198">hash</a>(byte[] bytes, |
| byte[] salt)</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Hashes the specified byte array using the given <code>salt</code> for a single iteration.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>bytes</code> - the bytes to hash</dd> |
| <dd><code>salt</code> - the salt to use for the initial hash</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the hashed bytes</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="hash-byte:A-byte:A-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>hash</h4> |
| <pre>protected byte[] <a href="../../../../../src-html/org/apache/shiro/crypto/hash/AbstractHash.html#line.211">hash</a>(byte[] bytes, |
| byte[] salt, |
| int hashIterations) |
| throws <a href="../../../../../org/apache/shiro/crypto/UnknownAlgorithmException.html" title="class in org.apache.shiro.crypto">UnknownAlgorithmException</a></pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Hashes the specified byte array using the given <code>salt</code> for the specified number of iterations.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>bytes</code> - the bytes to hash</dd> |
| <dd><code>salt</code> - the salt to use for the initial hash</dd> |
| <dd><code>hashIterations</code> - the number of times the the <code>bytes</code> will be hashed (for attack resiliency).</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the hashed bytes.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../../org/apache/shiro/crypto/UnknownAlgorithmException.html" title="class in org.apache.shiro.crypto">UnknownAlgorithmException</a></code> - if the <a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#getAlgorithmName--"><code>algorithmName</code></a> is not available.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="toHex--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toHex</h4> |
| <pre>public <a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/shiro/crypto/hash/AbstractHash.html#line.236">toHex</a>()</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Returns a hex-encoded string of the underlying <a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#getBytes--"><code>byte array</code></a>. |
| <p/> |
| This implementation caches the resulting hex string so multiple calls to this method remain efficient. |
| However, calling <a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#setBytes-byte:A-"><code>setBytes</code></a> will null the cached value, forcing it to be recalculated the |
| next time this method is called.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/shiro/util/ByteSource.html#toHex--">toHex</a></code> in interface <code><a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a hex-encoded string of the underlying <a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#getBytes--"><code>byte array</code></a>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="toBase64--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toBase64</h4> |
| <pre>public <a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/shiro/crypto/hash/AbstractHash.html#line.252">toBase64</a>()</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Returns a Base64-encoded string of the underlying <a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#getBytes--"><code>byte array</code></a>. |
| <p/> |
| This implementation caches the resulting Base64 string so multiple calls to this method remain efficient. |
| However, calling <a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#setBytes-byte:A-"><code>setBytes</code></a> will null the cached value, forcing it to be recalculated the |
| next time this method is called.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../../org/apache/shiro/util/ByteSource.html#toBase64--">toBase64</a></code> in interface <code><a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a Base64-encoded string of the underlying <a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#getBytes--"><code>byte array</code></a>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="toString--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toString</h4> |
| <pre>public <a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/shiro/crypto/hash/AbstractHash.html#line.265">toString</a>()</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Simple implementation that merely returns <a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#toHex--"><code>toHex()</code></a>.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a></code> in class <code><a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#toHex--"><code>toHex()</code></a> value.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="equals-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>equals</h4> |
| <pre>public boolean <a href="../../../../../src-html/org/apache/shiro/crypto/hash/AbstractHash.html#line.277">equals</a>(<a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o)</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Returns <code>true</code> if the specified object is a Hash and its <a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#getBytes--"><code>byte array</code></a> is identical to |
| this Hash's byte array, <code>false</code> otherwise.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="http://java.sun.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></code> in class <code><a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>o</code> - the object (Hash) to check for equality.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd><code>true</code> if the specified object is a Hash and its <a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html#getBytes--"><code>byte array</code></a> is identical to |
| this Hash's byte array, <code>false</code> otherwise.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="hashCode--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>hashCode</h4> |
| <pre>public int <a href="../../../../../src-html/org/apache/shiro/crypto/hash/AbstractHash.html#line.290">hashCode</a>()</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Simply returns toHex().hashCode();</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code><a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a></code> in class <code><a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>toHex().hashCode()</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/AbstractHash.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>Prev Class</li> |
| <li><a href="../../../../../org/apache/shiro/crypto/hash/ConfigurableHashService.html" title="interface in org.apache.shiro.crypto.hash"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/shiro/crypto/hash/AbstractHash.html" target="_top">Frames</a></li> |
| <li><a href="AbstractHash.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../allclasses-noframe.html">All 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: </li> |
| <li>Nested | </li> |
| <li><a href="#fields.inherited.from.class.org.apache.shiro.codec.CodecSupport">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </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 © 2004–2016 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </body> |
| </html> |