| <!DOCTYPE HTML> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc --> |
| <title>Uses of Interface org.apache.shiro.util.ByteSource (Apache Shiro 1.10.0 API)</title> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../../jquery/jquery-ui.css" title="Style"> |
| <script type="text/javascript" src="../../../../../script.js"></script> |
| <script type="text/javascript" src="../../../../../jquery/jszip/dist/jszip.min.js"></script> |
| <script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script> |
| <!--[if IE]> |
| <script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script> |
| <![endif]--> |
| <script type="text/javascript" src="../../../../../jquery/jquery-3.5.1.js"></script> |
| <script type="text/javascript" src="../../../../../jquery/jquery-ui.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="Uses of Interface org.apache.shiro.util.ByteSource (Apache Shiro 1.10.0 API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var pathtoroot = "../../../../../"; |
| var useModuleDirectories = true; |
| loadScripts(document, 'script');</script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <header role="banner"> |
| <nav role="navigation"> |
| <div class="fixedNav"><!-- Matomo --> <script> var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ /* We explicitly disable cookie tracking to avoid privacy issues */ _paq.push(['disableCookies']); _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="//matomo.privacy.apache.org/"; _paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setSiteId', '2']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })(); </script> <!-- End Matomo Code --> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a id="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../index.html">Overview</a></li> |
| <li><a href="../package-summary.html">Package</a></li> |
| <li><a href="../ByteSource.html" title="interface in org.apache.shiro.util">Class</a></li> |
| <li class="navBarCell1Rev">Use</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" id="allclasses_navbar_top"> |
| <li><a href="../../../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <ul class="navListSearch"> |
| <li><label for="search">SEARCH:</label> |
| <input type="text" id="search" value="search" disabled="disabled"> |
| <input type="reset" id="reset" value="reset" disabled="disabled"> |
| </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> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <a id="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| </div> |
| <div class="navPadding"> </div> |
| <script type="text/javascript"><!-- |
| $('.navPadding').css('padding-top', $('.fixedNav').css("height")); |
| //--> |
| </script> |
| </nav> |
| </header> |
| <main role="main"> |
| <div class="header"> |
| <h2 title="Uses of Interface org.apache.shiro.util.ByteSource" class="title">Uses of Interface<br>org.apache.shiro.util.ByteSource</h2> |
| </div> |
| <div class="classUseContainer"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <table class="useSummary"> |
| <caption><span>Packages that use <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Package</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="#org.apache.shiro.authc">org.apache.shiro.authc</a></th> |
| <td class="colLast"> |
| <div class="block">Core interfaces and exceptions concerning Authentication (the act of logging-in).</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="#org.apache.shiro.authc.credential">org.apache.shiro.authc.credential</a></th> |
| <td class="colLast"> |
| <div class="block">Support for validating <em>credentials</em> (such as passwords or X509 certificates) during |
| authentication via the <a href="../../authc/credential/CredentialsMatcher.html" title="interface in org.apache.shiro.authc.credential"><code>CredentialsMatcher</code></a> |
| interface and its supporting implementations.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="#org.apache.shiro.crypto">org.apache.shiro.crypto</a></th> |
| <td class="colLast"> |
| <div class="block">Cryptography Cipher and Hashing components that greatly simplify the JDK's cryptography concepts and |
| add additional convenient behavior.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="#org.apache.shiro.crypto.hash">org.apache.shiro.crypto.hash</a></th> |
| <td class="colLast"> |
| <div class="block">Cryptographic Hashing components that greatly simplify one-way data hashing in an application.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="#org.apache.shiro.util">org.apache.shiro.util</a></th> |
| <td class="colLast"> |
| <div class="block">Your run-of-the-mill 'util' package for components and logic widely used across the framework that can't |
| find their home into a proper OO hierarchy (or, most likely for things used across many hierarchies).</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </li> |
| <li class="blockList"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <section role="region"><a id="org.apache.shiro.authc"> |
| <!-- --> |
| </a> |
| <h3>Uses of <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> in <a href="../../authc/package-summary.html">org.apache.shiro.authc</a></h3> |
| <table class="useSummary"> |
| <caption><span>Fields in <a href="../../authc/package-summary.html">org.apache.shiro.authc</a> declared as <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Field</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">SimpleAuthenticationInfo.</span><code><span class="memberNameLink"><a href="../../authc/SimpleAuthenticationInfo.html#credentialsSalt">credentialsSalt</a></span></code></th> |
| <td class="colLast"> |
| <div class="block">Any salt used in hashing the credentials.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <table class="useSummary"> |
| <caption><span>Methods in <a href="../../authc/package-summary.html">org.apache.shiro.authc</a> that return <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Method</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">SaltedAuthenticationInfo.</span><code><span class="memberNameLink"><a href="../../authc/SaltedAuthenticationInfo.html#getCredentialsSalt()">getCredentialsSalt</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the salt used to salt the account's credentials or <code>null</code> if no salt was used.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">SimpleAccount.</span><code><span class="memberNameLink"><a href="../../authc/SimpleAccount.html#getCredentialsSalt()">getCredentialsSalt</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the salt used to hash this Account's credentials (eg for password hashing), or <code>null</code> if no salt |
| was used or credentials were not hashed at all.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">SimpleAuthenticationInfo.</span><code><span class="memberNameLink"><a href="../../authc/SimpleAuthenticationInfo.html#getCredentialsSalt()">getCredentialsSalt</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the salt used to hash the credentials, or <code>null</code> if no salt was used or credentials were not |
| hashed at all.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <table class="useSummary"> |
| <caption><span>Methods in <a href="../../authc/package-summary.html">org.apache.shiro.authc</a> with parameters of type <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Method</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">SimpleAccount.</span><code><span class="memberNameLink"><a href="../../authc/SimpleAccount.html#setCredentialsSalt(org.apache.shiro.util.ByteSource)">setCredentialsSalt</a></span>​(<a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> salt)</code></th> |
| <td class="colLast"> |
| <div class="block">Sets the salt to use to hash this Account's credentials (eg for password hashing), or <code>null</code> if no salt |
| is used or credentials are not hashed at all.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">SimpleAuthenticationInfo.</span><code><span class="memberNameLink"><a href="../../authc/SimpleAuthenticationInfo.html#setCredentialsSalt(org.apache.shiro.util.ByteSource)">setCredentialsSalt</a></span>​(<a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> salt)</code></th> |
| <td class="colLast"> |
| <div class="block">Sets the salt used to hash the credentials, or <code>null</code> if no salt was used or credentials were not |
| hashed at all.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <table class="useSummary"> |
| <caption><span>Constructors in <a href="../../authc/package-summary.html">org.apache.shiro.authc</a> with parameters of type <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Constructor</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../authc/SimpleAccount.html#%3Cinit%3E(java.lang.Object,java.lang.Object,org.apache.shiro.util.ByteSource,java.lang.String)">SimpleAccount</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a> principal, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a> hashedCredentials, |
| <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> credentialsSalt, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> realmName)</code></th> |
| <td class="colLast"> |
| <div class="block">Constructs a SimpleAccount instance for the specified realm with the given principals, hashedCredentials and |
| credentials salt used when hashing the credentials.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../authc/SimpleAccount.html#%3Cinit%3E(org.apache.shiro.subject.PrincipalCollection,java.lang.Object,org.apache.shiro.util.ByteSource)">SimpleAccount</a></span>​(<a href="../../subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a> hashedCredentials, |
| <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> credentialsSalt)</code></th> |
| <td class="colLast"> |
| <div class="block">Constructs a SimpleAccount instance for the specified principals and credentials.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../authc/SimpleAuthenticationInfo.html#%3Cinit%3E(java.lang.Object,java.lang.Object,org.apache.shiro.util.ByteSource,java.lang.String)">SimpleAuthenticationInfo</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a> principal, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a> hashedCredentials, |
| <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> credentialsSalt, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> realmName)</code></th> |
| <td class="colLast"> |
| <div class="block">Constructor that takes in a single 'primary' principal of the account, its corresponding hashed credentials, |
| the salt used to hash the credentials, and the name of the realm to associate with the principals.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../authc/SimpleAuthenticationInfo.html#%3Cinit%3E(org.apache.shiro.subject.PrincipalCollection,java.lang.Object,org.apache.shiro.util.ByteSource)">SimpleAuthenticationInfo</a></span>​(<a href="../../subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a> hashedCredentials, |
| <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> credentialsSalt)</code></th> |
| <td class="colLast"> |
| <div class="block">Constructor that takes in an account's identifying principal(s), hashed credentials used to verify the |
| principals, and the salt used when hashing the credentials.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section role="region"><a id="org.apache.shiro.authc.credential"> |
| <!-- --> |
| </a> |
| <h3>Uses of <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> in <a href="../../authc/credential/package-summary.html">org.apache.shiro.authc.credential</a></h3> |
| <table class="useSummary"> |
| <caption><span>Methods in <a href="../../authc/credential/package-summary.html">org.apache.shiro.authc.credential</a> that return <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Method</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">DefaultPasswordService.</span><code><span class="memberNameLink"><a href="../../authc/credential/DefaultPasswordService.html#createByteSource(java.lang.Object)">createByteSource</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a> o)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| </tbody> |
| </table> |
| <table class="useSummary"> |
| <caption><span>Methods in <a href="../../authc/credential/package-summary.html">org.apache.shiro.authc.credential</a> with parameters of type <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Method</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected <a href="../../crypto/hash/HashRequest.html" title="interface in org.apache.shiro.crypto.hash">HashRequest</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">DefaultPasswordService.</span><code><span class="memberNameLink"><a href="../../authc/credential/DefaultPasswordService.html#buildHashRequest(org.apache.shiro.util.ByteSource,org.apache.shiro.crypto.hash.Hash)">buildHashRequest</a></span>​(<a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> plaintext, |
| <a href="../../crypto/hash/Hash.html" title="interface in org.apache.shiro.crypto.hash">Hash</a> saved)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected <a href="../../crypto/hash/HashRequest.html" title="interface in org.apache.shiro.crypto.hash">HashRequest</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">DefaultPasswordService.</span><code><span class="memberNameLink"><a href="../../authc/credential/DefaultPasswordService.html#createHashRequest(org.apache.shiro.util.ByteSource)">createHashRequest</a></span>​(<a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> plaintext)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| </tbody> |
| </table> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section role="region"><a id="org.apache.shiro.crypto"> |
| <!-- --> |
| </a> |
| <h3>Uses of <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> in <a href="../../crypto/package-summary.html">org.apache.shiro.crypto</a></h3> |
| <table class="useSummary"> |
| <caption><span>Methods in <a href="../../crypto/package-summary.html">org.apache.shiro.crypto</a> that return <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Method</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">CipherService.</span><code><span class="memberNameLink"><a href="../../crypto/CipherService.html#decrypt(byte%5B%5D,byte%5B%5D)">decrypt</a></span>​(byte[] encrypted, |
| byte[] decryptionKey)</code></th> |
| <td class="colLast"> |
| <div class="block">Decrypts encrypted data via the specified cipher key and returns the original (pre-encrypted) data.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">JcaCipherService.</span><code><span class="memberNameLink"><a href="../../crypto/JcaCipherService.html#decrypt(byte%5B%5D,byte%5B%5D)">decrypt</a></span>​(byte[] ciphertext, |
| byte[] key)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">CipherService.</span><code><span class="memberNameLink"><a href="../../crypto/CipherService.html#encrypt(byte%5B%5D,byte%5B%5D)">encrypt</a></span>​(byte[] raw, |
| byte[] encryptionKey)</code></th> |
| <td class="colLast"> |
| <div class="block">Encrypts data via the specified cipher key.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">JcaCipherService.</span><code><span class="memberNameLink"><a href="../../crypto/JcaCipherService.html#encrypt(byte%5B%5D,byte%5B%5D)">encrypt</a></span>​(byte[] plaintext, |
| byte[] key)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">RandomNumberGenerator.</span><code><span class="memberNameLink"><a href="../../crypto/RandomNumberGenerator.html#nextBytes()">nextBytes</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Generates a byte array of fixed length filled with random data, often useful for generating salts, |
| initialization vectors or other seed data.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">RandomNumberGenerator.</span><code><span class="memberNameLink"><a href="../../crypto/RandomNumberGenerator.html#nextBytes(int)">nextBytes</a></span>​(int numBytes)</code></th> |
| <td class="colLast"> |
| <div class="block">Generates a byte array of the specified length filled with random data.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">SecureRandomNumberGenerator.</span><code><span class="memberNameLink"><a href="../../crypto/SecureRandomNumberGenerator.html#nextBytes()">nextBytes</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">SecureRandomNumberGenerator.</span><code><span class="memberNameLink"><a href="../../crypto/SecureRandomNumberGenerator.html#nextBytes(int)">nextBytes</a></span>​(int numBytes)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| </tbody> |
| </table> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section role="region"><a id="org.apache.shiro.crypto.hash"> |
| <!-- --> |
| </a> |
| <h3>Uses of <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> in <a href="../../crypto/hash/package-summary.html">org.apache.shiro.crypto.hash</a></h3> |
| <table class="useSummary"> |
| <caption><span>Subinterfaces of <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> in <a href="../../crypto/hash/package-summary.html">org.apache.shiro.crypto.hash</a></span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Interface</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><code>interface </code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../crypto/hash/Hash.html" title="interface in org.apache.shiro.crypto.hash">Hash</a></span></code></th> |
| <td class="colLast"> |
| <div class="block">A Cryptographic <code>Hash</code> represents a one-way conversion algorithm that transforms an input source to an |
| underlying byte array.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <table class="useSummary"> |
| <caption><span>Classes in <a href="../../crypto/hash/package-summary.html">org.apache.shiro.crypto.hash</a> that implement <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Class</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><code>class </code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../crypto/hash/AbstractHash.html" title="class in org.apache.shiro.crypto.hash">AbstractHash</a></span></code></th> |
| <td class="colLast"> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> |
| <div class="deprecationComment">in Shiro 1.1 in favor of using the concrete <a href="../../crypto/hash/SimpleHash.html" title="class in org.apache.shiro.crypto.hash"><code>SimpleHash</code></a> implementation directly.</div> |
| </div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>class </code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../crypto/hash/Md2Hash.html" title="class in org.apache.shiro.crypto.hash">Md2Hash</a></span></code></th> |
| <td class="colLast"> |
| <div class="block">Generates an MD2 Hash (RFC 1319) from a given input <tt>source</tt> with an optional <tt>salt</tt> and |
| hash iterations.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>class </code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../crypto/hash/Md5Hash.html" title="class in org.apache.shiro.crypto.hash">Md5Hash</a></span></code></th> |
| <td class="colLast"> |
| <div class="block">Generates an MD5 Hash (RFC 1321) from a given input <tt>source</tt> with an optional <tt>salt</tt> and |
| hash iterations.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>class </code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../crypto/hash/Sha1Hash.html" title="class in org.apache.shiro.crypto.hash">Sha1Hash</a></span></code></th> |
| <td class="colLast"> |
| <div class="block">Generates an SHA-1 Hash (Secure Hash Standard, NIST FIPS 180-1) from a given input <tt>source</tt> with an |
| optional <tt>salt</tt> and hash iterations.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>class </code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../crypto/hash/Sha256Hash.html" title="class in org.apache.shiro.crypto.hash">Sha256Hash</a></span></code></th> |
| <td class="colLast"> |
| <div class="block">Generates an SHA-256 Hash from a given input <tt>source</tt> with an optional <tt>salt</tt> and hash iterations.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>class </code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../crypto/hash/Sha384Hash.html" title="class in org.apache.shiro.crypto.hash">Sha384Hash</a></span></code></th> |
| <td class="colLast"> |
| <div class="block">Generates an SHA-384 Hash from a given input <tt>source</tt> with an optional <tt>salt</tt> and hash iterations.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>class </code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../crypto/hash/Sha512Hash.html" title="class in org.apache.shiro.crypto.hash">Sha512Hash</a></span></code></th> |
| <td class="colLast"> |
| <div class="block">Generates an SHA-512 Hash from a given input <tt>source</tt> with an optional <tt>salt</tt> and hash iterations.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>class </code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../crypto/hash/SimpleHash.html" title="class in org.apache.shiro.crypto.hash">SimpleHash</a></span></code></th> |
| <td class="colLast"> |
| <div class="block">A <code>Hash</code> implementation that allows any <a href="https://docs.oracle.com/javase/8/docs/api/java/security/MessageDigest.html?is-external=true" title="class or interface in java.security" class="externalLink"><code>MessageDigest</code></a> algorithm name to |
| be used.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <table class="useSummary"> |
| <caption><span>Methods in <a href="../../crypto/hash/package-summary.html">org.apache.shiro.crypto.hash</a> that return <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Method</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">DefaultHashService.</span><code><span class="memberNameLink"><a href="../../crypto/hash/DefaultHashService.html#combine(org.apache.shiro.util.ByteSource,org.apache.shiro.util.ByteSource)">combine</a></span>​(<a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> privateSalt, |
| <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> publicSalt)</code></th> |
| <td class="colLast"> |
| <div class="block">Combines the specified 'private' salt bytes with the specified additional extra bytes to use as the |
| total salt during hash computation.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">SimpleHash.</span><code><span class="memberNameLink"><a href="../../crypto/hash/SimpleHash.html#convertSaltToBytes(java.lang.Object)">convertSaltToBytes</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a> salt)</code></th> |
| <td class="colLast"> |
| <div class="block">Acquires the specified <code>salt</code> argument's bytes and returns them in the form of a <code>ByteSource</code> instance.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">SimpleHash.</span><code><span class="memberNameLink"><a href="../../crypto/hash/SimpleHash.html#convertSourceToBytes(java.lang.Object)">convertSourceToBytes</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a> source)</code></th> |
| <td class="colLast"> |
| <div class="block">Acquires the specified <code>source</code> argument's bytes and returns them in the form of a <code>ByteSource</code> instance.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">DefaultHashService.</span><code><span class="memberNameLink"><a href="../../crypto/hash/DefaultHashService.html#getPrivateSalt()">getPrivateSalt</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">DefaultHashService.</span><code><span class="memberNameLink"><a href="../../crypto/hash/DefaultHashService.html#getPublicSalt(org.apache.shiro.crypto.hash.HashRequest)">getPublicSalt</a></span>​(<a href="../../crypto/hash/HashRequest.html" title="interface in org.apache.shiro.crypto.hash">HashRequest</a> request)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the public salt that should be used to compute a hash based on the specified request or |
| <code>null</code> if no public salt should be used.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">Hash.</span><code><span class="memberNameLink"><a href="../../crypto/hash/Hash.html#getSalt()">getSalt</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a salt used to compute the hash or <code>null</code> if no salt was used.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">HashRequest.</span><code><span class="memberNameLink"><a href="../../crypto/hash/HashRequest.html#getSalt()">getSalt</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a salt to be used by the <a href="../../crypto/hash/HashService.html" title="interface in org.apache.shiro.crypto.hash"><code>HashService</code></a> during hash computation, or <code>null</code> if no salt is |
| provided as part of the request.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">SimpleHash.</span><code><span class="memberNameLink"><a href="../../crypto/hash/SimpleHash.html#getSalt()">getSalt</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">SimpleHashRequest.</span><code><span class="memberNameLink"><a href="../../crypto/hash/SimpleHashRequest.html#getSalt()">getSalt</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">HashRequest.</span><code><span class="memberNameLink"><a href="../../crypto/hash/HashRequest.html#getSource()">getSource</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Returns the source data that will be hashed by a <a href="../../crypto/hash/HashService.html" title="interface in org.apache.shiro.crypto.hash"><code>HashService</code></a>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">SimpleHashRequest.</span><code><span class="memberNameLink"><a href="../../crypto/hash/SimpleHashRequest.html#getSource()">getSource</a></span>()</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">SimpleHash.</span><code><span class="memberNameLink"><a href="../../crypto/hash/SimpleHash.html#toByteSource(java.lang.Object)">toByteSource</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a> o)</code></th> |
| <td class="colLast"> |
| <div class="block">Converts a given object into a <code>ByteSource</code> instance.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <table class="useSummary"> |
| <caption><span>Methods in <a href="../../crypto/hash/package-summary.html">org.apache.shiro.crypto.hash</a> with parameters of type <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Method</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">DefaultHashService.</span><code><span class="memberNameLink"><a href="../../crypto/hash/DefaultHashService.html#combine(org.apache.shiro.util.ByteSource,org.apache.shiro.util.ByteSource)">combine</a></span>​(<a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> privateSalt, |
| <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> publicSalt)</code></th> |
| <td class="colLast"> |
| <div class="block">Combines the specified 'private' salt bytes with the specified additional extra bytes to use as the |
| total salt during hash computation.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">ConfigurableHashService.</span><code><span class="memberNameLink"><a href="../../crypto/hash/ConfigurableHashService.html#setPrivateSalt(org.apache.shiro.util.ByteSource)">setPrivateSalt</a></span>​(<a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> privateSalt)</code></th> |
| <td class="colLast"> |
| <div class="block">Sets the 'private' (internal) salt to be paired with a 'public' (random or supplied) salt during hash computation.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">DefaultHashService.</span><code><span class="memberNameLink"><a href="../../crypto/hash/DefaultHashService.html#setPrivateSalt(org.apache.shiro.util.ByteSource)">setPrivateSalt</a></span>​(<a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> privateSalt)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../crypto/hash/HashRequest.Builder.html" title="class in org.apache.shiro.crypto.hash">HashRequest.Builder</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">HashRequest.Builder.</span><code><span class="memberNameLink"><a href="../../crypto/hash/HashRequest.Builder.html#setSalt(org.apache.shiro.util.ByteSource)">setSalt</a></span>​(<a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> salt)</code></th> |
| <td class="colLast"> |
| <div class="block">Sets a salt to be used by the <a href="../../crypto/hash/HashService.html" title="interface in org.apache.shiro.crypto.hash"><code>HashService</code></a> during hash computation.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">SimpleHash.</span><code><span class="memberNameLink"><a href="../../crypto/hash/SimpleHash.html#setSalt(org.apache.shiro.util.ByteSource)">setSalt</a></span>​(<a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> salt)</code></th> |
| <td class="colLast"> |
| <div class="block">Sets the salt used to previously compute AN ALREADY GENERATED HASH.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../crypto/hash/HashRequest.Builder.html" title="class in org.apache.shiro.crypto.hash">HashRequest.Builder</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">HashRequest.Builder.</span><code><span class="memberNameLink"><a href="../../crypto/hash/HashRequest.Builder.html#setSource(org.apache.shiro.util.ByteSource)">setSource</a></span>​(<a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> source)</code></th> |
| <td class="colLast"> |
| <div class="block">Sets the source data that will be hashed by a <a href="../../crypto/hash/HashService.html" title="interface in org.apache.shiro.crypto.hash"><code>HashService</code></a>.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <table class="useSummary"> |
| <caption><span>Constructors in <a href="../../crypto/hash/package-summary.html">org.apache.shiro.crypto.hash</a> with parameters of type <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Constructor</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../crypto/hash/SimpleHashRequest.html#%3Cinit%3E(java.lang.String,org.apache.shiro.util.ByteSource,org.apache.shiro.util.ByteSource,int)">SimpleHashRequest</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> algorithmName, |
| <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> source, |
| <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> salt, |
| int iterations)</code></th> |
| <td class="colLast"> |
| <div class="block">Creates a new SimpleHashRequest instance.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </section> |
| </li> |
| <li class="blockList"> |
| <section role="region"><a id="org.apache.shiro.util"> |
| <!-- --> |
| </a> |
| <h3>Uses of <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> in <a href="../package-summary.html">org.apache.shiro.util</a></h3> |
| <table class="useSummary"> |
| <caption><span>Classes in <a href="../package-summary.html">org.apache.shiro.util</a> that implement <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Class</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><code>class </code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../SimpleByteSource.html" title="class in org.apache.shiro.util">SimpleByteSource</a></span></code></th> |
| <td class="colLast"> |
| <div class="block">Very simple <a href="../ByteSource.html" title="interface in org.apache.shiro.util"><code>ByteSource</code></a> implementation that maintains an internal <code>byte[]</code> array and uses the |
| <a href="../../codec/Hex.html" title="class in org.apache.shiro.codec"><code>Hex</code></a> and <a href="../../codec/Base64.html" title="class in org.apache.shiro.codec"><code>Base64</code></a> codec classes to support the |
| <a href="../SimpleByteSource.html#toHex()"><code>toHex()</code></a> and <a href="../SimpleByteSource.html#toBase64()"><code>toBase64()</code></a> implementations.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <table class="useSummary"> |
| <caption><span>Methods in <a href="../package-summary.html">org.apache.shiro.util</a> that return <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Method</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">ByteSource.Util.</span><code><span class="memberNameLink"><a href="../ByteSource.Util.html#bytes(byte%5B%5D)">bytes</a></span>​(byte[] bytes)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new <code>ByteSource</code> instance representing the specified byte array.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">ByteSource.Util.</span><code><span class="memberNameLink"><a href="../ByteSource.Util.html#bytes(char%5B%5D)">bytes</a></span>​(char[] chars)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new <code>ByteSource</code> instance representing the specified character array's bytes.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">ByteSource.Util.</span><code><span class="memberNameLink"><a href="../ByteSource.Util.html#bytes(java.io.File)">bytes</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io" class="externalLink">File</a> file)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new <code>ByteSource</code> instance representing the specified File's bytes.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">ByteSource.Util.</span><code><span class="memberNameLink"><a href="../ByteSource.Util.html#bytes(java.io.InputStream)">bytes</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io" class="externalLink">InputStream</a> stream)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new <code>ByteSource</code> instance representing the specified InputStream's bytes.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">ByteSource.Util.</span><code><span class="memberNameLink"><a href="../ByteSource.Util.html#bytes(java.lang.Object)">bytes</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a> source)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a <code>ByteSource</code> instance representing the specified byte source argument.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">ByteSource.Util.</span><code><span class="memberNameLink"><a href="../ByteSource.Util.html#bytes(java.lang.String)">bytes</a></span>​(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang" class="externalLink">String</a> string)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new <code>ByteSource</code> instance representing the specified string's bytes.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">ByteSource.Util.</span><code><span class="memberNameLink"><a href="../ByteSource.Util.html#bytes(org.apache.shiro.util.ByteSource)">bytes</a></span>​(<a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> source)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new <code>ByteSource</code> instance representing the specified ByteSource.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <table class="useSummary"> |
| <caption><span>Methods in <a href="../package-summary.html">org.apache.shiro.util</a> with parameters of type <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Method</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <th class="colSecond" scope="row"><span class="typeNameLabel">ByteSource.Util.</span><code><span class="memberNameLink"><a href="../ByteSource.Util.html#bytes(org.apache.shiro.util.ByteSource)">bytes</a></span>​(<a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> source)</code></th> |
| <td class="colLast"> |
| <div class="block">Returns a new <code>ByteSource</code> instance representing the specified ByteSource.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <table class="useSummary"> |
| <caption><span>Constructors in <a href="../package-summary.html">org.apache.shiro.util</a> with parameters of type <a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Constructor</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../SimpleByteSource.html#%3Cinit%3E(org.apache.shiro.util.ByteSource)">SimpleByteSource</a></span>​(<a href="../ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> source)</code></th> |
| <td class="colLast"> |
| <div class="block">Creates an instance using the sources bytes directly - it does not create a copy of the |
| argument's byte array.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </section> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </main> |
| <footer role="contentinfo"> |
| <nav role="navigation"> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a id="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../index.html">Overview</a></li> |
| <li><a href="../package-summary.html">Package</a></li> |
| <li><a href="../ByteSource.html" title="interface in org.apache.shiro.util">Class</a></li> |
| <li class="navBarCell1Rev">Use</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" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../allclasses.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> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <a id="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </nav> |
| <p class="legalCopy"><small>Copyright © 2004–2022 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </footer> |
| </body> |
| </html> |