Modified: websites/production/turbine/content/fulcrum/fulcrum-crypto/apidocs/overview-summary.html ============================================================================== --- websites/production/turbine/content/fulcrum/fulcrum-crypto/apidocs/overview-summary.html (original) +++ websites/production/turbine/content/fulcrum/fulcrum-crypto/apidocs/overview-summary.html Mon May 20 14:36:24 2019 @@ -1,162 +1,147 @@ <!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.5.0_19) on Thu Sep 10 09:16:23 CEST 2009 --> -<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> -<TITLE> -Overview (Fulcrum Crypto 1.0.7 API) -</TITLE> - -<META NAME="keywords" CONTENT="Overview, Fulcrum Crypto 1.0.7 API"> - -<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> - -<SCRIPT type="text/javascript"> -function windowTitle() -{ - parent.document.title="Overview (Fulcrum Crypto 1.0.7 API)"; -} -</SCRIPT> -<NOSCRIPT> -</NOSCRIPT> - -</HEAD> - -<BODY BGCOLOR="white" onload="windowTitle();"> - - +<!-- NewPage --> +<html lang="en"> +<head> +<!-- Generated by javadoc --> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<title>Overview (Fulcrum Crypto 1.0.8 API)</title> +<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="Overview (Fulcrum Crypto 1.0.8 API)"; + } + } + catch(err) { + } +//--> +</script> +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> <!-- ========= 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="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Overview</B></FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Use</FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-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 - NEXT</FONT></TD> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="index.html?overview-summary.html" target="_top"><B>FRAMES</B></A> - <A HREF="overview-summary.html" target="_top"><B>NO FRAMES</B></A> - <SCRIPT type="text/javascript"> - <!-- +<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 class="navBarCell1Rev">Overview</li> +<li>Package</li> +<li>Class</li> +<li>Use</li> +<li><a href="overview-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?overview-summary.html" target="_top">Frames</a></li> +<li><a href="overview-summary.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) { - document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>'); + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; } //--> -</SCRIPT> -<NOSCRIPT> - <A HREF="allclasses-noframe.html"><B>All Classes</B></A> -</NOSCRIPT> - - -</FONT></TD> -</TR> -</TABLE> -<A NAME="skip-navbar_top"></A> +</script> +</div> +<a name="skip.navbar.top"> +<!-- --> +</a></div> <!-- ========= END OF TOP NAVBAR ========= --> - -<HR> -<CENTER> -<H1> -Fulcrum Crypto 1.0.7 API -</H1> -</CENTER> - -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> -<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> -<B>Packages</B></FONT></TH> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD WIDTH="20%"><B><A HREF="org/apache/fulcrum/crypto/package-summary.html">org.apache.fulcrum.crypto</A></B></TD> -<TD>Contains the Crypto Service providing you with a variety of Crypto algorithms.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD WIDTH="20%"><B><A HREF="org/apache/fulcrum/crypto/impl/package-summary.html">org.apache.fulcrum.crypto.impl</A></B></TD> -<TD> </TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD WIDTH="20%"><B><A HREF="org/apache/fulcrum/crypto/provider/package-summary.html">org.apache.fulcrum.crypto.provider</A></B></TD> -<TD>Algorithm providers for the Crypto Service.</TD> -</TR> -</TABLE> - -<P> - <HR> - - +<div class="header"> +<h1 class="title">Fulcrum Crypto 1.0.8 API</h1> +</div> +<div class="contentContainer"> +<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Packages table, listing packages, and an explanation"> +<caption><span>Packages</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/fulcrum/crypto/package-summary.html">org.apache.fulcrum.crypto</a></td> +<td class="colLast"> +<div class="block">Contains the Crypto Service providing you with a variety of Crypto algorithms.</div> +</td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><a href="org/apache/fulcrum/crypto/provider/package-summary.html">org.apache.fulcrum.crypto.provider</a></td> +<td class="colLast"> +<div class="block">Algorithm providers for the Crypto Service.</div> +</td> +</tr> +</tbody> +</table> +</div> <!-- ======= 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="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Overview</B></FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Use</FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-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 - NEXT</FONT></TD> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="index.html?overview-summary.html" target="_top"><B>FRAMES</B></A> - <A HREF="overview-summary.html" target="_top"><B>NO FRAMES</B></A> - <SCRIPT type="text/javascript"> - <!-- +<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 class="navBarCell1Rev">Overview</li> +<li>Package</li> +<li>Class</li> +<li>Use</li> +<li><a href="overview-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?overview-summary.html" target="_top">Frames</a></li> +<li><a href="overview-summary.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) { - document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>'); + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; } //--> -</SCRIPT> -<NOSCRIPT> - <A HREF="allclasses-noframe.html"><B>All Classes</B></A> -</NOSCRIPT> - - -</FONT></TD> -</TR> -</TABLE> -<A NAME="skip-navbar_bottom"></A> +</script> +</div> +<a name="skip.navbar.bottom"> +<!-- --> +</a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> - -<HR> -Copyright © 2005-2009 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved. -</BODY> -</HTML> +<p class="legalCopy"><small>Copyright © 2005–2019 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> +</body> +</html> \ No newline at end of file
Modified: websites/production/turbine/content/fulcrum/fulcrum-crypto/apidocs/overview-tree.html ============================================================================== --- websites/production/turbine/content/fulcrum/fulcrum-crypto/apidocs/overview-tree.html (original) +++ websites/production/turbine/content/fulcrum/fulcrum-crypto/apidocs/overview-tree.html Mon May 20 14:36:24 2019 @@ -1,162 +1,152 @@ <!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.5.0_19) on Thu Sep 10 09:16:23 CEST 2009 --> -<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> -<TITLE> -Class Hierarchy (Fulcrum Crypto 1.0.7 API) -</TITLE> - - -<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> - -<SCRIPT type="text/javascript"> -function windowTitle() -{ - parent.document.title="Class Hierarchy (Fulcrum Crypto 1.0.7 API)"; -} -</SCRIPT> -<NOSCRIPT> -</NOSCRIPT> - -</HEAD> - -<BODY BGCOLOR="white" onload="windowTitle();"> - - +<!-- NewPage --> +<html lang="en"> +<head> +<!-- Generated by javadoc --> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<title>Class Hierarchy (Fulcrum Crypto 1.0.8 API)</title> +<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="Class Hierarchy (Fulcrum Crypto 1.0.8 API)"; + } + } + catch(err) { + } +//--> +</script> +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> <!-- ========= 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"> <FONT CLASS="NavBarFont1">Package</FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Use</FONT> </TD> - <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Tree</B></FONT> </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 - NEXT</FONT></TD> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="index.html?overview-tree.html" target="_top"><B>FRAMES</B></A> - <A HREF="overview-tree.html" target="_top"><B>NO FRAMES</B></A> - <SCRIPT type="text/javascript"> - <!-- +<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>Package</li> +<li>Class</li> +<li>Use</li> +<li class="navBarCell1Rev">Tree</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?overview-tree.html" target="_top">Frames</a></li> +<li><a href="overview-tree.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) { - document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>'); + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; } //--> -</SCRIPT> -<NOSCRIPT> - <A HREF="allclasses-noframe.html"><B>All Classes</B></A> -</NOSCRIPT> - - -</FONT></TD> -</TR> -</TABLE> -<A NAME="skip-navbar_top"></A> +</script> +</div> +<a name="skip.navbar.top"> +<!-- --> +</a></div> <!-- ========= END OF TOP NAVBAR ========= --> - -<HR> -<CENTER> -<H2> -Hierarchy For All Packages</H2> -</CENTER> -<DL> -<DT><B>Package Hierarchies:</B><DD><A HREF="org/apache/fulcrum/crypto/package-tree.html">org.apache.fulcrum.crypto</A>, <A HREF="org/apache/fulcrum/crypto/impl/package-tree.html">org.apache.fulcrum.crypto.impl</A>, <A HREF="org/apache/fulcrum/crypto/provider/package-tree.html">org.apache.fulcrum.crypto.provider</A></DL> -<HR> -<H2> -Class Hierarchy -</H2> -<UL> -<LI TYPE="circle">java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang"><B>Object</B></A><UL> -<LI TYPE="circle">org.apache.avalon.framework.logger.AbstractLogEnabled (implements org.apache.avalon.framework.logger.LogEnabled) -<UL> -<LI TYPE="circle">org.apache.fulcrum.crypto.<A HREF="org/apache/fulcrum/crypto/DefaultCryptoService.html" title="class in org.apache.fulcrum.crypto"><B>DefaultCryptoService</B></A> (implements org.apache.avalon.framework.configuration.Configurable, org.apache.fulcrum.crypto.<A HREF="org/apache/fulcrum/crypto/CryptoService.html" title="interface in org.apache.fulcrum.crypto">CryptoService</A>, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.thread.ThreadSafe) -</UL> -<LI TYPE="circle">org.apache.fulcrum.crypto.impl.<A HREF="org/apache/fulcrum/crypto/impl/Base64.html" title="class in org.apache.fulcrum.crypto.impl"><B>Base64</B></A><LI TYPE="circle">org.apache.fulcrum.crypto.provider.<A HREF="org/apache/fulcrum/crypto/provider/ClearCrypt.html" title="class in org.apache.fulcrum.crypto.provider"><B>ClearCrypt</B></A> (implements org.apache.fulcrum.crypto.<A HREF="org/apache/fulcrum/crypto/CryptoAlgorithm.html" title="interface in org.apache.fulcrum.crypto">CryptoAlgorithm</A>) -<LI TYPE="circle">org.apache.fulcrum.crypto.provider.<A HREF="org/apache/fulcrum/crypto/provider/JavaCrypt.html" title="class in org.apache.fulcrum.crypto.provider"><B>JavaCrypt</B></A> (implements org.apache.fulcrum.crypto.<A HREF="org/apache/fulcrum/crypto/CryptoAlgorithm.html" title="interface in org.apache.fulcrum.crypto">CryptoAlgorithm</A>) -<LI TYPE="circle">org.apache.fulcrum.crypto.provider.<A HREF="org/apache/fulcrum/crypto/provider/OldJavaCrypt.html" title="class in org.apache.fulcrum.crypto.provider"><B>OldJavaCrypt</B></A> (implements org.apache.fulcrum.crypto.<A HREF="org/apache/fulcrum/crypto/CryptoAlgorithm.html" title="interface in org.apache.fulcrum.crypto">CryptoAlgorithm</A>) -<LI TYPE="circle">org.apache.fulcrum.crypto.impl.<A HREF="org/apache/fulcrum/crypto/impl/UnixCrypt.html" title="class in org.apache.fulcrum.crypto.impl"><B>UnixCrypt</B></A><LI TYPE="circle">org.apache.fulcrum.crypto.provider.<A HREF="org/apache/fulcrum/crypto/provider/UnixCrypt.html" title="class in org.apache.fulcrum.crypto.provider"><B>UnixCrypt</B></A> (implements org.apache.fulcrum.crypto.<A HREF="org/apache/fulcrum/crypto/CryptoAlgorithm.html" title="interface in org.apache.fulcrum.crypto">CryptoAlgorithm</A>) -</UL> -</UL> -<H2> -Interface Hierarchy -</H2> -<UL> -<LI TYPE="circle">org.apache.fulcrum.crypto.<A HREF="org/apache/fulcrum/crypto/CryptoAlgorithm.html" title="interface in org.apache.fulcrum.crypto"><B>CryptoAlgorithm</B></A><LI TYPE="circle">org.apache.fulcrum.crypto.<A HREF="org/apache/fulcrum/crypto/CryptoService.html" title="interface in org.apache.fulcrum.crypto"><B>CryptoService</B></A></UL> -<HR> - - +<div class="header"> +<h1 class="title">Hierarchy For All Packages</h1> +<span class="packageHierarchyLabel">Package Hierarchies:</span> +<ul class="horizontal"> +<li><a href="org/apache/fulcrum/crypto/package-tree.html">org.apache.fulcrum.crypto</a>, </li> +<li><a href="org/apache/fulcrum/crypto/provider/package-tree.html">org.apache.fulcrum.crypto.provider</a></li> +</ul> +</div> +<div class="contentContainer"> +<h2 title="Class Hierarchy">Class Hierarchy</h2> +<ul> +<li type="circle">java.lang.<a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang"><span class="typeNameLink">Object</span></a> +<ul> +<li type="circle">org.apache.avalon.framework.logger.AbstractLogEnabled (implements org.apache.avalon.framework.logger.LogEnabled) +<ul> +<li type="circle">org.apache.fulcrum.crypto.<a href="org/apache/fulcrum/crypto/DefaultCryptoService.html" title="class in org.apache.fulcrum.crypto"><span class="typeNameLink">DefaultCryptoService</span></a> (implements org.apache.avalon.framework.configuration.Configurable, org.apache.fulcrum.crypto.<a href="org/apache/fulcrum/crypto/CryptoService.html" title="interface in org.apache.fulcrum.crypto">CryptoService</a>, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.thread.ThreadSafe)</li> +</ul> +</li> +<li type="circle">org.apache.fulcrum.crypto.provider.<a href="org/apache/fulcrum/crypto/provider/ClearCrypt.html" title="class in org.apache.fulcrum.crypto.provider"><span class="typeNameLink">ClearCrypt</span></a> (implements org.apache.fulcrum.crypto.<a href="org/apache/fulcrum/crypto/CryptoAlgorithm.html" title="interface in org.apache.fulcrum.crypto">CryptoAlgorithm</a>)</li> +<li type="circle">org.apache.fulcrum.crypto.provider.<a href="org/apache/fulcrum/crypto/provider/JavaCrypt.html" title="class in org.apache.fulcrum.crypto.provider"><span class="typeNameLink">JavaCrypt</span></a> (implements org.apache.fulcrum.crypto.<a href="org/apache/fulcrum/crypto/CryptoAlgorithm.html" title="interface in org.apache.fulcrum.crypto">CryptoAlgorithm</a>)</li> +<li type="circle">org.apache.fulcrum.crypto.provider.<a href="org/apache/fulcrum/crypto/provider/OldJavaCrypt.html" title="class in org.apache.fulcrum.crypto.provider"><span class="typeNameLink">OldJavaCrypt</span></a> (implements org.apache.fulcrum.crypto.<a href="org/apache/fulcrum/crypto/CryptoAlgorithm.html" title="interface in org.apache.fulcrum.crypto">CryptoAlgorithm</a>)</li> +<li type="circle">org.apache.fulcrum.crypto.provider.<a href="org/apache/fulcrum/crypto/provider/UnixCrypt.html" title="class in org.apache.fulcrum.crypto.provider"><span class="typeNameLink">UnixCrypt</span></a> (implements org.apache.fulcrum.crypto.<a href="org/apache/fulcrum/crypto/CryptoAlgorithm.html" title="interface in org.apache.fulcrum.crypto">CryptoAlgorithm</a>)</li> +</ul> +</li> +</ul> +<h2 title="Interface Hierarchy">Interface Hierarchy</h2> +<ul> +<li type="circle">org.apache.fulcrum.crypto.<a href="org/apache/fulcrum/crypto/CryptoAlgorithm.html" title="interface in org.apache.fulcrum.crypto"><span class="typeNameLink">CryptoAlgorithm</span></a></li> +<li type="circle">org.apache.fulcrum.crypto.<a href="org/apache/fulcrum/crypto/CryptoService.html" title="interface in org.apache.fulcrum.crypto"><span class="typeNameLink">CryptoService</span></a></li> +</ul> +</div> <!-- ======= 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"> <FONT CLASS="NavBarFont1">Package</FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Use</FONT> </TD> - <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Tree</B></FONT> </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 - NEXT</FONT></TD> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="index.html?overview-tree.html" target="_top"><B>FRAMES</B></A> - <A HREF="overview-tree.html" target="_top"><B>NO FRAMES</B></A> - <SCRIPT type="text/javascript"> - <!-- +<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>Package</li> +<li>Class</li> +<li>Use</li> +<li class="navBarCell1Rev">Tree</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?overview-tree.html" target="_top">Frames</a></li> +<li><a href="overview-tree.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) { - document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>'); + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; } //--> -</SCRIPT> -<NOSCRIPT> - <A HREF="allclasses-noframe.html"><B>All Classes</B></A> -</NOSCRIPT> - - -</FONT></TD> -</TR> -</TABLE> -<A NAME="skip-navbar_bottom"></A> +</script> +</div> +<a name="skip.navbar.bottom"> +<!-- --> +</a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> - -<HR> -Copyright © 2005-2009 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved. -</BODY> -</HTML> +<p class="legalCopy"><small>Copyright © 2005–2019 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> +</body> +</html> \ No newline at end of file Modified: websites/production/turbine/content/fulcrum/fulcrum-crypto/apidocs/package-list ============================================================================== --- websites/production/turbine/content/fulcrum/fulcrum-crypto/apidocs/package-list (original) +++ websites/production/turbine/content/fulcrum/fulcrum-crypto/apidocs/package-list Mon May 20 14:36:24 2019 @@ -1,3 +1,2 @@ org.apache.fulcrum.crypto -org.apache.fulcrum.crypto.impl org.apache.fulcrum.crypto.provider Added: websites/production/turbine/content/fulcrum/fulcrum-crypto/apidocs/script.js ============================================================================== --- websites/production/turbine/content/fulcrum/fulcrum-crypto/apidocs/script.js (added) +++ websites/production/turbine/content/fulcrum/fulcrum-crypto/apidocs/script.js Mon May 20 14:36:24 2019 @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "<a href=\"javascript:show("+ value + ");\">" + tabs[value][1] + "</a>"; + } + } +} \ No newline at end of file Modified: websites/production/turbine/content/fulcrum/fulcrum-crypto/apidocs/src-html/org/apache/fulcrum/crypto/CryptoAlgorithm.html ============================================================================== --- websites/production/turbine/content/fulcrum/fulcrum-crypto/apidocs/src-html/org/apache/fulcrum/crypto/CryptoAlgorithm.html (original) +++ websites/production/turbine/content/fulcrum/fulcrum-crypto/apidocs/src-html/org/apache/fulcrum/crypto/CryptoAlgorithm.html Mon May 20 14:36:24 2019 @@ -1,90 +1,94 @@ -<HTML> -<BODY BGCOLOR="white"> -<PRE> -<FONT color="green">001</FONT> package org.apache.fulcrum.crypto;<a name="line.1"></a> -<FONT color="green">002</FONT> <a name="line.2"></a> -<FONT color="green">003</FONT> <a name="line.3"></a> -<FONT color="green">004</FONT> /*<a name="line.4"></a> -<FONT color="green">005</FONT> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.5"></a> -<FONT color="green">006</FONT> * or more contributor license agreements. See the NOTICE file<a name="line.6"></a> -<FONT color="green">007</FONT> * distributed with this work for additional information<a name="line.7"></a> -<FONT color="green">008</FONT> * regarding copyright ownership. The ASF licenses this file<a name="line.8"></a> -<FONT color="green">009</FONT> * to you under the Apache License, Version 2.0 (the<a name="line.9"></a> -<FONT color="green">010</FONT> * "License"); you may not use this file except in compliance<a name="line.10"></a> -<FONT color="green">011</FONT> * with the License. You may obtain a copy of the License at<a name="line.11"></a> -<FONT color="green">012</FONT> *<a name="line.12"></a> -<FONT color="green">013</FONT> * http://www.apache.org/licenses/LICENSE-2.0<a name="line.13"></a> -<FONT color="green">014</FONT> *<a name="line.14"></a> -<FONT color="green">015</FONT> * Unless required by applicable law or agreed to in writing,<a name="line.15"></a> -<FONT color="green">016</FONT> * software distributed under the License is distributed on an<a name="line.16"></a> -<FONT color="green">017</FONT> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY<a name="line.17"></a> -<FONT color="green">018</FONT> * KIND, either express or implied. See the License for the<a name="line.18"></a> -<FONT color="green">019</FONT> * specific language governing permissions and limitations<a name="line.19"></a> -<FONT color="green">020</FONT> * under the License.<a name="line.20"></a> -<FONT color="green">021</FONT> */<a name="line.21"></a> -<FONT color="green">022</FONT> <a name="line.22"></a> -<FONT color="green">023</FONT> <a name="line.23"></a> -<FONT color="green">024</FONT> /**<a name="line.24"></a> -<FONT color="green">025</FONT> * This interface describes the various Crypto Algorithms that are<a name="line.25"></a> -<FONT color="green">026</FONT> * handed out by the Crypto Service.<a name="line.26"></a> -<FONT color="green">027</FONT> *<a name="line.27"></a> -<FONT color="green">028</FONT> * @author <a href="mailto:[email protected]">Henning P. Schmiedehausen</a><a name="line.28"></a> -<FONT color="green">029</FONT> * @version $Id: CryptoAlgorithm.java 535465 2007-05-05 06:58:06Z tv $<a name="line.29"></a> -<FONT color="green">030</FONT> */<a name="line.30"></a> -<FONT color="green">031</FONT> <a name="line.31"></a> -<FONT color="green">032</FONT> public interface CryptoAlgorithm<a name="line.32"></a> -<FONT color="green">033</FONT> {<a name="line.33"></a> -<FONT color="green">034</FONT> /**<a name="line.34"></a> -<FONT color="green">035</FONT> * Allows the user to set a salt value whenever the<a name="line.35"></a> -<FONT color="green">036</FONT> * algorithm is used. Setting a new salt should invalidate<a name="line.36"></a> -<FONT color="green">037</FONT> * all internal state of this object.<a name="line.37"></a> -<FONT color="green">038</FONT> * <p><a name="line.38"></a> -<FONT color="green">039</FONT> * Algorithms that do not use a salt are allowed to ignore<a name="line.39"></a> -<FONT color="green">040</FONT> * this parameter.<a name="line.40"></a> -<FONT color="green">041</FONT> * <p><a name="line.41"></a> -<FONT color="green">042</FONT> * Algorithms must be able to deal with the null value as salt.<a name="line.42"></a> -<FONT color="green">043</FONT> * They should treat it as "use a random salt".<a name="line.43"></a> -<FONT color="green">044</FONT> *<a name="line.44"></a> -<FONT color="green">045</FONT> * @param salt The salt value<a name="line.45"></a> -<FONT color="green">046</FONT> *<a name="line.46"></a> -<FONT color="green">047</FONT> */<a name="line.47"></a> -<FONT color="green">048</FONT> <a name="line.48"></a> -<FONT color="green">049</FONT> void setSeed(String salt);<a name="line.49"></a> -<FONT color="green">050</FONT> <a name="line.50"></a> -<FONT color="green">051</FONT> /**<a name="line.51"></a> -<FONT color="green">052</FONT> * Performs the actual encryption.<a name="line.52"></a> -<FONT color="green">053</FONT> *<a name="line.53"></a> -<FONT color="green">054</FONT> * @param value The value to be encrypted<a name="line.54"></a> -<FONT color="green">055</FONT> *<a name="line.55"></a> -<FONT color="green">056</FONT> * @return The encrypted value<a name="line.56"></a> -<FONT color="green">057</FONT> *<a name="line.57"></a> -<FONT color="green">058</FONT> * @throws Exception various errors from the underlying ciphers.<a name="line.58"></a> -<FONT color="green">059</FONT> * The caller should catch them and report accordingly.<a name="line.59"></a> -<FONT color="green">060</FONT> *<a name="line.60"></a> -<FONT color="green">061</FONT> */<a name="line.61"></a> -<FONT color="green">062</FONT> <a name="line.62"></a> -<FONT color="green">063</FONT> String encrypt(String value)<a name="line.63"></a> -<FONT color="green">064</FONT> throws Exception;<a name="line.64"></a> -<FONT color="green">065</FONT> <a name="line.65"></a> -<FONT color="green">066</FONT> /**<a name="line.66"></a> -<FONT color="green">067</FONT> * Algorithms that perform multiple ciphers get told<a name="line.67"></a> -<FONT color="green">068</FONT> * with setCipher, which cipher to use. This should be<a name="line.68"></a> -<FONT color="green">069</FONT> * called before any other method call.<a name="line.69"></a> -<FONT color="green">070</FONT> *<a name="line.70"></a> -<FONT color="green">071</FONT> * If called after any call to encrypt or setSeed, the<a name="line.71"></a> -<FONT color="green">072</FONT> * CryptoAlgorithm may choose to ignore this or to reset<a name="line.72"></a> -<FONT color="green">073</FONT> * and use the new cipher.<a name="line.73"></a> -<FONT color="green">074</FONT> *<a name="line.74"></a> -<FONT color="green">075</FONT> * If any other call is used before this, the algorithm<a name="line.75"></a> -<FONT color="green">076</FONT> * should use a default cipher and not throw an error.<a name="line.76"></a> -<FONT color="green">077</FONT> *<a name="line.77"></a> -<FONT color="green">078</FONT> * @param cipher The cipher to use.<a name="line.78"></a> -<FONT color="green">079</FONT> *<a name="line.79"></a> -<FONT color="green">080</FONT> */<a name="line.80"></a> -<FONT color="green">081</FONT> <a name="line.81"></a> -<FONT color="green">082</FONT> void setCipher(String cipher);<a name="line.82"></a> -<FONT color="green">083</FONT> <a name="line.83"></a> -<FONT color="green">084</FONT> }<a name="line.84"></a> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> +<title>Source code</title> +<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> +</head> +<body> +<div class="sourceContainer"> +<pre><span class="sourceLineNo">001</span>package org.apache.fulcrum.crypto;<a name="line.1"></a> +<span class="sourceLineNo">002</span><a name="line.2"></a> +<span class="sourceLineNo">003</span><a name="line.3"></a> +<span class="sourceLineNo">004</span>/*<a name="line.4"></a> +<span class="sourceLineNo">005</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.5"></a> +<span class="sourceLineNo">006</span> * or more contributor license agreements. See the NOTICE file<a name="line.6"></a> +<span class="sourceLineNo">007</span> * distributed with this work for additional information<a name="line.7"></a> +<span class="sourceLineNo">008</span> * regarding copyright ownership. The ASF licenses this file<a name="line.8"></a> +<span class="sourceLineNo">009</span> * to you under the Apache License, Version 2.0 (the<a name="line.9"></a> +<span class="sourceLineNo">010</span> * "License"); you may not use this file except in compliance<a name="line.10"></a> +<span class="sourceLineNo">011</span> * with the License. You may obtain a copy of the License at<a name="line.11"></a> +<span class="sourceLineNo">012</span> *<a name="line.12"></a> +<span class="sourceLineNo">013</span> * http://www.apache.org/licenses/LICENSE-2.0<a name="line.13"></a> +<span class="sourceLineNo">014</span> *<a name="line.14"></a> +<span class="sourceLineNo">015</span> * Unless required by applicable law or agreed to in writing,<a name="line.15"></a> +<span class="sourceLineNo">016</span> * software distributed under the License is distributed on an<a name="line.16"></a> +<span class="sourceLineNo">017</span> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY<a name="line.17"></a> +<span class="sourceLineNo">018</span> * KIND, either express or implied. See the License for the<a name="line.18"></a> +<span class="sourceLineNo">019</span> * specific language governing permissions and limitations<a name="line.19"></a> +<span class="sourceLineNo">020</span> * under the License.<a name="line.20"></a> +<span class="sourceLineNo">021</span> */<a name="line.21"></a> +<span class="sourceLineNo">022</span><a name="line.22"></a> +<span class="sourceLineNo">023</span><a name="line.23"></a> +<span class="sourceLineNo">024</span>/**<a name="line.24"></a> +<span class="sourceLineNo">025</span> * This interface describes the various Crypto Algorithms that are<a name="line.25"></a> +<span class="sourceLineNo">026</span> * handed out by the Crypto Service.<a name="line.26"></a> +<span class="sourceLineNo">027</span> *<a name="line.27"></a> +<span class="sourceLineNo">028</span> * @author <a href="mailto:[email protected]">Henning P. Schmiedehausen</a><a name="line.28"></a> +<span class="sourceLineNo">029</span> * @version $Id: CryptoAlgorithm.java 1852158 2019-01-25 18:19:46Z painter $<a name="line.29"></a> +<span class="sourceLineNo">030</span> */<a name="line.30"></a> +<span class="sourceLineNo">031</span>public interface CryptoAlgorithm<a name="line.31"></a> +<span class="sourceLineNo">032</span>{<a name="line.32"></a> +<span class="sourceLineNo">033</span> /**<a name="line.33"></a> +<span class="sourceLineNo">034</span> * Allows the user to set a salt value whenever the<a name="line.34"></a> +<span class="sourceLineNo">035</span> * algorithm is used. Setting a new salt should invalidate<a name="line.35"></a> +<span class="sourceLineNo">036</span> * all internal state of this object.<a name="line.36"></a> +<span class="sourceLineNo">037</span> * <p><a name="line.37"></a> +<span class="sourceLineNo">038</span> * Algorithms that do not use a salt are allowed to ignore<a name="line.38"></a> +<span class="sourceLineNo">039</span> * this parameter.<a name="line.39"></a> +<span class="sourceLineNo">040</span> * <p><a name="line.40"></a> +<span class="sourceLineNo">041</span> * Algorithms must be able to deal with the null value as salt.<a name="line.41"></a> +<span class="sourceLineNo">042</span> * They should treat it as "use a random salt".<a name="line.42"></a> +<span class="sourceLineNo">043</span> *<a name="line.43"></a> +<span class="sourceLineNo">044</span> * @param salt The salt value<a name="line.44"></a> +<span class="sourceLineNo">045</span> *<a name="line.45"></a> +<span class="sourceLineNo">046</span> */<a name="line.46"></a> +<span class="sourceLineNo">047</span><a name="line.47"></a> +<span class="sourceLineNo">048</span> void setSeed(String salt);<a name="line.48"></a> +<span class="sourceLineNo">049</span><a name="line.49"></a> +<span class="sourceLineNo">050</span> /**<a name="line.50"></a> +<span class="sourceLineNo">051</span> * Performs the actual encryption.<a name="line.51"></a> +<span class="sourceLineNo">052</span> *<a name="line.52"></a> +<span class="sourceLineNo">053</span> * @param value The value to be encrypted<a name="line.53"></a> +<span class="sourceLineNo">054</span> *<a name="line.54"></a> +<span class="sourceLineNo">055</span> * @return The encrypted value<a name="line.55"></a> +<span class="sourceLineNo">056</span> *<a name="line.56"></a> +<span class="sourceLineNo">057</span> * @throws Exception various errors from the underlying ciphers.<a name="line.57"></a> +<span class="sourceLineNo">058</span> * The caller should catch them and report accordingly.<a name="line.58"></a> +<span class="sourceLineNo">059</span> *<a name="line.59"></a> +<span class="sourceLineNo">060</span> */<a name="line.60"></a> +<span class="sourceLineNo">061</span><a name="line.61"></a> +<span class="sourceLineNo">062</span> String encrypt(String value)<a name="line.62"></a> +<span class="sourceLineNo">063</span> throws Exception;<a name="line.63"></a> +<span class="sourceLineNo">064</span><a name="line.64"></a> +<span class="sourceLineNo">065</span> /**<a name="line.65"></a> +<span class="sourceLineNo">066</span> * Algorithms that perform multiple ciphers get told<a name="line.66"></a> +<span class="sourceLineNo">067</span> * with setCipher, which cipher to use. This should be<a name="line.67"></a> +<span class="sourceLineNo">068</span> * called before any other method call.<a name="line.68"></a> +<span class="sourceLineNo">069</span> *<a name="line.69"></a> +<span class="sourceLineNo">070</span> * If called after any call to encrypt or setSeed, the<a name="line.70"></a> +<span class="sourceLineNo">071</span> * CryptoAlgorithm may choose to ignore this or to reset<a name="line.71"></a> +<span class="sourceLineNo">072</span> * and use the new cipher.<a name="line.72"></a> +<span class="sourceLineNo">073</span> *<a name="line.73"></a> +<span class="sourceLineNo">074</span> * If any other call is used before this, the algorithm<a name="line.74"></a> +<span class="sourceLineNo">075</span> * should use a default cipher and not throw an error.<a name="line.75"></a> +<span class="sourceLineNo">076</span> *<a name="line.76"></a> +<span class="sourceLineNo">077</span> * @param cipher The cipher to use.<a name="line.77"></a> +<span class="sourceLineNo">078</span> *<a name="line.78"></a> +<span class="sourceLineNo">079</span> */<a name="line.79"></a> +<span class="sourceLineNo">080</span><a name="line.80"></a> +<span class="sourceLineNo">081</span> void setCipher(String cipher);<a name="line.81"></a> +<span class="sourceLineNo">082</span><a name="line.82"></a> +<span class="sourceLineNo">083</span>}<a name="line.83"></a> @@ -145,6 +149,7 @@ -</PRE> -</BODY> -</HTML> +</pre> +</div> +</body> +</html> \ No newline at end of file Modified: websites/production/turbine/content/fulcrum/fulcrum-crypto/apidocs/src-html/org/apache/fulcrum/crypto/CryptoService.html ============================================================================== --- websites/production/turbine/content/fulcrum/fulcrum-crypto/apidocs/src-html/org/apache/fulcrum/crypto/CryptoService.html (original) +++ websites/production/turbine/content/fulcrum/fulcrum-crypto/apidocs/src-html/org/apache/fulcrum/crypto/CryptoService.html Mon May 20 14:36:24 2019 @@ -1,56 +1,58 @@ -<HTML> -<BODY BGCOLOR="white"> -<PRE> -<FONT color="green">001</FONT> package org.apache.fulcrum.crypto;<a name="line.1"></a> -<FONT color="green">002</FONT> <a name="line.2"></a> -<FONT color="green">003</FONT> <a name="line.3"></a> -<FONT color="green">004</FONT> /*<a name="line.4"></a> -<FONT color="green">005</FONT> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.5"></a> -<FONT color="green">006</FONT> * or more contributor license agreements. See the NOTICE file<a name="line.6"></a> -<FONT color="green">007</FONT> * distributed with this work for additional information<a name="line.7"></a> -<FONT color="green">008</FONT> * regarding copyright ownership. The ASF licenses this file<a name="line.8"></a> -<FONT color="green">009</FONT> * to you under the Apache License, Version 2.0 (the<a name="line.9"></a> -<FONT color="green">010</FONT> * "License"); you may not use this file except in compliance<a name="line.10"></a> -<FONT color="green">011</FONT> * with the License. You may obtain a copy of the License at<a name="line.11"></a> -<FONT color="green">012</FONT> *<a name="line.12"></a> -<FONT color="green">013</FONT> * http://www.apache.org/licenses/LICENSE-2.0<a name="line.13"></a> -<FONT color="green">014</FONT> *<a name="line.14"></a> -<FONT color="green">015</FONT> * Unless required by applicable law or agreed to in writing,<a name="line.15"></a> -<FONT color="green">016</FONT> * software distributed under the License is distributed on an<a name="line.16"></a> -<FONT color="green">017</FONT> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY<a name="line.17"></a> -<FONT color="green">018</FONT> * KIND, either express or implied. See the License for the<a name="line.18"></a> -<FONT color="green">019</FONT> * specific language governing permissions and limitations<a name="line.19"></a> -<FONT color="green">020</FONT> * under the License.<a name="line.20"></a> -<FONT color="green">021</FONT> */<a name="line.21"></a> -<FONT color="green">022</FONT> <a name="line.22"></a> -<FONT color="green">023</FONT> <a name="line.23"></a> -<FONT color="green">024</FONT> import java.security.NoSuchAlgorithmException;<a name="line.24"></a> -<FONT color="green">025</FONT> <a name="line.25"></a> -<FONT color="green">026</FONT> /**<a name="line.26"></a> -<FONT color="green">027</FONT> * An implementation of CryptoService that uses either supplied crypto<a name="line.27"></a> -<FONT color="green">028</FONT> * Algorithms (provided in Fulcrum.properties) or tries to get them via<a name="line.28"></a> -<FONT color="green">029</FONT> * the normal java mechanisms if this fails.<a name="line.29"></a> -<FONT color="green">030</FONT> *<a name="line.30"></a> -<FONT color="green">031</FONT> * @author <a href="mailto:[email protected]">Eric Pugh</a><a name="line.31"></a> -<FONT color="green">032</FONT> * @author <a href="mailto:[email protected]">Stephen McConnell</a><a name="line.32"></a> -<FONT color="green">033</FONT> */<a name="line.33"></a> -<FONT color="green">034</FONT> public interface CryptoService<a name="line.34"></a> -<FONT color="green">035</FONT> {<a name="line.35"></a> -<FONT color="green">036</FONT> String ROLE = CryptoService.class.getName();<a name="line.36"></a> -<FONT color="green">037</FONT> <a name="line.37"></a> -<FONT color="green">038</FONT> /**<a name="line.38"></a> -<FONT color="green">039</FONT> * Returns a CryptoAlgorithm Object which represents the requested<a name="line.39"></a> -<FONT color="green">040</FONT> * crypto algorithm.<a name="line.40"></a> -<FONT color="green">041</FONT> *<a name="line.41"></a> -<FONT color="green">042</FONT> * @param algo Name of the requested algorithm<a name="line.42"></a> -<FONT color="green">043</FONT> *<a name="line.43"></a> -<FONT color="green">044</FONT> * @return An Object representing the algorithm<a name="line.44"></a> -<FONT color="green">045</FONT> *<a name="line.45"></a> -<FONT color="green">046</FONT> * @throws NoSuchAlgorithmException Requested algorithm is not available<a name="line.46"></a> -<FONT color="green">047</FONT> *<a name="line.47"></a> -<FONT color="green">048</FONT> */<a name="line.48"></a> -<FONT color="green">049</FONT> public CryptoAlgorithm getCryptoAlgorithm(String algo) throws NoSuchAlgorithmException;<a name="line.49"></a> -<FONT color="green">050</FONT> }<a name="line.50"></a> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> +<title>Source code</title> +<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> +</head> +<body> +<div class="sourceContainer"> +<pre><span class="sourceLineNo">001</span>package org.apache.fulcrum.crypto;<a name="line.1"></a> +<span class="sourceLineNo">002</span><a name="line.2"></a> +<span class="sourceLineNo">003</span>/*<a name="line.3"></a> +<span class="sourceLineNo">004</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.4"></a> +<span class="sourceLineNo">005</span> * or more contributor license agreements. See the NOTICE file<a name="line.5"></a> +<span class="sourceLineNo">006</span> * distributed with this work for additional information<a name="line.6"></a> +<span class="sourceLineNo">007</span> * regarding copyright ownership. The ASF licenses this file<a name="line.7"></a> +<span class="sourceLineNo">008</span> * to you under the Apache License, Version 2.0 (the<a name="line.8"></a> +<span class="sourceLineNo">009</span> * "License"); you may not use this file except in compliance<a name="line.9"></a> +<span class="sourceLineNo">010</span> * with the License. You may obtain a copy of the License at<a name="line.10"></a> +<span class="sourceLineNo">011</span> *<a name="line.11"></a> +<span class="sourceLineNo">012</span> * http://www.apache.org/licenses/LICENSE-2.0<a name="line.12"></a> +<span class="sourceLineNo">013</span> *<a name="line.13"></a> +<span class="sourceLineNo">014</span> * Unless required by applicable law or agreed to in writing,<a name="line.14"></a> +<span class="sourceLineNo">015</span> * software distributed under the License is distributed on an<a name="line.15"></a> +<span class="sourceLineNo">016</span> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY<a name="line.16"></a> +<span class="sourceLineNo">017</span> * KIND, either express or implied. See the License for the<a name="line.17"></a> +<span class="sourceLineNo">018</span> * specific language governing permissions and limitations<a name="line.18"></a> +<span class="sourceLineNo">019</span> * under the License.<a name="line.19"></a> +<span class="sourceLineNo">020</span> */<a name="line.20"></a> +<span class="sourceLineNo">021</span><a name="line.21"></a> +<span class="sourceLineNo">022</span>import java.security.NoSuchAlgorithmException;<a name="line.22"></a> +<span class="sourceLineNo">023</span><a name="line.23"></a> +<span class="sourceLineNo">024</span>/**<a name="line.24"></a> +<span class="sourceLineNo">025</span> * An implementation of CryptoService that uses either supplied crypto<a name="line.25"></a> +<span class="sourceLineNo">026</span> * Algorithms (provided in Fulcrum.properties) or tries to get them via<a name="line.26"></a> +<span class="sourceLineNo">027</span> * the normal java mechanisms if this fails.<a name="line.27"></a> +<span class="sourceLineNo">028</span> *<a name="line.28"></a> +<span class="sourceLineNo">029</span> * @author <a href="mailto:[email protected]">Eric Pugh</a><a name="line.29"></a> +<span class="sourceLineNo">030</span> * @author <a href="mailto:[email protected]">Stephen McConnell</a><a name="line.30"></a> +<span class="sourceLineNo">031</span> * @version $Id: CryptoService.java 1852158 2019-01-25 18:19:46Z painter $ <a name="line.31"></a> +<span class="sourceLineNo">032</span> */<a name="line.32"></a> +<span class="sourceLineNo">033</span>public interface CryptoService<a name="line.33"></a> +<span class="sourceLineNo">034</span>{<a name="line.34"></a> +<span class="sourceLineNo">035</span> String ROLE = CryptoService.class.getName();<a name="line.35"></a> +<span class="sourceLineNo">036</span><a name="line.36"></a> +<span class="sourceLineNo">037</span> /**<a name="line.37"></a> +<span class="sourceLineNo">038</span> * Returns a CryptoAlgorithm Object which represents the requested<a name="line.38"></a> +<span class="sourceLineNo">039</span> * crypto algorithm.<a name="line.39"></a> +<span class="sourceLineNo">040</span> *<a name="line.40"></a> +<span class="sourceLineNo">041</span> * @param algo Name of the requested algorithm<a name="line.41"></a> +<span class="sourceLineNo">042</span> * @return An Object representing the algorithm<a name="line.42"></a> +<span class="sourceLineNo">043</span> * @throws NoSuchAlgorithmException Requested algorithm is not available<a name="line.43"></a> +<span class="sourceLineNo">044</span> *<a name="line.44"></a> +<span class="sourceLineNo">045</span> */<a name="line.45"></a> +<span class="sourceLineNo">046</span> public CryptoAlgorithm getCryptoAlgorithm(String algo) throws NoSuchAlgorithmException;<a name="line.46"></a> +<span class="sourceLineNo">047</span>}<a name="line.47"></a> @@ -111,6 +113,7 @@ -</PRE> -</BODY> -</HTML> +</pre> +</div> +</body> +</html> \ No newline at end of file Modified: websites/production/turbine/content/fulcrum/fulcrum-crypto/apidocs/src-html/org/apache/fulcrum/crypto/DefaultCryptoService.html ============================================================================== --- websites/production/turbine/content/fulcrum/fulcrum-crypto/apidocs/src-html/org/apache/fulcrum/crypto/DefaultCryptoService.html (original) +++ websites/production/turbine/content/fulcrum/fulcrum-crypto/apidocs/src-html/org/apache/fulcrum/crypto/DefaultCryptoService.html Mon May 20 14:36:24 2019 @@ -1,153 +1,151 @@ -<HTML> -<BODY BGCOLOR="white"> -<PRE> -<FONT color="green">001</FONT> package org.apache.fulcrum.crypto;<a name="line.1"></a> -<FONT color="green">002</FONT> <a name="line.2"></a> -<FONT color="green">003</FONT> /*<a name="line.3"></a> -<FONT color="green">004</FONT> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.4"></a> -<FONT color="green">005</FONT> * or more contributor license agreements. See the NOTICE file<a name="line.5"></a> -<FONT color="green">006</FONT> * distributed with this work for additional information<a name="line.6"></a> -<FONT color="green">007</FONT> * regarding copyright ownership. The ASF licenses this file<a name="line.7"></a> -<FONT color="green">008</FONT> * to you under the Apache License, Version 2.0 (the<a name="line.8"></a> -<FONT color="green">009</FONT> * "License"); you may not use this file except in compliance<a name="line.9"></a> -<FONT color="green">010</FONT> * with the License. You may obtain a copy of the License at<a name="line.10"></a> -<FONT color="green">011</FONT> *<a name="line.11"></a> -<FONT color="green">012</FONT> * http://www.apache.org/licenses/LICENSE-2.0<a name="line.12"></a> -<FONT color="green">013</FONT> *<a name="line.13"></a> -<FONT color="green">014</FONT> * Unless required by applicable law or agreed to in writing,<a name="line.14"></a> -<FONT color="green">015</FONT> * software distributed under the License is distributed on an<a name="line.15"></a> -<FONT color="green">016</FONT> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY<a name="line.16"></a> -<FONT color="green">017</FONT> * KIND, either express or implied. See the License for the<a name="line.17"></a> -<FONT color="green">018</FONT> * specific language governing permissions and limitations<a name="line.18"></a> -<FONT color="green">019</FONT> * under the License.<a name="line.19"></a> -<FONT color="green">020</FONT> */<a name="line.20"></a> -<FONT color="green">021</FONT> <a name="line.21"></a> -<FONT color="green">022</FONT> import java.security.NoSuchAlgorithmException;<a name="line.22"></a> -<FONT color="green">023</FONT> import java.util.Hashtable;<a name="line.23"></a> -<FONT color="green">024</FONT> <a name="line.24"></a> -<FONT color="green">025</FONT> import org.apache.avalon.framework.activity.Initializable;<a name="line.25"></a> -<FONT color="green">026</FONT> import org.apache.avalon.framework.configuration.Configurable;<a name="line.26"></a> -<FONT color="green">027</FONT> import org.apache.avalon.framework.configuration.Configuration;<a name="line.27"></a> -<FONT color="green">028</FONT> import org.apache.avalon.framework.configuration.ConfigurationException;<a name="line.28"></a> -<FONT color="green">029</FONT> import org.apache.avalon.framework.logger.AbstractLogEnabled;<a name="line.29"></a> -<FONT color="green">030</FONT> import org.apache.avalon.framework.thread.ThreadSafe;<a name="line.30"></a> -<FONT color="green">031</FONT> <a name="line.31"></a> -<FONT color="green">032</FONT> /**<a name="line.32"></a> -<FONT color="green">033</FONT> * An implementation of CryptoService that uses either supplied crypto<a name="line.33"></a> -<FONT color="green">034</FONT> * Algorithms (provided in the component config xml file) or tries to get them via<a name="line.34"></a> -<FONT color="green">035</FONT> * the normal java mechanisms if this fails.<a name="line.35"></a> -<FONT color="green">036</FONT> *<a name="line.36"></a> -<FONT color="green">037</FONT> * @author <a href="mailto:[email protected]">Eric Pugh</a><a name="line.37"></a> -<FONT color="green">038</FONT> * @author <a href="mailto:[email protected]">Henning P. Schmiedehausen</a><a name="line.38"></a> -<FONT color="green">039</FONT> * @version $Id: DefaultCryptoService.java 581797 2007-10-04 08:26:18Z sgoeschl $<a name="line.39"></a> -<FONT color="green">040</FONT> *<a name="line.40"></a> -<FONT color="green">041</FONT> * @avalon.component name="crypto" lifestyle="singleton"<a name="line.41"></a> -<FONT color="green">042</FONT> * @avalon.service type="org.apache.fulcrum.crypto.CryptoService"<a name="line.42"></a> -<FONT color="green">043</FONT> */<a name="line.43"></a> -<FONT color="green">044</FONT> public class DefaultCryptoService<a name="line.44"></a> -<FONT color="green">045</FONT> extends AbstractLogEnabled<a name="line.45"></a> -<FONT color="green">046</FONT> implements CryptoService, Configurable, Initializable, ThreadSafe<a name="line.46"></a> -<FONT color="green">047</FONT> {<a name="line.47"></a> -<FONT color="green">048</FONT> //<a name="line.48"></a> -<FONT color="green">049</FONT> // SJM: removed Component and Contextualizable, Startable<a name="line.49"></a> -<FONT color="green">050</FONT> //<a name="line.50"></a> -<FONT color="green">051</FONT> <a name="line.51"></a> -<FONT color="green">052</FONT> /** Key Prefix for our algorithms */<a name="line.52"></a> -<FONT color="green">053</FONT> private static final String ALGORITHM = "algorithm";<a name="line.53"></a> -<FONT color="green">054</FONT> /** Default Key */<a name="line.54"></a> -<FONT color="green">055</FONT> private static final String DEFAULT_KEY = "default";<a name="line.55"></a> -<FONT color="green">056</FONT> /** Default Encryption Class */<a name="line.56"></a> -<FONT color="green">057</FONT> private static final String DEFAULT_CLASS =<a name="line.57"></a> -<FONT color="green">058</FONT> "org.apache.fulcrum.crypto.provider.JavaCrypt";<a name="line.58"></a> -<FONT color="green">059</FONT> /** Names of the registered algorithms and the wanted classes */<a name="line.59"></a> -<FONT color="green">060</FONT> private Hashtable algos = null;<a name="line.60"></a> -<FONT color="green">061</FONT> <a name="line.61"></a> -<FONT color="green">062</FONT> /**<a name="line.62"></a> -<FONT color="green">063</FONT> * Returns a CryptoAlgorithm Object which represents the requested<a name="line.63"></a> -<FONT color="green">064</FONT> * crypto algorithm.<a name="line.64"></a> -<FONT color="green">065</FONT> *<a name="line.65"></a> -<FONT color="green">066</FONT> * @param algo Name of the requested algorithm<a name="line.66"></a> -<FONT color="green">067</FONT> *<a name="line.67"></a> -<FONT color="green">068</FONT> * @return An Object representing the algorithm<a name="line.68"></a> -<FONT color="green">069</FONT> *<a name="line.69"></a> -<FONT color="green">070</FONT> * @throws NoSuchAlgorithmException Requested algorithm is not available<a name="line.70"></a> -<FONT color="green">071</FONT> *<a name="line.71"></a> -<FONT color="green">072</FONT> */<a name="line.72"></a> -<FONT color="green">073</FONT> public CryptoAlgorithm getCryptoAlgorithm( String algo )<a name="line.73"></a> -<FONT color="green">074</FONT> throws NoSuchAlgorithmException<a name="line.74"></a> -<FONT color="green">075</FONT> {<a name="line.75"></a> -<FONT color="green">076</FONT> String cryptoClass = (String) algos.get(algo);<a name="line.76"></a> -<FONT color="green">077</FONT> CryptoAlgorithm ca = null;<a name="line.77"></a> -<FONT color="green">078</FONT> if (cryptoClass == null)<a name="line.78"></a> -<FONT color="green">079</FONT> {<a name="line.79"></a> -<FONT color="green">080</FONT> cryptoClass = (String) algos.get(DEFAULT_KEY);<a name="line.80"></a> -<FONT color="green">081</FONT> }<a name="line.81"></a> -<FONT color="green">082</FONT> if (cryptoClass == null || cryptoClass.equalsIgnoreCase("none"))<a name="line.82"></a> -<FONT color="green">083</FONT> {<a name="line.83"></a> -<FONT color="green">084</FONT> throw new NoSuchAlgorithmException(<a name="line.84"></a> -<FONT color="green">085</FONT> "TurbineCryptoService: No Algorithm for " + algo + " found");<a name="line.85"></a> -<FONT color="green">086</FONT> }<a name="line.86"></a> -<FONT color="green">087</FONT> try<a name="line.87"></a> -<FONT color="green">088</FONT> {<a name="line.88"></a> -<FONT color="green">089</FONT> //@todo should be created via factory service.<a name="line.89"></a> -<FONT color="green">090</FONT> //Just trying to get something to work.<a name="line.90"></a> -<FONT color="green">091</FONT> //ca = (CryptoAlgorithm) factoryService.getInstance(cryptoClass);<a name="line.91"></a> -<FONT color="green">092</FONT> ca = (CryptoAlgorithm) Class.forName(cryptoClass).newInstance();<a name="line.92"></a> -<FONT color="green">093</FONT> }<a name="line.93"></a> -<FONT color="green">094</FONT> catch (Exception e)<a name="line.94"></a> -<FONT color="green">095</FONT> {<a name="line.95"></a> -<FONT color="green">096</FONT> throw new NoSuchAlgorithmException(<a name="line.96"></a> -<FONT color="green">097</FONT> "TurbineCryptoService: Error instantiating "<a name="line.97"></a> -<FONT color="green">098</FONT> + cryptoClass + " for " + algo);<a name="line.98"></a> -<FONT color="green">099</FONT> }<a name="line.99"></a> -<FONT color="green">100</FONT> ca.setCipher(algo);<a name="line.100"></a> -<FONT color="green">101</FONT> return ca;<a name="line.101"></a> -<FONT color="green">102</FONT> }<a name="line.102"></a> -<FONT color="green">103</FONT> <a name="line.103"></a> -<FONT color="green">104</FONT> // ---------------- Avalon Lifecycle Methods ---------------------<a name="line.104"></a> -<FONT color="green">105</FONT> <a name="line.105"></a> -<FONT color="green">106</FONT> /**<a name="line.106"></a> -<FONT color="green">107</FONT> * Avalon component lifecycle method<a name="line.107"></a> -<FONT color="green">108</FONT> */<a name="line.108"></a> -<FONT color="green">109</FONT> public void configure(Configuration conf) throws ConfigurationException<a name="line.109"></a> -<FONT color="green">110</FONT> {<a name="line.110"></a> -<FONT color="green">111</FONT> this.algos = new Hashtable();<a name="line.111"></a> -<FONT color="green">112</FONT> // Set up default (Can be overridden by default key<a name="line.112"></a> -<FONT color="green">113</FONT> // from the properties<a name="line.113"></a> -<FONT color="green">114</FONT> algos.put(DEFAULT_KEY, DEFAULT_CLASS);<a name="line.114"></a> -<FONT color="green">115</FONT> final Configuration algorithms = conf.getChild(ALGORITHM, false);<a name="line.115"></a> -<FONT color="green">116</FONT> if (algorithms != null)<a name="line.116"></a> -<FONT color="green">117</FONT> {<a name="line.117"></a> -<FONT color="green">118</FONT> Configuration[] nameVal = algorithms.getChildren();<a name="line.118"></a> -<FONT color="green">119</FONT> for (int i = 0; i < nameVal.length; i++)<a name="line.119"></a> -<FONT color="green">120</FONT> {<a name="line.120"></a> -<FONT color="green">121</FONT> String key = nameVal[i].getName();<a name="line.121"></a> -<FONT color="green">122</FONT> String val = nameVal[i].getValue();<a name="line.122"></a> -<FONT color="green">123</FONT> // getLogger.debug("Registered " + val<a name="line.123"></a> -<FONT color="green">124</FONT> // + " for Crypto Algorithm " + key);<a name="line.124"></a> -<FONT color="green">125</FONT> algos.put(key, val);<a name="line.125"></a> -<FONT color="green">126</FONT> }<a name="line.126"></a> -<FONT color="green">127</FONT> }<a name="line.127"></a> -<FONT color="green">128</FONT> }<a name="line.128"></a> -<FONT color="green">129</FONT> <a name="line.129"></a> -<FONT color="green">130</FONT> /**<a name="line.130"></a> -<FONT color="green">131</FONT> * @see org.apache.avalon.framework.activity.Initializable#initialize()<a name="line.131"></a> -<FONT color="green">132</FONT> */<a name="line.132"></a> -<FONT color="green">133</FONT> public void initialize()<a name="line.133"></a> -<FONT color="green">134</FONT> throws Exception<a name="line.134"></a> -<FONT color="green">135</FONT> {<a name="line.135"></a> -<FONT color="green">136</FONT> getLogger().debug("initialize()");<a name="line.136"></a> -<FONT color="green">137</FONT> }<a name="line.137"></a> -<FONT color="green">138</FONT> <a name="line.138"></a> -<FONT color="green">139</FONT> /**<a name="line.139"></a> -<FONT color="green">140</FONT> * Avalon component lifecycle method<a name="line.140"></a> -<FONT color="green">141</FONT> */<a name="line.141"></a> -<FONT color="green">142</FONT> public void dispose()<a name="line.142"></a> -<FONT color="green">143</FONT> {<a name="line.143"></a> -<FONT color="green">144</FONT> algos = null;<a name="line.144"></a> -<FONT color="green">145</FONT> }<a name="line.145"></a> -<FONT color="green">146</FONT> <a name="line.146"></a> -<FONT color="green">147</FONT> }<a name="line.147"></a> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html lang="en"> +<head> +<title>Source code</title> +<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> +</head> +<body> +<div class="sourceContainer"> +<pre><span class="sourceLineNo">001</span>package org.apache.fulcrum.crypto;<a name="line.1"></a> +<span class="sourceLineNo">002</span><a name="line.2"></a> +<span class="sourceLineNo">003</span>/*<a name="line.3"></a> +<span class="sourceLineNo">004</span> * Licensed to the Apache Software Foundation (ASF) under one<a name="line.4"></a> +<span class="sourceLineNo">005</span> * or more contributor license agreements. See the NOTICE file<a name="line.5"></a> +<span class="sourceLineNo">006</span> * distributed with this work for additional information<a name="line.6"></a> +<span class="sourceLineNo">007</span> * regarding copyright ownership. The ASF licenses this file<a name="line.7"></a> +<span class="sourceLineNo">008</span> * to you under the Apache License, Version 2.0 (the<a name="line.8"></a> +<span class="sourceLineNo">009</span> * "License"); you may not use this file except in compliance<a name="line.9"></a> +<span class="sourceLineNo">010</span> * with the License. You may obtain a copy of the License at<a name="line.10"></a> +<span class="sourceLineNo">011</span> *<a name="line.11"></a> +<span class="sourceLineNo">012</span> * http://www.apache.org/licenses/LICENSE-2.0<a name="line.12"></a> +<span class="sourceLineNo">013</span> *<a name="line.13"></a> +<span class="sourceLineNo">014</span> * Unless required by applicable law or agreed to in writing,<a name="line.14"></a> +<span class="sourceLineNo">015</span> * software distributed under the License is distributed on an<a name="line.15"></a> +<span class="sourceLineNo">016</span> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY<a name="line.16"></a> +<span class="sourceLineNo">017</span> * KIND, either express or implied. See the License for the<a name="line.17"></a> +<span class="sourceLineNo">018</span> * specific language governing permissions and limitations<a name="line.18"></a> +<span class="sourceLineNo">019</span> * under the License.<a name="line.19"></a> +<span class="sourceLineNo">020</span> */<a name="line.20"></a> +<span class="sourceLineNo">021</span><a name="line.21"></a> +<span class="sourceLineNo">022</span>import java.security.NoSuchAlgorithmException;<a name="line.22"></a> +<span class="sourceLineNo">023</span>import java.util.HashMap;<a name="line.23"></a> +<span class="sourceLineNo">024</span><a name="line.24"></a> +<span class="sourceLineNo">025</span>import org.apache.avalon.framework.activity.Initializable;<a name="line.25"></a> +<span class="sourceLineNo">026</span>import org.apache.avalon.framework.configuration.Configurable;<a name="line.26"></a> +<span class="sourceLineNo">027</span>import org.apache.avalon.framework.configuration.Configuration;<a name="line.27"></a> +<span class="sourceLineNo">028</span>import org.apache.avalon.framework.configuration.ConfigurationException;<a name="line.28"></a> +<span class="sourceLineNo">029</span>import org.apache.avalon.framework.logger.AbstractLogEnabled;<a name="line.29"></a> +<span class="sourceLineNo">030</span>import org.apache.avalon.framework.thread.ThreadSafe;<a name="line.30"></a> +<span class="sourceLineNo">031</span><a name="line.31"></a> +<span class="sourceLineNo">032</span>/**<a name="line.32"></a> +<span class="sourceLineNo">033</span> * An implementation of CryptoService that uses either supplied crypto<a name="line.33"></a> +<span class="sourceLineNo">034</span> * Algorithms (provided in the component config xml file) or tries to get them<a name="line.34"></a> +<span class="sourceLineNo">035</span> * via the normal java mechanisms if this fails.<a name="line.35"></a> +<span class="sourceLineNo">036</span> *<a name="line.36"></a> +<span class="sourceLineNo">037</span> * avalon.component name="crypto" lifestyle="singleton" avalon.service<a name="line.37"></a> +<span class="sourceLineNo">038</span> * type="org.apache.fulcrum.crypto.CryptoService"<a name="line.38"></a> +<span class="sourceLineNo">039</span> *<a name="line.39"></a> +<span class="sourceLineNo">040</span> *<a name="line.40"></a> +<span class="sourceLineNo">041</span> * @author <a href="mailto:[email protected]">Eric Pugh</a><a name="line.41"></a> +<span class="sourceLineNo">042</span> * @author <a href="mailto:[email protected]">Henning P. Schmiedehausen</a><a name="line.42"></a> +<span class="sourceLineNo">043</span> * @version $Id: DefaultCryptoService.java 1852158 2019-01-25 18:19:46Z painter $<a name="line.43"></a> +<span class="sourceLineNo">044</span> */<a name="line.44"></a> +<span class="sourceLineNo">045</span>public class DefaultCryptoService extends AbstractLogEnabled<a name="line.45"></a> +<span class="sourceLineNo">046</span> implements CryptoService, Configurable, Initializable, ThreadSafe {<a name="line.46"></a> +<span class="sourceLineNo">047</span><a name="line.47"></a> +<span class="sourceLineNo">048</span> <a name="line.48"></a> +<span class="sourceLineNo">049</span> /** Key Prefix for our algorithms */<a name="line.49"></a> +<span class="sourceLineNo">050</span> private static final String ALGORITHM = "algorithm";<a name="line.50"></a> +<span class="sourceLineNo">051</span><a name="line.51"></a> +<span class="sourceLineNo">052</span> /** Default Key */<a name="line.52"></a> +<span class="sourceLineNo">053</span> private static final String DEFAULT_KEY = "default";<a name="line.53"></a> +<span class="sourceLineNo">054</span><a name="line.54"></a> +<span class="sourceLineNo">055</span> /** Default Encryption Class */<a name="line.55"></a> +<span class="sourceLineNo">056</span> private static final String DEFAULT_CLASS = "org.apache.fulcrum.crypto.provider.JavaCrypt";<a name="line.56"></a> +<span class="sourceLineNo">057</span><a name="line.57"></a> +<span class="sourceLineNo">058</span> /** Names of the registered algorithms and the wanted classes */<a name="line.58"></a> +<span class="sourceLineNo">059</span> private HashMap<String, String> algos = new HashMap<>();<a name="line.59"></a> +<span class="sourceLineNo">060</span><a name="line.60"></a> +<span class="sourceLineNo">061</span> /**<a name="line.61"></a> +<span class="sourceLineNo">062</span> * Returns a CryptoAlgorithm Object which represents the requested crypto<a name="line.62"></a> +<span class="sourceLineNo">063</span> * algorithm.<a name="line.63"></a> +<span class="sourceLineNo">064</span> *<a name="line.64"></a> +<span class="sourceLineNo">065</span> * @see org.apache.fulcrum.crypto.CryptoService#getCryptoAlgorithm(java.lang.String)<a name="line.65"></a> +<span class="sourceLineNo">066</span> *<a name="line.66"></a> +<span class="sourceLineNo">067</span> * @param algo Name of the requested algorithm<a name="line.67"></a> +<span class="sourceLineNo">068</span> *<a name="line.68"></a> +<span class="sourceLineNo">069</span> * @return An Object representing the algorithm<a name="line.69"></a> +<span class="sourceLineNo">070</span> *<a name="line.70"></a> +<span class="sourceLineNo">071</span> * @throws NoSuchAlgorithmException Requested algorithm is not available<a name="line.71"></a> +<span class="sourceLineNo">072</span> *<a name="line.72"></a> +<span class="sourceLineNo">073</span> */<a name="line.73"></a> +<span class="sourceLineNo">074</span> public CryptoAlgorithm getCryptoAlgorithm(String algo) throws NoSuchAlgorithmException <a name="line.74"></a> +<span class="sourceLineNo">075</span> {<a name="line.75"></a> +<span class="sourceLineNo">076</span> String cryptoClass = (String) algos.get(algo);<a name="line.76"></a> +<span class="sourceLineNo">077</span> CryptoAlgorithm ca = null;<a name="line.77"></a> +<span class="sourceLineNo">078</span> if (cryptoClass == null) {<a name="line.78"></a> +<span class="sourceLineNo">079</span> cryptoClass = (String) algos.get(DEFAULT_KEY);<a name="line.79"></a> +<span class="sourceLineNo">080</span> }<a name="line.80"></a> +<span class="sourceLineNo">081</span> if (cryptoClass == null || cryptoClass.equalsIgnoreCase("none")) {<a name="line.81"></a> +<span class="sourceLineNo">082</span> throw new NoSuchAlgorithmException("TurbineCryptoService: No Algorithm for " + algo + " found");<a name="line.82"></a> +<span class="sourceLineNo">083</span> }<a name="line.83"></a> +<span class="sourceLineNo">084</span> try {<a name="line.84"></a> +<span class="sourceLineNo">085</span> ca = (CryptoAlgorithm) Class.forName(cryptoClass).newInstance();<a name="line.85"></a> +<span class="sourceLineNo">086</span> } catch (Exception e) {<a name="line.86"></a> +<span class="sourceLineNo">087</span> throw new NoSuchAlgorithmException(<a name="line.87"></a> +<span class="sourceLineNo">088</span> "TurbineCryptoService: Error instantiating " + cryptoClass + " for " + algo);<a name="line.88"></a> +<span class="sourceLineNo">089</span> }<a name="line.89"></a> +<span class="sourceLineNo">090</span> ca.setCipher(algo);<a name="line.90"></a> +<span class="sourceLineNo">091</span> return ca;<a name="line.91"></a> +<span class="sourceLineNo">092</span> }<a name="line.92"></a> +<span class="sourceLineNo">093</span><a name="line.93"></a> +<span class="sourceLineNo">094</span><a name="line.94"></a> +<span class="sourceLineNo">095</span> // ---------------- Avalon Lifecycle Methods ---------------------<a name="line.95"></a> +<span class="sourceLineNo">096</span><a name="line.96"></a> +<span class="sourceLineNo">097</span> /**<a name="line.97"></a> +<span class="sourceLineNo">098</span> * Avalon component lifecycle method<a name="line.98"></a> +<span class="sourceLineNo">099</span> * <a name="line.99"></a> +<span class="sourceLineNo">100</span> * @param conf the configuration<a name="line.100"></a> +<span class="sourceLineNo">101</span> * @throws ConfigurationException if not found<a name="line.101"></a> +<span class="sourceLineNo">102</span> */<a name="line.102"></a> +<span class="sourceLineNo">103</span> public void configure(Configuration conf) throws ConfigurationException <a name="line.103"></a> +<span class="sourceLineNo">104</span> {<a name="line.104"></a> +<span class="sourceLineNo">105</span> // Initialize the hash and setup default<a name="line.105"></a> +<span class="sourceLineNo">106</span> // Can be overriden by default key from properties<a name="line.106"></a> +<span class="sourceLineNo">107</span> this.algos = new HashMap<>();<a name="line.107"></a> +<span class="sourceLineNo">108</span> this.algos.put(DEFAULT_KEY, DEFAULT_CLASS);<a name="line.108"></a> +<span class="sourceLineNo">109</span> <a name="line.109"></a> +<span class="sourceLineNo">110</span> final Configuration algorithms = conf.getChild(ALGORITHM, false);<a name="line.110"></a> +<span class="sourceLineNo">111</span> if (algorithms != null) {<a name="line.111"></a> +<span class="sourceLineNo">112</span> Configuration[] nameVal = algorithms.getChildren();<a name="line.112"></a> +<span class="sourceLineNo">113</span> for ( Configuration entry : nameVal )<a name="line.113"></a> +<span class="sourceLineNo">114</span> {<a name="line.114"></a> +<span class="sourceLineNo">115</span> algos.put(entry.getName(), entry.getValue());<a name="line.115"></a> +<span class="sourceLineNo">116</span> }<a name="line.116"></a> +<span class="sourceLineNo">117</span> }<a name="line.117"></a> +<span class="sourceLineNo">118</span> }<a name="line.118"></a> +<span class="sourceLineNo">119</span> <a name="line.119"></a> +<span class="sourceLineNo">120</span> /**<a name="line.120"></a> +<span class="sourceLineNo">121</span> * Initialize the service<a name="line.121"></a> +<span class="sourceLineNo">122</span> * <a name="line.122"></a> +<span class="sourceLineNo">123</span> * @see org.apache.avalon.framework.activity.Initializable#initialize()<a name="line.123"></a> +<span class="sourceLineNo">124</span> * <a name="line.124"></a> +<span class="sourceLineNo">125</span> * @throws Exception if initialization fails<a name="line.125"></a> +<span class="sourceLineNo">126</span> */<a name="line.126"></a> +<span class="sourceLineNo">127</span> public void initialize() throws Exception <a name="line.127"></a> +<span class="sourceLineNo">128</span> {<a name="line.128"></a> +<span class="sourceLineNo">129</span> getLogger().debug("initialize()");<a name="line.129"></a> +<span class="sourceLineNo">130</span> }<a name="line.130"></a> +<span class="sourceLineNo">131</span><a name="line.131"></a> +<span class="sourceLineNo">132</span> /**<a name="line.132"></a> +<span class="sourceLineNo">133</span> * Avalon component lifecycle method<a name="line.133"></a> +<span class="sourceLineNo">134</span> */<a name="line.134"></a> +<span class="sourceLineNo">135</span> public void dispose() <a name="line.135"></a> +<span class="sourceLineNo">136</span> {<a name="line.136"></a> +<span class="sourceLineNo">137</span> algos = null;<a name="line.137"></a> +<span class="sourceLineNo">138</span> }<a name="line.138"></a> +<span class="sourceLineNo">139</span><a name="line.139"></a> +<span class="sourceLineNo">140</span>}<a name="line.140"></a> @@ -208,6 +206,7 @@ -</PRE> -</BODY> -</HTML> +</pre> +</div> +</body> +</html> \ No newline at end of file
