| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (1.8.0_92) on Mon Aug 29 13:54:35 EDT 2016 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>JcaCipherService (Apache Shiro 1.3.1 API)</title> |
| <meta name="date" content="2016-08-29"> |
| <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="JcaCipherService (Apache Shiro 1.3.1 API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":9,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10}; |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/JcaCipherService.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/shiro/crypto/DefaultBlockCipherService.html" title="class in org.apache.shiro.crypto"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/shiro/crypto/OperationMode.html" title="enum in org.apache.shiro.crypto"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/shiro/crypto/JcaCipherService.html" target="_top">Frames</a></li> |
| <li><a href="JcaCipherService.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.shiro.crypto</div> |
| <h2 title="Class JcaCipherService" class="title">Class JcaCipherService</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.shiro.crypto.JcaCipherService</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd><a href="../../../../org/apache/shiro/crypto/CipherService.html" title="interface in org.apache.shiro.crypto">CipherService</a></dd> |
| </dl> |
| <dl> |
| <dt>Direct Known Subclasses:</dt> |
| <dd><a href="../../../../org/apache/shiro/crypto/AbstractSymmetricCipherService.html" title="class in org.apache.shiro.crypto">AbstractSymmetricCipherService</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public abstract class <a href="../../../../src-html/org/apache/shiro/crypto/JcaCipherService.html#line.69">JcaCipherService</a> |
| extends <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> |
| implements <a href="../../../../org/apache/shiro/crypto/CipherService.html" title="interface in org.apache.shiro.crypto">CipherService</a></pre> |
| <div class="block">Abstract <code>CipherService</code> implementation utilizing Java's JCA APIs. |
| <h2>Auto-generated Initialization Vectors</h2> |
| Shiro does something by default for all of its <code>CipherService</code> implementations that the JCA |
| <a href="http://java.sun.com/javase/6/docs/api/javax/crypto/Cipher.html?is-external=true" title="class or interface in javax.crypto"><code>Cipher</code></a> does not do: by default, |
| <a href="http://en.wikipedia.org/wiki/Initialization_vector">initialization vector</a>s are automatically randomly |
| generated and prepended to encrypted data before returning from the <code>encrypt</code> methods. That is, the returned |
| byte array or <code>OutputStream</code> is actually a concatenation of an initialization vector byte array plus the actual |
| encrypted data byte array. The <code>decrypt</code> methods in turn know to read this prepended initialization vector |
| before decrypting the real data that follows. |
| <p/> |
| This is highly desirable because initialization vectors guarantee that, for a key and any plaintext, the encrypted |
| output will always be different <em>even if you call <code>encrypt</code> multiple times with the exact same arguments</em>. |
| This is essential in cryptography to ensure that data patterns cannot be identified across multiple input sources |
| that are the same or similar. |
| <p/> |
| You can turn off this behavior by setting the |
| <a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#setGenerateInitializationVectors-boolean-"><code>generateInitializationVectors</code></a> property to <code>false</code>, but it |
| is highly recommended that you do not do this unless you have a very good reason to do so, since you would be losing |
| a critical security feature. |
| <h3>Initialization Vector Size</h3> |
| This implementation defaults the <a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#setInitializationVectorSize-int-"><code>initializationVectorSize</code></a> attribute to |
| <code>128</code> bits, a fairly common size. Initialization vector sizes are very algorithm specific however, so subclass |
| implementations will often override this value in their constructor if necessary. |
| <p/> |
| Also note that <code>initializationVectorSize</code> values are specified in the number of |
| bits (not bytes!) to match common references in most cryptography documentation. In practice though, initialization |
| vectors are always specified as a byte array, so ensure that if you set this property, that the value is a multiple |
| of <code>8</code> to ensure that the IV can be correctly represented as a byte array (the |
| <a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#setInitializationVectorSize-int-"><code>setInitializationVectorSize</code></a> mutator method enforces this).</div> |
| <dl> |
| <dt><span class="simpleTagLabel">Since:</span></dt> |
| <dd>1.0</dd> |
| </dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier</th> |
| <th class="colLast" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#JcaCipherService-java.lang.String-">JcaCipherService</a></span>(<a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> algorithmName)</code> |
| <div class="block">Creates a new <code>JcaCipherService</code> instance which will use the specified cipher <code>algorithmName</code> |
| for all encryption, decryption, and key operations.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a></code></td> |
| <td class="colLast"><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> |
| <div class="block">Decrypts encrypted data via the specified cipher key and returns the original (pre-encrypted) data.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#decrypt-java.io.InputStream-java.io.OutputStream-byte:A-">decrypt</a></span>(<a href="http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> in, |
| <a href="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, |
| byte[] key)</code> |
| <div class="block">Receives encrypted data from the given <code>InputStream</code>, decrypts it, and sends the resulting decrypted data |
| to the given <code>OutputStream</code>.</div> |
| </td> |
| </tr> |
| <tr id="i2" 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"><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> |
| <div class="block">Encrypts data via the specified cipher key.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#encrypt-java.io.InputStream-java.io.OutputStream-byte:A-">encrypt</a></span>(<a href="http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> in, |
| <a href="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, |
| byte[] key)</code> |
| <div class="block">Receives the data from the given <code>InputStream</code>, encrypts it, and sends the resulting encrypted data to the |
| given <code>OutputStream</code>.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>protected <a href="http://java.sun.com/javase/6/docs/api/java/security/SecureRandom.html?is-external=true" title="class or interface in java.security">SecureRandom</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#ensureSecureRandom--">ensureSecureRandom</a></span>()</code> </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>protected byte[]</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#generateInitializationVector-boolean-">generateInitializationVector</a></span>(boolean streaming)</code> </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code><a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#getAlgorithmName--">getAlgorithmName</a></span>()</code> |
| <div class="block">Returns the cipher algorithm name that will be used for all encryption, decryption, and key operations (for |
| example, 'AES', 'Blowfish', 'RSA', 'DSA', 'TripleDES', etc).</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>protected static <a href="http://java.sun.com/javase/6/docs/api/java/security/SecureRandom.html?is-external=true" title="class or interface in java.security">SecureRandom</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#getDefaultSecureRandom--">getDefaultSecureRandom</a></span>()</code> </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#getInitializationVectorSize--">getInitializationVectorSize</a></span>()</code> |
| <div class="block">Returns the algorithm-specific size in bits of generated initialization vectors.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#getKeySize--">getKeySize</a></span>()</code> |
| <div class="block">Returns the size in bits (not bytes) of generated cipher keys.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code><a href="http://java.sun.com/javase/6/docs/api/java/security/SecureRandom.html?is-external=true" title="class or interface in java.security">SecureRandom</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#getSecureRandom--">getSecureRandom</a></span>()</code> |
| <div class="block">Returns a source of randomness for encryption operations.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#getStreamingBufferSize--">getStreamingBufferSize</a></span>()</code> |
| <div class="block">Returns the size in bytes of the internal buffer used to transfer data from one stream to another during stream |
| operations (<a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#encrypt-java.io.InputStream-java.io.OutputStream-byte:A-"><code>encrypt(java.io.InputStream, java.io.OutputStream, byte[])</code></a> and |
| <a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#decrypt-java.io.InputStream-java.io.OutputStream-byte:A-"><code>decrypt(java.io.InputStream, java.io.OutputStream, byte[])</code></a>).</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>protected <a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#getTransformationString-boolean-">getTransformationString</a></span>(boolean streaming)</code> |
| <div class="block">Returns the transformation string to use with the <a href="http://java.sun.com/javase/6/docs/api/javax/crypto/Cipher.html?is-external=true#getInstance-java.lang.String-" title="class or interface in javax.crypto"><code>Cipher.getInstance(java.lang.String)</code></a> invocation when |
| creating a new <code>Cipher</code> instance.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#isGenerateInitializationVectors--">isGenerateInitializationVectors</a></span>()</code> </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>protected boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#isGenerateInitializationVectors-boolean-">isGenerateInitializationVectors</a></span>(boolean streaming)</code> </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#setGenerateInitializationVectors-boolean-">setGenerateInitializationVectors</a></span>(boolean generateInitializationVectors)</code> </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#setInitializationVectorSize-int-">setInitializationVectorSize</a></span>(int initializationVectorSize)</code> |
| <div class="block">Sets the algorithm-specific initialization vector size in bits (not bytes!) to be used when generating |
| initialization vectors.</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#setKeySize-int-">setKeySize</a></span>(int keySize)</code> |
| <div class="block">Sets the size in bits (not bytes) of generated cipher keys.</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#setSecureRandom-java.security.SecureRandom-">setSecureRandom</a></span>(<a href="http://java.sun.com/javase/6/docs/api/java/security/SecureRandom.html?is-external=true" title="class or interface in java.security">SecureRandom</a> secureRandom)</code> |
| <div class="block">Sets a source of randomness for encryption operations.</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#setStreamingBufferSize-int-">setStreamingBufferSize</a></span>(int streamingBufferSize)</code> |
| <div class="block">Sets the size in bytes of the internal buffer used to transfer data from one stream to another during stream |
| operations (<a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#encrypt-java.io.InputStream-java.io.OutputStream-byte:A-"><code>encrypt(java.io.InputStream, java.io.OutputStream, byte[])</code></a> and |
| <a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#decrypt-java.io.InputStream-java.io.OutputStream-byte:A-"><code>decrypt(java.io.InputStream, java.io.OutputStream, byte[])</code></a>).</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="JcaCipherService-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>JcaCipherService</h4> |
| <pre>protected <a href="../../../../src-html/org/apache/shiro/crypto/JcaCipherService.html#line.125">JcaCipherService</a>(<a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> algorithmName)</pre> |
| <div class="block">Creates a new <code>JcaCipherService</code> instance which will use the specified cipher <code>algorithmName</code> |
| for all encryption, decryption, and key operations. Also, the following defaults are set: |
| <ul> |
| <li><a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#setKeySize-int-"><code>keySize</code></a> = 128 bits</li> |
| <li><a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#setInitializationVectorSize-int-"><code>initializationVectorSize</code></a> = 128 bits</li> |
| <li><a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#setStreamingBufferSize-int-"><code>streamingBufferSize</code></a> = 512 bytes</li> |
| </ul></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>algorithmName</code> - the name of the cipher algorithm to use for all encryption, decryption, and key operations</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="getAlgorithmName--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAlgorithmName</h4> |
| <pre>public <a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/shiro/crypto/JcaCipherService.html#line.142">getAlgorithmName</a>()</pre> |
| <div class="block">Returns the cipher algorithm name that will be used for all encryption, decryption, and key operations (for |
| example, 'AES', 'Blowfish', 'RSA', 'DSA', 'TripleDES', etc).</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the cipher algorithm name that will be used for all encryption, decryption, and key operations</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getKeySize--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getKeySize</h4> |
| <pre>public int <a href="../../../../src-html/org/apache/shiro/crypto/JcaCipherService.html#line.151">getKeySize</a>()</pre> |
| <div class="block">Returns the size in bits (not bytes) of generated cipher keys.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the size in bits (not bytes) of generated cipher keys.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setKeySize-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setKeySize</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/shiro/crypto/JcaCipherService.html#line.160">setKeySize</a>(int keySize)</pre> |
| <div class="block">Sets the size in bits (not bytes) of generated cipher keys.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>keySize</code> - the size in bits (not bytes) of generated cipher keys.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="isGenerateInitializationVectors--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isGenerateInitializationVectors</h4> |
| <pre>public boolean <a href="../../../../src-html/org/apache/shiro/crypto/JcaCipherService.html#line.164">isGenerateInitializationVectors</a>()</pre> |
| </li> |
| </ul> |
| <a name="setGenerateInitializationVectors-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setGenerateInitializationVectors</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/shiro/crypto/JcaCipherService.html#line.168">setGenerateInitializationVectors</a>(boolean generateInitializationVectors)</pre> |
| </li> |
| </ul> |
| <a name="getInitializationVectorSize--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getInitializationVectorSize</h4> |
| <pre>public int <a href="../../../../src-html/org/apache/shiro/crypto/JcaCipherService.html#line.177">getInitializationVectorSize</a>()</pre> |
| <div class="block">Returns the algorithm-specific size in bits of generated initialization vectors.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the algorithm-specific size in bits of generated initialization vectors.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setInitializationVectorSize-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setInitializationVectorSize</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/shiro/crypto/JcaCipherService.html#line.189">setInitializationVectorSize</a>(int initializationVectorSize) |
| throws <a href="http://java.sun.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre> |
| <div class="block">Sets the algorithm-specific initialization vector size in bits (not bytes!) to be used when generating |
| initialization vectors. The value must be a multiple of <code>8</code> to ensure that the IV can be represented |
| as a byte array.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>initializationVectorSize</code> - the size in bits (not bytes) of generated initialization vectors.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="http://java.sun.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if the size is not a multiple of <code>8</code>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="isGenerateInitializationVectors-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isGenerateInitializationVectors</h4> |
| <pre>protected boolean <a href="../../../../src-html/org/apache/shiro/crypto/JcaCipherService.html#line.198">isGenerateInitializationVectors</a>(boolean streaming)</pre> |
| </li> |
| </ul> |
| <a name="getStreamingBufferSize--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getStreamingBufferSize</h4> |
| <pre>public int <a href="../../../../src-html/org/apache/shiro/crypto/JcaCipherService.html#line.212">getStreamingBufferSize</a>()</pre> |
| <div class="block">Returns the size in bytes of the internal buffer used to transfer data from one stream to another during stream |
| operations (<a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#encrypt-java.io.InputStream-java.io.OutputStream-byte:A-"><code>encrypt(java.io.InputStream, java.io.OutputStream, byte[])</code></a> and |
| <a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#decrypt-java.io.InputStream-java.io.OutputStream-byte:A-"><code>decrypt(java.io.InputStream, java.io.OutputStream, byte[])</code></a>). |
| <p/> |
| Default size is <code>512</code> bytes.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the size of the internal buffer used to transfer data from one stream to another during stream |
| operations</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setStreamingBufferSize-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setStreamingBufferSize</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/shiro/crypto/JcaCipherService.html#line.226">setStreamingBufferSize</a>(int streamingBufferSize)</pre> |
| <div class="block">Sets the size in bytes of the internal buffer used to transfer data from one stream to another during stream |
| operations (<a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#encrypt-java.io.InputStream-java.io.OutputStream-byte:A-"><code>encrypt(java.io.InputStream, java.io.OutputStream, byte[])</code></a> and |
| <a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#decrypt-java.io.InputStream-java.io.OutputStream-byte:A-"><code>decrypt(java.io.InputStream, java.io.OutputStream, byte[])</code></a>). |
| <p/> |
| Default size is <code>512</code> bytes.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>streamingBufferSize</code> - the size of the internal buffer used to transfer data from one stream to another |
| during stream operations</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getSecureRandom--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSecureRandom</h4> |
| <pre>public <a href="http://java.sun.com/javase/6/docs/api/java/security/SecureRandom.html?is-external=true" title="class or interface in java.security">SecureRandom</a> <a href="../../../../src-html/org/apache/shiro/crypto/JcaCipherService.html#line.237">getSecureRandom</a>()</pre> |
| <div class="block">Returns a source of randomness for encryption operations. If one is not configured, and the underlying |
| algorithm needs one, the JDK <code>SHA1PRNG</code> instance will be used by default.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a source of randomness for encryption operations. If one is not configured, and the underlying |
| algorithm needs one, the JDK <code>SHA1PRNG</code> instance will be used by default.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="setSecureRandom-java.security.SecureRandom-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>setSecureRandom</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/shiro/crypto/JcaCipherService.html#line.248">setSecureRandom</a>(<a href="http://java.sun.com/javase/6/docs/api/java/security/SecureRandom.html?is-external=true" title="class or interface in java.security">SecureRandom</a> secureRandom)</pre> |
| <div class="block">Sets a source of randomness for encryption operations. If one is not configured, and the underlying |
| algorithm needs one, the JDK <code>SHA1PRNG</code> instance will be used by default.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>secureRandom</code> - a source of randomness for encryption operations. If one is not configured, and the |
| underlying algorithm needs one, the JDK <code>SHA1PRNG</code> instance will be used by default.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getDefaultSecureRandom--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDefaultSecureRandom</h4> |
| <pre>protected static <a href="http://java.sun.com/javase/6/docs/api/java/security/SecureRandom.html?is-external=true" title="class or interface in java.security">SecureRandom</a> <a href="../../../../src-html/org/apache/shiro/crypto/JcaCipherService.html#line.252">getDefaultSecureRandom</a>()</pre> |
| </li> |
| </ul> |
| <a name="ensureSecureRandom--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ensureSecureRandom</h4> |
| <pre>protected <a href="http://java.sun.com/javase/6/docs/api/java/security/SecureRandom.html?is-external=true" title="class or interface in java.security">SecureRandom</a> <a href="../../../../src-html/org/apache/shiro/crypto/JcaCipherService.html#line.262">ensureSecureRandom</a>()</pre> |
| </li> |
| </ul> |
| <a name="getTransformationString-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getTransformationString</h4> |
| <pre>protected <a href="http://java.sun.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../src-html/org/apache/shiro/crypto/JcaCipherService.html#line.280">getTransformationString</a>(boolean streaming)</pre> |
| <div class="block">Returns the transformation string to use with the <a href="http://java.sun.com/javase/6/docs/api/javax/crypto/Cipher.html?is-external=true#getInstance-java.lang.String-" title="class or interface in javax.crypto"><code>Cipher.getInstance(java.lang.String)</code></a> invocation when |
| creating a new <code>Cipher</code> instance. This default implementation always returns |
| <a href="../../../../org/apache/shiro/crypto/JcaCipherService.html#getAlgorithmName--"><code>getAlgorithmName()</code></a>. Block cipher implementations will want to override this method |
| to support appending cipher operation modes and padding schemes.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>streaming</code> - if the transformation string is going to be used for a Cipher for stream-based encryption or not.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the transformation string to use with the <a href="http://java.sun.com/javase/6/docs/api/javax/crypto/Cipher.html?is-external=true#getInstance-java.lang.String-" title="class or interface in javax.crypto"><code>Cipher.getInstance(java.lang.String)</code></a> invocation when |
| creating a new <code>Cipher</code> instance.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="generateInitializationVector-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>generateInitializationVector</h4> |
| <pre>protected byte[] <a href="../../../../src-html/org/apache/shiro/crypto/JcaCipherService.html#line.284">generateInitializationVector</a>(boolean streaming)</pre> |
| </li> |
| </ul> |
| <a name="encrypt-byte:A-byte:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>encrypt</h4> |
| <pre>public <a href="../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> <a href="../../../../src-html/org/apache/shiro/crypto/JcaCipherService.html#line.303">encrypt</a>(byte[] plaintext, |
| byte[] key)</pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/shiro/crypto/CipherService.html#encrypt-byte:A-byte:A-">CipherService</a></code></span></div> |
| <div class="block">Encrypts data via the specified cipher key. Note that the key must be in a format understood by |
| the <code>CipherService</code> implementation.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/shiro/crypto/CipherService.html#encrypt-byte:A-byte:A-">encrypt</a></code> in interface <code><a href="../../../../org/apache/shiro/crypto/CipherService.html" title="interface in org.apache.shiro.crypto">CipherService</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>plaintext</code> - the data to encrypt</dd> |
| <dd><code>key</code> - the cipher key used during encryption.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a byte source with the encrypted representation of the specified raw data.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="decrypt-byte:A-byte:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>decrypt</h4> |
| <pre>public <a href="../../../../org/apache/shiro/util/ByteSource.html" title="interface in org.apache.shiro.util">ByteSource</a> <a href="../../../../src-html/org/apache/shiro/crypto/JcaCipherService.html#line.347">decrypt</a>(byte[] ciphertext, |
| byte[] key) |
| throws <a href="../../../../org/apache/shiro/crypto/CryptoException.html" title="class in org.apache.shiro.crypto">CryptoException</a></pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/shiro/crypto/CipherService.html#decrypt-byte:A-byte:A-">CipherService</a></code></span></div> |
| <div class="block">Decrypts encrypted data via the specified cipher key and returns the original (pre-encrypted) data. |
| Note that the key must be in a format understood by the CipherService implementation.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/shiro/crypto/CipherService.html#decrypt-byte:A-byte:A-">decrypt</a></code> in interface <code><a href="../../../../org/apache/shiro/crypto/CipherService.html" title="interface in org.apache.shiro.crypto">CipherService</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>ciphertext</code> - the previously encrypted data to decrypt</dd> |
| <dd><code>key</code> - the cipher key used during decryption.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a byte source representing the original form of the specified encrypted data.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../org/apache/shiro/crypto/CryptoException.html" title="class in org.apache.shiro.crypto">CryptoException</a></code> - if there is an error during decryption</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="encrypt-java.io.InputStream-java.io.OutputStream-byte:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>encrypt</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/shiro/crypto/JcaCipherService.html#line.500">encrypt</a>(<a href="http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> in, |
| <a href="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, |
| byte[] key) |
| throws <a href="../../../../org/apache/shiro/crypto/CryptoException.html" title="class in org.apache.shiro.crypto">CryptoException</a></pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/shiro/crypto/CipherService.html#encrypt-java.io.InputStream-java.io.OutputStream-byte:A-">CipherService</a></code></span></div> |
| <div class="block">Receives the data from the given <code>InputStream</code>, encrypts it, and sends the resulting encrypted data to the |
| given <code>OutputStream</code>. |
| <p/> |
| <b>NOTE:</b> This method <em>does NOT</em> flush or close either stream prior to returning - the caller must |
| do so when they are finished with the streams. For example: |
| <pre> |
| try { |
| InputStream in = ... |
| OutputStream out = ... |
| cipherService.encrypt(in, out, encryptionKey); |
| } finally { |
| if (in != null) { |
| try { |
| in.close(); |
| } catch (IOException ioe1) { ... log, trigger event, etc } |
| } |
| if (out != null) { |
| try { |
| out.close(); |
| } catch (IOException ioe2) { ... log, trigger event, etc } |
| } |
| } |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/shiro/crypto/CipherService.html#encrypt-java.io.InputStream-java.io.OutputStream-byte:A-">encrypt</a></code> in interface <code><a href="../../../../org/apache/shiro/crypto/CipherService.html" title="interface in org.apache.shiro.crypto">CipherService</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>in</code> - the stream supplying the data to encrypt</dd> |
| <dd><code>out</code> - the stream to send the encrypted data</dd> |
| <dd><code>key</code> - the cipher key to use for encryption</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../org/apache/shiro/crypto/CryptoException.html" title="class in org.apache.shiro.crypto">CryptoException</a></code> - if there is any problem during encryption.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="decrypt-java.io.InputStream-java.io.OutputStream-byte:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>decrypt</h4> |
| <pre>public void <a href="../../../../src-html/org/apache/shiro/crypto/JcaCipherService.html#line.526">decrypt</a>(<a href="http://java.sun.com/javase/6/docs/api/java/io/InputStream.html?is-external=true" title="class or interface in java.io">InputStream</a> in, |
| <a href="http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</a> out, |
| byte[] key) |
| throws <a href="../../../../org/apache/shiro/crypto/CryptoException.html" title="class in org.apache.shiro.crypto">CryptoException</a></pre> |
| <div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../org/apache/shiro/crypto/CipherService.html#decrypt-java.io.InputStream-java.io.OutputStream-byte:A-">CipherService</a></code></span></div> |
| <div class="block">Receives encrypted data from the given <code>InputStream</code>, decrypts it, and sends the resulting decrypted data |
| to the given <code>OutputStream</code>. |
| <p/> |
| <b>NOTE:</b> This method <em>does NOT</em> flush or close either stream prior to returning - the caller must |
| do so when they are finished with the streams. For example: |
| <pre> |
| try { |
| InputStream in = ... |
| OutputStream out = ... |
| cipherService.decrypt(in, out, decryptionKey); |
| } finally { |
| if (in != null) { |
| try { |
| in.close(); |
| } catch (IOException ioe1) { ... log, trigger event, etc } |
| } |
| if (out != null) { |
| try { |
| out.close(); |
| } catch (IOException ioe2) { ... log, trigger event, etc } |
| } |
| } |
| </pre></div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> |
| <dd><code><a href="../../../../org/apache/shiro/crypto/CipherService.html#decrypt-java.io.InputStream-java.io.OutputStream-byte:A-">decrypt</a></code> in interface <code><a href="../../../../org/apache/shiro/crypto/CipherService.html" title="interface in org.apache.shiro.crypto">CipherService</a></code></dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>in</code> - the stream supplying the data to decrypt</dd> |
| <dd><code>out</code> - the stream to send the decrypted data</dd> |
| <dd><code>key</code> - the cipher key to use for decryption</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="../../../../org/apache/shiro/crypto/CryptoException.html" title="class in org.apache.shiro.crypto">CryptoException</a></code> - if there is any problem during decryption.</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/JcaCipherService.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/shiro/crypto/DefaultBlockCipherService.html" title="class in org.apache.shiro.crypto"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/shiro/crypto/OperationMode.html" title="enum in org.apache.shiro.crypto"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/shiro/crypto/JcaCipherService.html" target="_top">Frames</a></li> |
| <li><a href="JcaCipherService.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2004-2016 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.</small></p> |
| </body> |
| </html> |