| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!--NewPage--> |
| <HTML> |
| <HEAD> |
| <!-- Generated by javadoc (build 1.6.0_65) on Fri Mar 04 17:58:55 EST 2016 --> |
| <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <TITLE> |
| Base64 (Apache Shiro 1.2.4 API) |
| </TITLE> |
| |
| <META NAME="date" CONTENT="2016-03-04"> |
| |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
| |
| <SCRIPT type="text/javascript"> |
| function windowTitle() |
| { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="Base64 (Apache Shiro 1.2.4 API)"; |
| } |
| } |
| </SCRIPT> |
| <NOSCRIPT> |
| </NOSCRIPT> |
| |
| </HEAD> |
| |
| <BODY BGCOLOR="white" onload="windowTitle();"> |
| <HR> |
| |
| |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <A NAME="navbar_top"><!-- --></A> |
| <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_top_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Base64.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| PREV CLASS |
| <A HREF="../../../../org/apache/shiro/codec/CodecException.html" title="class in org.apache.shiro.codec"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../index.html?org/apache/shiro/codec/Base64.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="Base64.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_top"></A> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| |
| <HR> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <H2> |
| <FONT SIZE="-1"> |
| org.apache.shiro.codec</FONT> |
| <BR> |
| Class Base64</H2> |
| <PRE> |
| <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> |
| <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.shiro.codec.Base64</B> |
| </PRE> |
| <HR> |
| <DL> |
| <DT><PRE>public class <A HREF="../../../../src-html/org/apache/shiro/codec/Base64.html#line.39"><B>Base64</B></A><DT>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></DL> |
| </PRE> |
| |
| <P> |
| Provides <a href="http://en.wikipedia.org/wiki/Base64">Base 64</a> encoding and decoding as defined by |
| <a href="http://www.ietf.org/rfc/rfc2045.txt">RFC 2045</a>. |
| <p/> |
| This class implements section <cite>6.8. Base64 Content-Transfer-Encoding</cite> from RFC 2045 <cite>Multipurpose |
| Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies</cite> by Freed and Borenstein. |
| <p/> |
| This class was borrowed from Apache Commons Codec SVN repository (rev. 618419) with modifications |
| to enable Base64 conversion without a full dependecny on Commons Codec. We didn't want to reinvent the wheel of |
| great work they've done, but also didn't want to force every Shiro user to depend on the commons-codec.jar |
| <p/> |
| As per the Apache 2.0 license, the original copyright notice and all author and copyright information have |
| remained in tact. |
| <P> |
| |
| <P> |
| <DL> |
| <DT><B>Since:</B></DT> |
| <DD>0.9</DD> |
| <DT><B>See Also:</B><DD><a href="http://en.wikipedia.org/wiki/Base64">Wikipedia: Base 64</a>, |
| <a href="http://www.ietf.org/rfc/rfc2045.txt">RFC 2045</a></DL> |
| <HR> |
| |
| <P> |
| |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| |
| <A NAME="constructor_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Constructor Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../org/apache/shiro/codec/Base64.html#Base64()">Base64</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ========== METHOD SUMMARY =========== --> |
| |
| <A NAME="method_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Method Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static byte[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/shiro/codec/Base64.html#decode(byte[])">decode</A></B>(byte[] base64Data)</CODE> |
| |
| <BR> |
| Decodes Base64 data into octects</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static byte[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/shiro/codec/Base64.html#decode(java.lang.String)">decode</A></B>(<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> base64Encoded)</CODE> |
| |
| <BR> |
| Converts the specified UTF-8 Base64 encoded String and decodes it to a raw Base64 decoded byte array.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <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></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/shiro/codec/Base64.html#decodeToString(byte[])">decodeToString</A></B>(byte[] base64Encoded)</CODE> |
| |
| <BR> |
| Decodes the specified Base64 encoded byte array and returns the decoded result as a UTF-8 encoded.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <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></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/shiro/codec/Base64.html#decodeToString(java.lang.String)">decodeToString</A></B>(<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> base64Encoded)</CODE> |
| |
| <BR> |
| Converts the specified UTF-8 Base64 encoded String and decodes it to a resultant UTF-8 encoded string.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static byte[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/shiro/codec/Base64.html#encode(byte[])">encode</A></B>(byte[] pArray)</CODE> |
| |
| <BR> |
| Encodes a byte[] containing binary data, into a byte[] containing characters in the Base64 alphabet.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static byte[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/shiro/codec/Base64.html#encode(byte[], boolean)">encode</A></B>(byte[] binaryData, |
| boolean isChunked)</CODE> |
| |
| <BR> |
| Encodes binary data using the base64 algorithm, optionally chunking the output into 76 character blocks.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static byte[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/shiro/codec/Base64.html#encodeChunked(byte[])">encodeChunked</A></B>(byte[] binaryData)</CODE> |
| |
| <BR> |
| Encodes binary data using the base64 algorithm and chunks the encoded output into 76 character blocks</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <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></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/shiro/codec/Base64.html#encodeToString(byte[])">encodeToString</A></B>(byte[] bytes)</CODE> |
| |
| <BR> |
| Base64 encodes the specified byte array and then encodes it as a String using Shiro's preferred character |
| encoding (UTF-8).</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/shiro/codec/Base64.html#isBase64(byte[])">isBase64</A></B>(byte[] arrayOctect)</CODE> |
| |
| <BR> |
| Tests a given byte array to see if it contains only valid characters within the Base64 alphabet.</TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>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></B></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><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></TD> |
| </TR> |
| </TABLE> |
| |
| <P> |
| |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| |
| <A NAME="constructor_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Constructor Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="Base64()"><!-- --></A><H3> |
| Base64</H3> |
| <PRE> |
| public <A HREF="../../../../src-html/org/apache/shiro/codec/Base64.html#line.39"><B>Base64</B></A>()</PRE> |
| <DL> |
| </DL> |
| |
| <!-- ============ METHOD DETAIL ========== --> |
| |
| <A NAME="method_detail"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
| <B>Method Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="isBase64(byte[])"><!-- --></A><H3> |
| isBase64</H3> |
| <PRE> |
| public static boolean <A HREF="../../../../src-html/org/apache/shiro/codec/Base64.html#line.178"><B>isBase64</B></A>(byte[] arrayOctect)</PRE> |
| <DL> |
| <DD>Tests a given byte array to see if it contains only valid characters within the Base64 alphabet. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>arrayOctect</CODE> - byte array to test |
| <DT><B>Returns:</B><DD><code>true</code> if all bytes are valid characters in the Base64 alphabet or if the byte array is |
| empty; false, otherwise</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="encodeToString(byte[])"><!-- --></A><H3> |
| encodeToString</H3> |
| <PRE> |
| public static <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/codec/Base64.html#line.232"><B>encodeToString</B></A>(byte[] bytes)</PRE> |
| <DL> |
| <DD>Base64 encodes the specified byte array and then encodes it as a String using Shiro's preferred character |
| encoding (UTF-8). |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>bytes</CODE> - the byte array to Base64 encode. |
| <DT><B>Returns:</B><DD>a UTF-8 encoded String of the resulting Base64 encoded byte array.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="encodeChunked(byte[])"><!-- --></A><H3> |
| encodeChunked</H3> |
| <PRE> |
| public static byte[] <A HREF="../../../../src-html/org/apache/shiro/codec/Base64.html#line.243"><B>encodeChunked</B></A>(byte[] binaryData)</PRE> |
| <DL> |
| <DD>Encodes binary data using the base64 algorithm and chunks the encoded output into 76 character blocks |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>binaryData</CODE> - binary data to encodeToChars |
| <DT><B>Returns:</B><DD>Base64 characters chunked in 76 character blocks</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="encode(byte[])"><!-- --></A><H3> |
| encode</H3> |
| <PRE> |
| public static byte[] <A HREF="../../../../src-html/org/apache/shiro/codec/Base64.html#line.253"><B>encode</B></A>(byte[] pArray)</PRE> |
| <DL> |
| <DD>Encodes a byte[] containing binary data, into a byte[] containing characters in the Base64 alphabet. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>pArray</CODE> - a byte array containing binary data |
| <DT><B>Returns:</B><DD>A byte array containing only Base64 character data</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="encode(byte[], boolean)"><!-- --></A><H3> |
| encode</H3> |
| <PRE> |
| public static byte[] <A HREF="../../../../src-html/org/apache/shiro/codec/Base64.html#line.265"><B>encode</B></A>(byte[] binaryData, |
| boolean isChunked)</PRE> |
| <DL> |
| <DD>Encodes binary data using the base64 algorithm, optionally chunking the output into 76 character blocks. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>binaryData</CODE> - Array containing binary data to encodeToChars.<DD><CODE>isChunked</CODE> - if <code>true</code> this encoder will chunk the base64 output into 76 character blocks |
| <DT><B>Returns:</B><DD>Base64-encoded data. |
| <DT><B>Throws:</B> |
| <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> - Thrown when the input array needs an output array bigger than <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Integer.html?is-external=true#MAX_VALUE" title="class or interface in java.lang"><CODE>Integer.MAX_VALUE</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="decodeToString(java.lang.String)"><!-- --></A><H3> |
| decodeToString</H3> |
| <PRE> |
| public static <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/codec/Base64.html#line.390"><B>decodeToString</B></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> base64Encoded)</PRE> |
| <DL> |
| <DD>Converts the specified UTF-8 Base64 encoded String and decodes it to a resultant UTF-8 encoded string. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>base64Encoded</CODE> - a UTF-8 Base64 encoded String |
| <DT><B>Returns:</B><DD>the decoded String, UTF-8 encoded.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="decodeToString(byte[])"><!-- --></A><H3> |
| decodeToString</H3> |
| <PRE> |
| public static <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/codec/Base64.html#line.401"><B>decodeToString</B></A>(byte[] base64Encoded)</PRE> |
| <DL> |
| <DD>Decodes the specified Base64 encoded byte array and returns the decoded result as a UTF-8 encoded. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>base64Encoded</CODE> - a Base64 encoded byte array |
| <DT><B>Returns:</B><DD>the decoded String, UTF-8 encoded.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="decode(java.lang.String)"><!-- --></A><H3> |
| decode</H3> |
| <PRE> |
| public static byte[] <A HREF="../../../../src-html/org/apache/shiro/codec/Base64.html#line.412"><B>decode</B></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> base64Encoded)</PRE> |
| <DL> |
| <DD>Converts the specified UTF-8 Base64 encoded String and decodes it to a raw Base64 decoded byte array. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>base64Encoded</CODE> - a UTF-8 Base64 encoded String |
| <DT><B>Returns:</B><DD>the raw Base64 decoded byte array.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="decode(byte[])"><!-- --></A><H3> |
| decode</H3> |
| <PRE> |
| public static byte[] <A HREF="../../../../src-html/org/apache/shiro/codec/Base64.html#line.423"><B>decode</B></A>(byte[] base64Data)</PRE> |
| <DL> |
| <DD>Decodes Base64 data into octects |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>base64Data</CODE> - Byte array containing Base64 data |
| <DT><B>Returns:</B><DD>Array containing decoded data.</DL> |
| </DD> |
| </DL> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <HR> |
| |
| |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <A NAME="navbar_bottom"><!-- --></A> |
| <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_bottom_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Base64.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| PREV CLASS |
| <A HREF="../../../../org/apache/shiro/codec/CodecException.html" title="class in org.apache.shiro.codec"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../index.html?org/apache/shiro/codec/Base64.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="Base64.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_bottom"></A> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| |
| <HR> |
| Copyright © 2004-2016 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved. |
| </BODY> |
| </HTML> |