blob: 1bf0742bc7d17f1ad7c7f3058130b68b0f87b7c4 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_22) on Thu Apr 26 14:22:13 IST 2012 -->
<TITLE>
TrustUtil (Apache Rampart API)
</TITLE>
<META NAME="date" CONTENT="2012-04-26">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="TrustUtil (Apache Rampart API)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TrustUtil.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas"><B>PREV CLASS</B></A>&nbsp;
&nbsp;NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html?org/apache/rahas/TrustUtil.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="TrustUtil.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.apache.rahas</FONT>
<BR>
Class TrustUtil</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>org.apache.rahas.TrustUtil</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>TrustUtil</B><DT>extends java.lang.Object</DL>
</PRE>
<P>
<HR>
<P>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#TrustUtil()">TrustUtil</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;org.apache.axiom.om.OMElement</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createAppliesToElement(org.apache.axiom.om.OMElement, java.lang.String, java.lang.String)">createAppliesToElement</A></B>(org.apache.axiom.om.OMElement&nbsp;parent,
java.lang.String&nbsp;address,
java.lang.String&nbsp;addressingNs)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;org.apache.axiom.om.OMElement</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createBinarySecretElement(int, org.apache.axiom.om.OMElement, java.lang.String)">createBinarySecretElement</A></B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent,
java.lang.String&nbsp;type)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;org.apache.axiom.om.OMElement</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createCancelRequest(java.lang.String, int)">createCancelRequest</A></B>(java.lang.String&nbsp;tokenId,
int&nbsp;version)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;org.apache.axiom.om.OMElement</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createCancelTargetElement(int, org.apache.axiom.om.OMElement)">createCancelTargetElement</A></B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;org.apache.axiom.om.OMElement</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createClaims(int, org.apache.axiom.om.OMElement, java.lang.String)">createClaims</A></B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent,
java.lang.String&nbsp;dialect)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;org.apache.axiom.om.OMElement</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createComputedKeyAlgorithm(int, org.apache.axiom.om.OMElement, java.lang.String)">createComputedKeyAlgorithm</A></B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent,
java.lang.String&nbsp;algoId)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;org.apache.axiom.om.OMElement</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createComputedKeyElement(int, org.apache.axiom.om.OMElement)">createComputedKeyElement</A></B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;org.apache.axiom.om.OMElement</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createEntropyElement(int, org.apache.axiom.om.OMElement)">createEntropyElement</A></B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;org.apache.axiom.om.OMElement</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createKeySizeElement(int, org.apache.axiom.om.OMElement, int)">createKeySizeElement</A></B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent,
int&nbsp;size)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;org.apache.axiom.om.OMElement</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createKeyTypeElement(int, org.apache.axiom.om.OMElement, java.lang.String)">createKeyTypeElement</A></B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent,
java.lang.String&nbsp;type)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;org.apache.axiom.om.OMElement</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createLifetimeElement(int, org.apache.axiom.om.OMElement, long)">createLifetimeElement</A></B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent,
long&nbsp;ttl)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;org.apache.axiom.om.OMElement</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createLifetimeElement(int, org.apache.axiom.om.OMElement, java.lang.String, java.lang.String)">createLifetimeElement</A></B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent,
java.lang.String&nbsp;created,
java.lang.String&nbsp;expires)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;org.apache.axiom.om.OMElement</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createRenewTargetElement(int, org.apache.axiom.om.OMElement, org.apache.axiom.om.OMElement)">createRenewTargetElement</A></B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent,
org.apache.axiom.om.OMElement&nbsp;str)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;org.apache.axiom.om.OMElement</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createRequestedAttachedRef(int, org.apache.axiom.om.OMElement, java.lang.String, java.lang.String)">createRequestedAttachedRef</A></B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent,
java.lang.String&nbsp;refUri,
java.lang.String&nbsp;refValueType)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createRequestedAttachedRef(org.apache.axiom.om.OMElement, java.lang.String, int)">createRequestedAttachedRef</A></B>(org.apache.axiom.om.OMElement&nbsp;rstrElem,
java.lang.String&nbsp;id,
int&nbsp;version)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create and add wst:AttachedReference element</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;org.apache.axiom.om.OMElement</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createRequestedProofTokenElement(int, org.apache.axiom.om.OMElement)">createRequestedProofTokenElement</A></B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;org.apache.axiom.om.OMElement</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createRequestedSecurityTokenElement(int, org.apache.axiom.om.OMElement)">createRequestedSecurityTokenElement</A></B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;org.apache.axiom.om.OMElement</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createRequestedTokenCanceledElement(int, org.apache.axiom.om.OMElement)">createRequestedTokenCanceledElement</A></B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;org.apache.axiom.om.OMElement</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createRequestedUnattachedRef(int, org.apache.axiom.om.OMElement, java.lang.String, java.lang.String)">createRequestedUnattachedRef</A></B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent,
java.lang.String&nbsp;refUri,
java.lang.String&nbsp;refValueType)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createRequestedUnattachedRef(org.apache.axiom.om.OMElement, java.lang.String, int)">createRequestedUnattachedRef</A></B>(org.apache.axiom.om.OMElement&nbsp;rstrElem,
java.lang.String&nbsp;id,
int&nbsp;version)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create and add wst:UnattachedReference element</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;org.apache.axiom.om.OMElement</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createRequestSecurityTokenElement(int)">createRequestSecurityTokenElement</A></B>(int&nbsp;version)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;org.apache.axiom.om.OMElement</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createRequestSecurityTokenResponseCollectionElement(int, org.apache.axiom.om.OMElement)">createRequestSecurityTokenResponseCollectionElement</A></B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;org.apache.axiom.om.OMElement</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createRequestSecurityTokenResponseElement(int, org.apache.axiom.om.OMElement)">createRequestSecurityTokenResponseElement</A></B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;org.apache.axiom.om.OMElement</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createRequestTypeElement(int, org.apache.axiom.om.OMElement, java.lang.String)">createRequestTypeElement</A></B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent,
java.lang.String&nbsp;value)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;org.w3c.dom.Element</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createSecurityTokenReference(org.w3c.dom.Document, java.lang.String, java.lang.String)">createSecurityTokenReference</A></B>(org.w3c.dom.Document&nbsp;doc,
java.lang.String&nbsp;refUri,
java.lang.String&nbsp;refValueType)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a wsse:Reference element with the given URI and the value type</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;org.apache.axiom.soap.SOAPEnvelope</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createSOAPEnvelope(java.lang.String)">createSOAPEnvelope</A></B>(java.lang.String&nbsp;nsUri)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a new <code>SOAPEnvelope</code> of the same version as the
SOAPEnvelope in the given <code>MessageContext</code></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;org.apache.axiom.om.OMElement</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createTokenTypeElement(int, org.apache.axiom.om.OMElement)">createTokenTypeElement</A></B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;org.apache.axiom.om.OMElement</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#createValidateTargetElement(int, org.apache.axiom.om.OMElement, org.apache.axiom.om.OMElement)">createValidateTargetElement</A></B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent,
org.apache.axiom.om.OMElement&nbsp;str)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;byte[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#generateEphemeralKey(byte[], byte[], java.lang.String, int)">generateEphemeralKey</A></B>(byte[]&nbsp;reqEnt,
byte[]&nbsp;respEnt,
java.lang.String&nbsp;algo,
int&nbsp;keySize)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create an ephemeral key</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;byte[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#generateEphemeralKey(int)">generateEphemeralKey</A></B>(int&nbsp;keySize)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create an ephemeral key</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#getActionValue(int, java.lang.String)">getActionValue</A></B>(int&nbsp;version,
java.lang.String&nbsp;action)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../org/apache/rahas/TokenStorage.html" title="interface in org.apache.rahas">TokenStorage</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#getTokenStore(org.apache.axis2.context.ConfigurationContext)">getTokenStore</A></B>(org.apache.axis2.context.ConfigurationContext&nbsp;ctx)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches the token storage from the configuration context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;<A HREF="../../../org/apache/rahas/TokenStorage.html" title="interface in org.apache.rahas">TokenStorage</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#getTokenStore(org.apache.axis2.context.MessageContext)">getTokenStore</A></B>(org.apache.axis2.context.MessageContext&nbsp;msgCtx)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the token store.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#getWSTNamespace(int)">getWSTNamespace</A></B>(int&nbsp;version)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#getWSTVersion(java.lang.String)">getWSTVersion</A></B>(java.lang.String&nbsp;ns)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;java.util.Properties</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/apache/rahas/TrustUtil.html#toProperties(org.apache.axiom.om.OMElement)">toProperties</A></B>(org.apache.axiom.om.OMElement&nbsp;cryptoElem)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="TrustUtil()"><!-- --></A><H3>
TrustUtil</H3>
<PRE>
public <B>TrustUtil</B>()</PRE>
<DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="createSecurityTokenReference(org.w3c.dom.Document, java.lang.String, java.lang.String)"><!-- --></A><H3>
createSecurityTokenReference</H3>
<PRE>
public static org.w3c.dom.Element <B>createSecurityTokenReference</B>(org.w3c.dom.Document&nbsp;doc,
java.lang.String&nbsp;refUri,
java.lang.String&nbsp;refValueType)</PRE>
<DL>
<DD>Create a wsse:Reference element with the given URI and the value type
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>doc</CODE> - <DD><CODE>refUri</CODE> - <DD><CODE>refValueType</CODE> -
<DT><B>Returns:</B><DD>Element</DL>
</DD>
</DL>
<HR>
<A NAME="createRequestSecurityTokenResponseElement(int, org.apache.axiom.om.OMElement)"><!-- --></A><H3>
createRequestSecurityTokenResponseElement</H3>
<PRE>
public static org.apache.axiom.om.OMElement <B>createRequestSecurityTokenResponseElement</B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createRequestSecurityTokenResponseCollectionElement(int, org.apache.axiom.om.OMElement)"><!-- --></A><H3>
createRequestSecurityTokenResponseCollectionElement</H3>
<PRE>
public static org.apache.axiom.om.OMElement <B>createRequestSecurityTokenResponseCollectionElement</B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createRequestedSecurityTokenElement(int, org.apache.axiom.om.OMElement)"><!-- --></A><H3>
createRequestedSecurityTokenElement</H3>
<PRE>
public static org.apache.axiom.om.OMElement <B>createRequestedSecurityTokenElement</B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createRequestSecurityTokenElement(int)"><!-- --></A><H3>
createRequestSecurityTokenElement</H3>
<PRE>
public static org.apache.axiom.om.OMElement <B>createRequestSecurityTokenElement</B>(int&nbsp;version)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createRequestedProofTokenElement(int, org.apache.axiom.om.OMElement)"><!-- --></A><H3>
createRequestedProofTokenElement</H3>
<PRE>
public static org.apache.axiom.om.OMElement <B>createRequestedProofTokenElement</B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createEntropyElement(int, org.apache.axiom.om.OMElement)"><!-- --></A><H3>
createEntropyElement</H3>
<PRE>
public static org.apache.axiom.om.OMElement <B>createEntropyElement</B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createComputedKeyElement(int, org.apache.axiom.om.OMElement)"><!-- --></A><H3>
createComputedKeyElement</H3>
<PRE>
public static org.apache.axiom.om.OMElement <B>createComputedKeyElement</B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createRequestTypeElement(int, org.apache.axiom.om.OMElement, java.lang.String)"><!-- --></A><H3>
createRequestTypeElement</H3>
<PRE>
public static org.apache.axiom.om.OMElement <B>createRequestTypeElement</B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent,
java.lang.String&nbsp;value)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createTokenTypeElement(int, org.apache.axiom.om.OMElement)"><!-- --></A><H3>
createTokenTypeElement</H3>
<PRE>
public static org.apache.axiom.om.OMElement <B>createTokenTypeElement</B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createValidateTargetElement(int, org.apache.axiom.om.OMElement, org.apache.axiom.om.OMElement)"><!-- --></A><H3>
createValidateTargetElement</H3>
<PRE>
public static org.apache.axiom.om.OMElement <B>createValidateTargetElement</B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent,
org.apache.axiom.om.OMElement&nbsp;str)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createRenewTargetElement(int, org.apache.axiom.om.OMElement, org.apache.axiom.om.OMElement)"><!-- --></A><H3>
createRenewTargetElement</H3>
<PRE>
public static org.apache.axiom.om.OMElement <B>createRenewTargetElement</B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent,
org.apache.axiom.om.OMElement&nbsp;str)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createBinarySecretElement(int, org.apache.axiom.om.OMElement, java.lang.String)"><!-- --></A><H3>
createBinarySecretElement</H3>
<PRE>
public static org.apache.axiom.om.OMElement <B>createBinarySecretElement</B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent,
java.lang.String&nbsp;type)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createComputedKeyAlgorithm(int, org.apache.axiom.om.OMElement, java.lang.String)"><!-- --></A><H3>
createComputedKeyAlgorithm</H3>
<PRE>
public static org.apache.axiom.om.OMElement <B>createComputedKeyAlgorithm</B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent,
java.lang.String&nbsp;algoId)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createRequestedUnattachedRef(int, org.apache.axiom.om.OMElement, java.lang.String, java.lang.String)"><!-- --></A><H3>
createRequestedUnattachedRef</H3>
<PRE>
public static org.apache.axiom.om.OMElement <B>createRequestedUnattachedRef</B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent,
java.lang.String&nbsp;refUri,
java.lang.String&nbsp;refValueType)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createRequestedAttachedRef(int, org.apache.axiom.om.OMElement, java.lang.String, java.lang.String)"><!-- --></A><H3>
createRequestedAttachedRef</H3>
<PRE>
public static org.apache.axiom.om.OMElement <B>createRequestedAttachedRef</B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent,
java.lang.String&nbsp;refUri,
java.lang.String&nbsp;refValueType)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createRequestedAttachedRef(org.apache.axiom.om.OMElement, java.lang.String, int)"><!-- --></A><H3>
createRequestedAttachedRef</H3>
<PRE>
public static void <B>createRequestedAttachedRef</B>(org.apache.axiom.om.OMElement&nbsp;rstrElem,
java.lang.String&nbsp;id,
int&nbsp;version)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD>Create and add wst:AttachedReference element
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>rstrElem</CODE> - wst:RequestSecurityToken element<DD><CODE>id</CODE> - Token identifier
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createRequestedUnattachedRef(org.apache.axiom.om.OMElement, java.lang.String, int)"><!-- --></A><H3>
createRequestedUnattachedRef</H3>
<PRE>
public static void <B>createRequestedUnattachedRef</B>(org.apache.axiom.om.OMElement&nbsp;rstrElem,
java.lang.String&nbsp;id,
int&nbsp;version)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD>Create and add wst:UnattachedReference element
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>rstrElem</CODE> - wst:RequestSecurityToken element<DD><CODE>id</CODE> - Token identifier
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createKeySizeElement(int, org.apache.axiom.om.OMElement, int)"><!-- --></A><H3>
createKeySizeElement</H3>
<PRE>
public static org.apache.axiom.om.OMElement <B>createKeySizeElement</B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent,
int&nbsp;size)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createKeyTypeElement(int, org.apache.axiom.om.OMElement, java.lang.String)"><!-- --></A><H3>
createKeyTypeElement</H3>
<PRE>
public static org.apache.axiom.om.OMElement <B>createKeyTypeElement</B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent,
java.lang.String&nbsp;type)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createRequestedTokenCanceledElement(int, org.apache.axiom.om.OMElement)"><!-- --></A><H3>
createRequestedTokenCanceledElement</H3>
<PRE>
public static org.apache.axiom.om.OMElement <B>createRequestedTokenCanceledElement</B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createLifetimeElement(int, org.apache.axiom.om.OMElement, java.lang.String, java.lang.String)"><!-- --></A><H3>
createLifetimeElement</H3>
<PRE>
public static org.apache.axiom.om.OMElement <B>createLifetimeElement</B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent,
java.lang.String&nbsp;created,
java.lang.String&nbsp;expires)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createLifetimeElement(int, org.apache.axiom.om.OMElement, long)"><!-- --></A><H3>
createLifetimeElement</H3>
<PRE>
public static org.apache.axiom.om.OMElement <B>createLifetimeElement</B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent,
long&nbsp;ttl)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createAppliesToElement(org.apache.axiom.om.OMElement, java.lang.String, java.lang.String)"><!-- --></A><H3>
createAppliesToElement</H3>
<PRE>
public static org.apache.axiom.om.OMElement <B>createAppliesToElement</B>(org.apache.axiom.om.OMElement&nbsp;parent,
java.lang.String&nbsp;address,
java.lang.String&nbsp;addressingNs)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getActionValue(int, java.lang.String)"><!-- --></A><H3>
getActionValue</H3>
<PRE>
public static java.lang.String <B>getActionValue</B>(int&nbsp;version,
java.lang.String&nbsp;action)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createSOAPEnvelope(java.lang.String)"><!-- --></A><H3>
createSOAPEnvelope</H3>
<PRE>
public static org.apache.axiom.soap.SOAPEnvelope <B>createSOAPEnvelope</B>(java.lang.String&nbsp;nsUri)</PRE>
<DL>
<DD>Create a new <code>SOAPEnvelope</code> of the same version as the
SOAPEnvelope in the given <code>MessageContext</code>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>nsUri</CODE> -
<DT><B>Returns:</B><DD>SOAPEnvelope</DL>
</DD>
</DL>
<HR>
<A NAME="getWSTNamespace(int)"><!-- --></A><H3>
getWSTNamespace</H3>
<PRE>
public static java.lang.String <B>getWSTNamespace</B>(int&nbsp;version)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getWSTVersion(java.lang.String)"><!-- --></A><H3>
getWSTVersion</H3>
<PRE>
public static int <B>getWSTVersion</B>(java.lang.String&nbsp;ns)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getTokenStore(org.apache.axis2.context.MessageContext)"><!-- --></A><H3>
getTokenStore</H3>
<PRE>
public static <A HREF="../../../org/apache/rahas/TokenStorage.html" title="interface in org.apache.rahas">TokenStorage</A> <B>getTokenStore</B>(org.apache.axis2.context.MessageContext&nbsp;msgCtx)</PRE>
<DL>
<DD>Returns the token store.
If the token store is already available in the configuration context then
fetch it and return it. If not create a new one, hook it up in the
configuration context and return it
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>msgCtx</CODE> -
<DT><B>Returns:</B><DD>the token store</DL>
</DD>
</DL>
<HR>
<A NAME="getTokenStore(org.apache.axis2.context.ConfigurationContext)"><!-- --></A><H3>
getTokenStore</H3>
<PRE>
public static <A HREF="../../../org/apache/rahas/TokenStorage.html" title="interface in org.apache.rahas">TokenStorage</A> <B>getTokenStore</B>(org.apache.axis2.context.ConfigurationContext&nbsp;ctx)</PRE>
<DL>
<DD>Fetches the token storage from the configuration context.
If the token store is already available in the configuration context then
fetch it and return it. If not create a new one, hook it up in the
configuration context and return it
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ctx</CODE> -
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>
<A NAME="generateEphemeralKey(int)"><!-- --></A><H3>
generateEphemeralKey</H3>
<PRE>
protected byte[] <B>generateEphemeralKey</B>(int&nbsp;keySize)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD>Create an ephemeral key
<P>
<DD><DL>
<DT><B>Returns:</B><DD>The generated ephemeral key
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="generateEphemeralKey(byte[], byte[], java.lang.String, int)"><!-- --></A><H3>
generateEphemeralKey</H3>
<PRE>
protected byte[] <B>generateEphemeralKey</B>(byte[]&nbsp;reqEnt,
byte[]&nbsp;respEnt,
java.lang.String&nbsp;algo,
int&nbsp;keySize)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD>Create an ephemeral key
<P>
<DD><DL>
<DT><B>Returns:</B><DD>The generated ephemeral key
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createCancelTargetElement(int, org.apache.axiom.om.OMElement)"><!-- --></A><H3>
createCancelTargetElement</H3>
<PRE>
public static org.apache.axiom.om.OMElement <B>createCancelTargetElement</B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createClaims(int, org.apache.axiom.om.OMElement, java.lang.String)"><!-- --></A><H3>
createClaims</H3>
<PRE>
public static org.apache.axiom.om.OMElement <B>createClaims</B>(int&nbsp;version,
org.apache.axiom.om.OMElement&nbsp;parent,
java.lang.String&nbsp;dialect)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="createCancelRequest(java.lang.String, int)"><!-- --></A><H3>
createCancelRequest</H3>
<PRE>
public static org.apache.axiom.om.OMElement <B>createCancelRequest</B>(java.lang.String&nbsp;tokenId,
int&nbsp;version)
throws <A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="toProperties(org.apache.axiom.om.OMElement)"><!-- --></A><H3>
toProperties</H3>
<PRE>
public static java.util.Properties <B>toProperties</B>(org.apache.axiom.om.OMElement&nbsp;cryptoElem)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TrustUtil.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas"><B>PREV CLASS</B></A>&nbsp;
&nbsp;NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html?org/apache/rahas/TrustUtil.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="TrustUtil.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>