diff options
Diffstat (limited to 'spss.server/doc/api-doc-internal/at/gv/egovernment/moa/util/KeyStoreUtils.html')
-rw-r--r-- | spss.server/doc/api-doc-internal/at/gv/egovernment/moa/util/KeyStoreUtils.html | 302 |
1 files changed, 302 insertions, 0 deletions
diff --git a/spss.server/doc/api-doc-internal/at/gv/egovernment/moa/util/KeyStoreUtils.html b/spss.server/doc/api-doc-internal/at/gv/egovernment/moa/util/KeyStoreUtils.html new file mode 100644 index 000000000..9d35345c4 --- /dev/null +++ b/spss.server/doc/api-doc-internal/at/gv/egovernment/moa/util/KeyStoreUtils.html @@ -0,0 +1,302 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"> +<!--NewPage--> +<HTML> +<HEAD> +<!-- Generated by javadoc on Tue Jul 01 18:49:22 CEST 2003 --> +<TITLE> +MOA SP/SS Server Internal API: Class KeyStoreUtils +</TITLE> +<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> +</HEAD> +<BODY BGCOLOR="white"> + +<!-- ========== START OF NAVBAR ========== --> +<A NAME="navbar_top"><!-- --></A> +<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> +<TR> +<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> +<A NAME="navbar_top_firstrow"><!-- --></A> +<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> + <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/KeyStoreUtils.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"> + <A HREF="../../../../../at/gv/egovernment/moa/util/FileUtils.html"><B>PREV CLASS</B></A> + <A HREF="../../../../../at/gv/egovernment/moa/util/MessageProvider.html"><B>NEXT CLASS</B></A></FONT></TD> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A> + <A HREF="KeyStoreUtils.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> +</TR> +<TR> +<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> + SUMMARY: INNER | 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> +<!-- =========== END OF NAVBAR =========== --> + +<HR> +<!-- ======== START OF CLASS DATA ======== --> +<H2> +<FONT SIZE="-1"> +at.gv.egovernment.moa.util</FONT> +<BR> +Class KeyStoreUtils</H2> +<PRE> +<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">java.lang.Object</A> + | + +--<B>at.gv.egovernment.moa.util.KeyStoreUtils</B> +</PRE> +<HR> +<DL> +<DT>public class <B>KeyStoreUtils</B><DT>extends <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A></DL> + +<P> +Utility for creating and loading key stores. +<P> +<DL> +<DT><B>Version: </B><DD>$Id$</DD> +<DT><B>Author: </B><DD>Paul Ivancsics</DD> +</DL> +<HR> + +<P> +<!-- ======== INNER CLASS SUMMARY ======== --> + + +<!-- =========== FIELD SUMMARY =========== --> + + +<!-- ======== CONSTRUCTOR SUMMARY ======== --> + +<A NAME="constructor_summary"><!-- --></A> +<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TD COLSPAN=2><FONT SIZE="+2"> +<B>Constructor Summary</B></FONT></TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><CODE><B><A HREF="../../../../../at/gv/egovernment/moa/util/KeyStoreUtils.html#KeyStoreUtils()">KeyStoreUtils</A></B>()</CODE> + +<BR> + </TD> +</TR> +</TABLE> + +<!-- ========== METHOD SUMMARY =========== --> + +<A NAME="method_summary"><!-- --></A> +<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TD COLSPAN=2><FONT SIZE="+2"> +<B>Method Summary</B></FONT></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/j2se/1.3/docs/api/java/security/KeyStore.html">KeyStore</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../at/gv/egovernment/moa/util/KeyStoreUtils.html#createKeyStore(java.lang.String, java.lang.String[])">createKeyStore</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> keyStoreType, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A>[] certFilenames)</CODE> + +<BR> + Creates a key store from X509 certificate files, aliasing them with + the index in the <code>String[]</code>, starting with <code>"0"</code>.</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/j2se/1.3/docs/api/java/security/KeyStore.html">KeyStore</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../at/gv/egovernment/moa/util/KeyStoreUtils.html#createKeyStoreFromCertificateDirectory(java.lang.String, java.lang.String)">createKeyStoreFromCertificateDirectory</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> keyStoreType, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> certDirURLString)</CODE> + +<BR> + Creates a key store from a directory containg X509 certificate files, + aliasing them with the index in the <code>String[]</code>, starting with <code>"0"</code>. + </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/j2se/1.3/docs/api/java/security/KeyStore.html">KeyStore</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../at/gv/egovernment/moa/util/KeyStoreUtils.html#loadKeyStore(java.lang.String, java.io.InputStream, java.lang.String)">loadKeyStore</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> keystoreType, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html">InputStream</A> in, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> password)</CODE> + +<BR> + Loads a key store from an <code>InputStream</code>, and + closes the <code>InputStream</code>.</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/j2se/1.3/docs/api/java/security/KeyStore.html">KeyStore</A></CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../../../at/gv/egovernment/moa/util/KeyStoreUtils.html#loadKeyStore(java.lang.String, java.lang.String, java.lang.String)">loadKeyStore</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> keystoreType, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> urlString, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> password)</CODE> + +<BR> + Loads a key store from file.</TD> +</TR> +</TABLE> + <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> +<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> +<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> +<TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A></B></TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#clone()">clone</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#finalize()">finalize</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#getClass()">getClass</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notify()">notify</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#toString()">toString</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait()">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long)">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html#wait(long, int)">wait</A></CODE></TD> +</TR> +</TABLE> + +<P> + +<!-- ============ FIELD DETAIL =========== --> + + +<!-- ========= CONSTRUCTOR DETAIL ======== --> + +<A NAME="constructor_detail"><!-- --></A> +<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TD COLSPAN=1><FONT SIZE="+2"> +<B>Constructor Detail</B></FONT></TD> +</TR> +</TABLE> + +<A NAME="KeyStoreUtils()"><!-- --></A><H3> +KeyStoreUtils</H3> +<PRE> +public <B>KeyStoreUtils</B>()</PRE> +<DL> +</DL> + +<!-- ============ METHOD DETAIL ========== --> + +<A NAME="method_detail"><!-- --></A> +<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TD COLSPAN=1><FONT SIZE="+2"> +<B>Method Detail</B></FONT></TD> +</TR> +</TABLE> + +<A NAME="loadKeyStore(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3> +loadKeyStore</H3> +<PRE> +public static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/security/KeyStore.html">KeyStore</A> <B>loadKeyStore</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> keystoreType, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> urlString, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> password) + throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A>, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/security/GeneralSecurityException.html">GeneralSecurityException</A></PRE> +<DL> +<DD>Loads a key store from file.<DD><DL> +<DT><B>Parameters:</B><DD><CODE>keystoreType</CODE> - key store type<DD><CODE>urlString</CODE> - URL of key store<DD><CODE>password</CODE> - password protecting the key store<DT><B>Returns:</B><DD>key store loaded<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></CODE> - thrown while reading the key store from file<DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/security/GeneralSecurityException.html">GeneralSecurityException</A></CODE> - thrown while creating the key store</DL> +</DD> +</DL> +<HR> + +<A NAME="loadKeyStore(java.lang.String, java.io.InputStream, java.lang.String)"><!-- --></A><H3> +loadKeyStore</H3> +<PRE> +public static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/security/KeyStore.html">KeyStore</A> <B>loadKeyStore</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> keystoreType, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/InputStream.html">InputStream</A> in, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> password) + throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A>, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/security/GeneralSecurityException.html">GeneralSecurityException</A></PRE> +<DL> +<DD>Loads a key store from an <code>InputStream</code>, and + closes the <code>InputStream</code>.<DD><DL> +<DT><B>Parameters:</B><DD><CODE>keystoreType</CODE> - key store type<DD><CODE>in</CODE> - input stream<DD><CODE>password</CODE> - password protecting the key store<DT><B>Returns:</B><DD>key store loaded<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></CODE> - thrown while reading the key store from the stream<DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/security/GeneralSecurityException.html">GeneralSecurityException</A></CODE> - thrown while creating the key store</DL> +</DD> +</DL> +<HR> + +<A NAME="createKeyStore(java.lang.String, java.lang.String[])"><!-- --></A><H3> +createKeyStore</H3> +<PRE> +public static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/security/KeyStore.html">KeyStore</A> <B>createKeyStore</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> keyStoreType, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A>[] certFilenames) + throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A>, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/security/GeneralSecurityException.html">GeneralSecurityException</A></PRE> +<DL> +<DD>Creates a key store from X509 certificate files, aliasing them with + the index in the <code>String[]</code>, starting with <code>"0"</code>.<DD><DL> +<DT><B>Parameters:</B><DD><CODE>keyStoreType</CODE> - key store type<DD><CODE>certFilenames</CODE> - certificate filenames<DT><B>Returns:</B><DD>key store created<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></CODE> - thrown while reading the certificates from file<DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/security/GeneralSecurityException.html">GeneralSecurityException</A></CODE> - thrown while creating the key store</DL> +</DD> +</DL> +<HR> + +<A NAME="createKeyStoreFromCertificateDirectory(java.lang.String, java.lang.String)"><!-- --></A><H3> +createKeyStoreFromCertificateDirectory</H3> +<PRE> +public static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/security/KeyStore.html">KeyStore</A> <B>createKeyStoreFromCertificateDirectory</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> keyStoreType, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> certDirURLString) + throws <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A>, + <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/security/GeneralSecurityException.html">GeneralSecurityException</A></PRE> +<DL> +<DD>Creates a key store from a directory containg X509 certificate files, + aliasing them with the index in the <code>String[]</code>, starting with <code>"0"</code>. + All the files in the directory are considered to be certificates.<DD><DL> +<DT><B>Parameters:</B><DD><CODE>keyStoreType</CODE> - key store type<DD><CODE>certDirURLString</CODE> - file URL of directory containing certificate filenames<DT><B>Returns:</B><DD>key store created<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></CODE> - thrown while reading the certificates from file<DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/security/GeneralSecurityException.html">GeneralSecurityException</A></CODE> - thrown while creating the key store</DL> +</DD> +</DL> +<!-- ========= END OF CLASS DATA ========= --> +<HR> + +<!-- ========== START OF NAVBAR ========== --> +<A NAME="navbar_bottom"><!-- --></A> +<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> +<TR> +<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> +<A NAME="navbar_bottom_firstrow"><!-- --></A> +<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> + <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/KeyStoreUtils.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"> + <A HREF="../../../../../at/gv/egovernment/moa/util/FileUtils.html"><B>PREV CLASS</B></A> + <A HREF="../../../../../at/gv/egovernment/moa/util/MessageProvider.html"><B>NEXT CLASS</B></A></FONT></TD> +<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> + <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A> + <A HREF="KeyStoreUtils.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> +</TR> +<TR> +<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> + SUMMARY: INNER | 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> +<!-- =========== END OF NAVBAR =========== --> + +<HR> + +</BODY> +</HTML> |