| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="fr"> |
| <head> |
| <!-- Generated by javadoc (1.8.0_201) on Sat May 02 22:20:05 CEST 2020 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>Uses of Interface org.apache.shiro.util.ByteSource (Apache Shiro 1.5.3 API)</title> |
| <meta name="date" content="2020-05-02"> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="Uses of Interface org.apache.shiro.util.ByteSource (Apache Shiro 1.5.3 API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| </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><a href="../../../../../org/apache/shiro/util/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"> |
| <li>Prev</li> |
| <li>Next</li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/shiro/util/class-use/ByteSource.html" target="_top">Frames</a></li> |
| <li><a href="ByteSource.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> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <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" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing packages, and an explanation"> |
| <caption><span>Packages that use <a href="../../../../../org/apache/shiro/util/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"> |
| <td class="colFirst"><a href="#org.apache.shiro.authc">org.apache.shiro.authc</a></td> |
| <td class="colLast"> |
| <div class="block">Core interfaces and exceptions concerning Authentication (the act of logging-in).</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><a href="#org.apache.shiro.authc.credential">org.apache.shiro.authc.credential</a></td> |
| <td class="colLast"> |
| <div class="block">Support for validating <em>credentials</em> (such as passwords or X509 certificates) during |
| authentication via the <a href="../../../../../org/apache/shiro/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"> |
| <td class="colFirst"><a href="#org.apache.shiro.crypto">org.apache.shiro.crypto</a></td> |
| <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"> |
| <td class="colFirst"><a href="#org.apache.shiro.crypto.hash">org.apache.shiro.crypto.hash</a></td> |
| <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"> |
| <td class="colFirst"><a href="#org.apache.shiro.util">org.apache.shiro.util</a></td> |
| <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"><a name="org.apache.shiro.authc"> |
| <!-- --> |
| </a> |
| <h3>Uses of <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> in <a href="../../../../../org/apache/shiro/authc/package-summary.html">org.apache.shiro.authc</a></h3> |
| <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing fields, and an explanation"> |
| <caption><span>Fields in <a href="../../../../../org/apache/shiro/authc/package-summary.html">org.apache.shiro.authc</a> declared as <a href="../../../../../org/apache/shiro/util/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="colLast" scope="col">Field and Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">SimpleAuthenticationInfo.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/authc/SimpleAuthenticationInfo.html#credentialsSalt">credentialsSalt</a></span></code> |
| <div class="block">Any salt used in hashing the credentials.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> |
| <caption><span>Methods in <a href="../../../../../org/apache/shiro/authc/package-summary.html">org.apache.shiro.authc</a> that return <a href="../../../../../org/apache/shiro/util/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="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">SimpleAuthenticationInfo.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/authc/SimpleAuthenticationInfo.html#getCredentialsSalt--">getCredentialsSalt</a></span>()</code> |
| <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> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">SimpleAccount.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/authc/SimpleAccount.html#getCredentialsSalt--">getCredentialsSalt</a></span>()</code> |
| <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="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">SaltedAuthenticationInfo.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/authc/SaltedAuthenticationInfo.html#getCredentialsSalt--">getCredentialsSalt</a></span>()</code> |
| <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> |
| </tbody> |
| </table> |
| <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> |
| <caption><span>Methods in <a href="../../../../../org/apache/shiro/authc/package-summary.html">org.apache.shiro.authc</a> with parameters of type <a href="../../../../../org/apache/shiro/util/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="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><span class="typeNameLabel">SimpleAuthenticationInfo.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/authc/SimpleAuthenticationInfo.html#setCredentialsSalt-org.apache.shiro.util.ByteSource-">setCredentialsSalt</a></span>(<a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> salt)</code> |
| <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> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><span class="typeNameLabel">SimpleAccount.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/authc/SimpleAccount.html#setCredentialsSalt-org.apache.shiro.util.ByteSource-">setCredentialsSalt</a></span>(<a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> salt)</code> |
| <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> |
| </tbody> |
| </table> |
| <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing constructors, and an explanation"> |
| <caption><span>Constructors in <a href="../../../../../org/apache/shiro/authc/package-summary.html">org.apache.shiro.authc</a> with parameters of type <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/authc/SimpleAccount.html#SimpleAccount-java.lang.Object-java.lang.Object-org.apache.shiro.util.ByteSource-java.lang.String-">SimpleAccount</a></span>(<a href="https://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> principal, |
| <a href="https://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> hashedCredentials, |
| <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> credentialsSalt, |
| <a href="https://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> realmName)</code> |
| <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"> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/authc/SimpleAccount.html#SimpleAccount-org.apache.shiro.subject.PrincipalCollection-java.lang.Object-org.apache.shiro.util.ByteSource-">SimpleAccount</a></span>(<a href="../../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="https://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> hashedCredentials, |
| <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> credentialsSalt)</code> |
| <div class="block">Constructs a SimpleAccount instance for the specified principals and credentials.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/authc/SimpleAuthenticationInfo.html#SimpleAuthenticationInfo-java.lang.Object-java.lang.Object-org.apache.shiro.util.ByteSource-java.lang.String-">SimpleAuthenticationInfo</a></span>(<a href="https://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> principal, |
| <a href="https://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> hashedCredentials, |
| <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> credentialsSalt, |
| <a href="https://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> realmName)</code> |
| <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"> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/authc/SimpleAuthenticationInfo.html#SimpleAuthenticationInfo-org.apache.shiro.subject.PrincipalCollection-java.lang.Object-org.apache.shiro.util.ByteSource-">SimpleAuthenticationInfo</a></span>(<a href="../../../../../org/apache/shiro/subject/PrincipalCollection.html" title="interface in org.apache.shiro.subject">PrincipalCollection</a> principals, |
| <a href="https://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> hashedCredentials, |
| <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> credentialsSalt)</code> |
| <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> |
| </li> |
| <li class="blockList"><a name="org.apache.shiro.authc.credential"> |
| <!-- --> |
| </a> |
| <h3>Uses of <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> in <a href="../../../../../org/apache/shiro/authc/credential/package-summary.html">org.apache.shiro.authc.credential</a></h3> |
| <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> |
| <caption><span>Methods in <a href="../../../../../org/apache/shiro/authc/credential/package-summary.html">org.apache.shiro.authc.credential</a> that return <a href="../../../../../org/apache/shiro/util/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="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">DefaultPasswordService.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/authc/credential/DefaultPasswordService.html#createByteSource-java.lang.Object-">createByteSource</a></span>(<a href="https://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o)</code> </td> |
| </tr> |
| </tbody> |
| </table> |
| <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> |
| <caption><span>Methods in <a href="../../../../../org/apache/shiro/authc/credential/package-summary.html">org.apache.shiro.authc.credential</a> with parameters of type <a href="../../../../../org/apache/shiro/util/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="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected <a href="../../../../../org/apache/shiro/crypto/hash/HashRequest.html" title="interface in org.apache.shiro.crypto.hash">HashRequest</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">DefaultPasswordService.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/authc/credential/DefaultPasswordService.html#buildHashRequest-org.apache.shiro.util.ByteSource-org.apache.shiro.crypto.hash.Hash-">buildHashRequest</a></span>(<a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> plaintext, |
| <a href="../../../../../org/apache/shiro/crypto/hash/Hash.html" title="interface in org.apache.shiro.crypto.hash">Hash</a> saved)</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected <a href="../../../../../org/apache/shiro/crypto/hash/HashRequest.html" title="interface in org.apache.shiro.crypto.hash">HashRequest</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">DefaultPasswordService.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/authc/credential/DefaultPasswordService.html#createHashRequest-org.apache.shiro.util.ByteSource-">createHashRequest</a></span>(<a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> plaintext)</code> </td> |
| </tr> |
| </tbody> |
| </table> |
| </li> |
| <li class="blockList"><a name="org.apache.shiro.crypto"> |
| <!-- --> |
| </a> |
| <h3>Uses of <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> in <a href="../../../../../org/apache/shiro/crypto/package-summary.html">org.apache.shiro.crypto</a></h3> |
| <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> |
| <caption><span>Methods in <a href="../../../../../org/apache/shiro/crypto/package-summary.html">org.apache.shiro.crypto</a> that return <a href="../../../../../org/apache/shiro/util/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="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">CipherService.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/CipherService.html#decrypt-byte:A-byte:A-">decrypt</a></span>(byte[] encrypted, |
| byte[] decryptionKey)</code> |
| <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="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">JcaCipherService.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/JcaCipherService.html#decrypt-byte:A-byte:A-">decrypt</a></span>(byte[] ciphertext, |
| byte[] key)</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">CipherService.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/CipherService.html#encrypt-byte:A-byte:A-">encrypt</a></span>(byte[] raw, |
| byte[] encryptionKey)</code> |
| <div class="block">Encrypts data via the specified cipher key.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">JcaCipherService.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/JcaCipherService.html#encrypt-byte:A-byte:A-">encrypt</a></span>(byte[] plaintext, |
| byte[] key)</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">SecureRandomNumberGenerator.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/SecureRandomNumberGenerator.html#nextBytes--">nextBytes</a></span>()</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">RandomNumberGenerator.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/RandomNumberGenerator.html#nextBytes--">nextBytes</a></span>()</code> |
| <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="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">SecureRandomNumberGenerator.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/SecureRandomNumberGenerator.html#nextBytes-int-">nextBytes</a></span>(int numBytes)</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">RandomNumberGenerator.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/RandomNumberGenerator.html#nextBytes-int-">nextBytes</a></span>(int numBytes)</code> |
| <div class="block">Generates a byte array of the specified length filled with random data.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </li> |
| <li class="blockList"><a name="org.apache.shiro.crypto.hash"> |
| <!-- --> |
| </a> |
| <h3>Uses of <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> in <a href="../../../../../org/apache/shiro/crypto/hash/package-summary.html">org.apache.shiro.crypto.hash</a></h3> |
| <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing subinterfaces, and an explanation"> |
| <caption><span>Subinterfaces of <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> in <a href="../../../../../org/apache/shiro/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="colLast" scope="col">Interface and Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><code>interface </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/Hash.html" title="interface in org.apache.shiro.crypto.hash">Hash</a></span></code> |
| <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" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> |
| <caption><span>Classes in <a href="../../../../../org/apache/shiro/crypto/hash/package-summary.html">org.apache.shiro.crypto.hash</a> that implement <a href="../../../../../org/apache/shiro/util/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="colLast" scope="col">Class and Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><code>class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/AbstractHash.html" title="class in org.apache.shiro.crypto.hash">AbstractHash</a></span></code> |
| <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> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/Md2Hash.html" title="class in org.apache.shiro.crypto.hash">Md2Hash</a></span></code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/Md5Hash.html" title="class in org.apache.shiro.crypto.hash">Md5Hash</a></span></code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/Sha1Hash.html" title="class in org.apache.shiro.crypto.hash">Sha1Hash</a></span></code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/Sha256Hash.html" title="class in org.apache.shiro.crypto.hash">Sha256Hash</a></span></code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/Sha384Hash.html" title="class in org.apache.shiro.crypto.hash">Sha384Hash</a></span></code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/Sha512Hash.html" title="class in org.apache.shiro.crypto.hash">Sha512Hash</a></span></code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/SimpleHash.html" title="class in org.apache.shiro.crypto.hash">SimpleHash</a></span></code> |
| <div class="block">A <code>Hash</code> implementation that allows any <a href="https://docs.oracle.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 |
| be used.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> |
| <caption><span>Methods in <a href="../../../../../org/apache/shiro/crypto/hash/package-summary.html">org.apache.shiro.crypto.hash</a> that return <a href="../../../../../org/apache/shiro/util/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="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">DefaultHashService.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/DefaultHashService.html#combine-org.apache.shiro.util.ByteSource-org.apache.shiro.util.ByteSource-">combine</a></span>(<a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> privateSalt, |
| <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> publicSalt)</code> |
| <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="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">SimpleHash.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/SimpleHash.html#convertSaltToBytes-java.lang.Object-">convertSaltToBytes</a></span>(<a href="https://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> salt)</code> |
| <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="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">SimpleHash.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/SimpleHash.html#convertSourceToBytes-java.lang.Object-">convertSourceToBytes</a></span>(<a href="https://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> source)</code> |
| <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="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">DefaultHashService.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/DefaultHashService.html#getPrivateSalt--">getPrivateSalt</a></span>()</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">DefaultHashService.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/DefaultHashService.html#getPublicSalt-org.apache.shiro.crypto.hash.HashRequest-">getPublicSalt</a></span>(<a href="../../../../../org/apache/shiro/crypto/hash/HashRequest.html" title="interface in org.apache.shiro.crypto.hash">HashRequest</a> request)</code> |
| <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="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">SimpleHashRequest.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/SimpleHashRequest.html#getSalt--">getSalt</a></span>()</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">SimpleHash.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/SimpleHash.html#getSalt--">getSalt</a></span>()</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">Hash.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/Hash.html#getSalt--">getSalt</a></span>()</code> |
| <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="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">HashRequest.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/HashRequest.html#getSalt--">getSalt</a></span>()</code> |
| <div class="block">Returns a salt to be used by the <a href="../../../../../org/apache/shiro/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="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">SimpleHashRequest.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/SimpleHashRequest.html#getSource--">getSource</a></span>()</code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">HashRequest.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/HashRequest.html#getSource--">getSource</a></span>()</code> |
| <div class="block">Returns the source data that will be hashed by a <a href="../../../../../org/apache/shiro/crypto/hash/HashService.html" title="interface in org.apache.shiro.crypto.hash"><code>HashService</code></a>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">SimpleHash.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/SimpleHash.html#toByteSource-java.lang.Object-">toByteSource</a></span>(<a href="https://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o)</code> |
| <div class="block">Converts a given object into a <code>ByteSource</code> instance.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> |
| <caption><span>Methods in <a href="../../../../../org/apache/shiro/crypto/hash/package-summary.html">org.apache.shiro.crypto.hash</a> with parameters of type <a href="../../../../../org/apache/shiro/util/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="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">DefaultHashService.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/DefaultHashService.html#combine-org.apache.shiro.util.ByteSource-org.apache.shiro.util.ByteSource-">combine</a></span>(<a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> privateSalt, |
| <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> publicSalt)</code> |
| <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> |
| <td class="colLast"><span class="typeNameLabel">ConfigurableHashService.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/ConfigurableHashService.html#setPrivateSalt-org.apache.shiro.util.ByteSource-">setPrivateSalt</a></span>(<a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> privateSalt)</code> |
| <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> |
| <td class="colLast"><span class="typeNameLabel">DefaultHashService.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/DefaultHashService.html#setPrivateSalt-org.apache.shiro.util.ByteSource-">setPrivateSalt</a></span>(<a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> privateSalt)</code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><span class="typeNameLabel">SimpleHash.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/SimpleHash.html#setSalt-org.apache.shiro.util.ByteSource-">setSalt</a></span>(<a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> salt)</code> |
| <div class="block">Sets the salt used to previously compute AN ALREADY GENERATED HASH.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/shiro/crypto/hash/HashRequest.Builder.html" title="class in org.apache.shiro.crypto.hash">HashRequest.Builder</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">HashRequest.Builder.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/HashRequest.Builder.html#setSalt-org.apache.shiro.util.ByteSource-">setSalt</a></span>(<a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> salt)</code> |
| <div class="block">Sets a salt to be used by the <a href="../../../../../org/apache/shiro/crypto/hash/HashService.html" title="interface in org.apache.shiro.crypto.hash"><code>HashService</code></a> during hash computation.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/shiro/crypto/hash/HashRequest.Builder.html" title="class in org.apache.shiro.crypto.hash">HashRequest.Builder</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">HashRequest.Builder.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/HashRequest.Builder.html#setSource-org.apache.shiro.util.ByteSource-">setSource</a></span>(<a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> source)</code> |
| <div class="block">Sets the source data that will be hashed by a <a href="../../../../../org/apache/shiro/crypto/hash/HashService.html" title="interface in org.apache.shiro.crypto.hash"><code>HashService</code></a>.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing constructors, and an explanation"> |
| <caption><span>Constructors in <a href="../../../../../org/apache/shiro/crypto/hash/package-summary.html">org.apache.shiro.crypto.hash</a> with parameters of type <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/crypto/hash/SimpleHashRequest.html#SimpleHashRequest-java.lang.String-org.apache.shiro.util.ByteSource-org.apache.shiro.util.ByteSource-int-">SimpleHashRequest</a></span>(<a href="https://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> algorithmName, |
| <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> source, |
| <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> salt, |
| int iterations)</code> |
| <div class="block">Creates a new SimpleHashRequest instance.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </li> |
| <li class="blockList"><a name="org.apache.shiro.util"> |
| <!-- --> |
| </a> |
| <h3>Uses of <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> in <a href="../../../../../org/apache/shiro/util/package-summary.html">org.apache.shiro.util</a></h3> |
| <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing classes, and an explanation"> |
| <caption><span>Classes in <a href="../../../../../org/apache/shiro/util/package-summary.html">org.apache.shiro.util</a> that implement <a href="../../../../../org/apache/shiro/util/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="colLast" scope="col">Class and Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><code>class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/util/SimpleByteSource.html" title="class in org.apache.shiro.util">SimpleByteSource</a></span></code> |
| <div class="block">Very simple <a href="../../../../../org/apache/shiro/util/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="../../../../../org/apache/shiro/codec/Hex.html" title="class in org.apache.shiro.codec"><code>Hex</code></a> and <a href="../../../../../org/apache/shiro/codec/Base64.html" title="class in org.apache.shiro.codec"><code>Base64</code></a> codec classes to support the |
| <a href="../../../../../org/apache/shiro/util/SimpleByteSource.html#toHex--"><code>toHex()</code></a> and <a href="../../../../../org/apache/shiro/util/SimpleByteSource.html#toBase64--"><code>toBase64()</code></a> implementations.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> |
| <caption><span>Methods in <a href="../../../../../org/apache/shiro/util/package-summary.html">org.apache.shiro.util</a> that return <a href="../../../../../org/apache/shiro/util/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="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">ByteSource.Util.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/util/ByteSource.Util.html#bytes-byte:A-">bytes</a></span>(byte[] bytes)</code> |
| <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="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">ByteSource.Util.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/util/ByteSource.Util.html#bytes-org.apache.shiro.util.ByteSource-">bytes</a></span>(<a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> source)</code> |
| <div class="block">Returns a new <code>ByteSource</code> instance representing the specified ByteSource.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">ByteSource.Util.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/util/ByteSource.Util.html#bytes-char:A-">bytes</a></span>(char[] chars)</code> |
| <div class="block">Returns a new <code>ByteSource</code> instance representing the specified character array's bytes.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">ByteSource.Util.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/util/ByteSource.Util.html#bytes-java.io.File-">bytes</a></span>(<a href="https://docs.oracle.com/javase/6/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a> file)</code> |
| <div class="block">Returns a new <code>ByteSource</code> instance representing the specified File's bytes.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">ByteSource.Util.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/util/ByteSource.Util.html#bytes-java.io.InputStream-">bytes</a></span>(<a href="https://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> stream)</code> |
| <div class="block">Returns a new <code>ByteSource</code> instance representing the specified InputStream's bytes.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">ByteSource.Util.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/util/ByteSource.Util.html#bytes-java.lang.Object-">bytes</a></span>(<a href="https://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> source)</code> |
| <div class="block">Returns a <code>ByteSource</code> instance representing the specified byte source argument.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">ByteSource.Util.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/util/ByteSource.Util.html#bytes-java.lang.String-">bytes</a></span>(<a href="https://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> string)</code> |
| <div class="block">Returns a new <code>ByteSource</code> instance representing the specified string's bytes.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing methods, and an explanation"> |
| <caption><span>Methods in <a href="../../../../../org/apache/shiro/util/package-summary.html">org.apache.shiro.util</a> with parameters of type <a href="../../../../../org/apache/shiro/util/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="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><span class="typeNameLabel">ByteSource.Util.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/util/ByteSource.Util.html#bytes-org.apache.shiro.util.ByteSource-">bytes</a></span>(<a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> source)</code> |
| <div class="block">Returns a new <code>ByteSource</code> instance representing the specified ByteSource.</div> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <table class="useSummary" border="0" cellpadding="3" cellspacing="0" summary="Use table, listing constructors, and an explanation"> |
| <caption><span>Constructors in <a href="../../../../../org/apache/shiro/util/package-summary.html">org.apache.shiro.util</a> with parameters of type <a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/shiro/util/SimpleByteSource.html#SimpleByteSource-org.apache.shiro.util.ByteSource-">SimpleByteSource</a></span>(<a href="../../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> source)</code> |
| <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> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <!-- ======= 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><a href="../../../../../org/apache/shiro/util/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"> |
| <li>Prev</li> |
| <li>Next</li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/shiro/util/class-use/ByteSource.html" target="_top">Frames</a></li> |
| <li><a href="ByteSource.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> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2004–2020 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </body> |
| </html> |