| <!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> |
| RampartUtil (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="RampartUtil (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> </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/RampartUtil.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="../../../../org/apache/rampart/util/MessageOptimizer.html" title="class in org.apache.rampart.util"><B>PREV CLASS</B></A> |
| NEXT CLASS</FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../index.html?org/apache/rampart/util/RampartUtil.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="RampartUtil.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_top"></A> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| |
| <HR> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <H2> |
| <FONT SIZE="-1"> |
| org.apache.rampart.util</FONT> |
| <BR> |
| Class RampartUtil</H2> |
| <PRE> |
| java.lang.Object |
| <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.rampart.util.RampartUtil</B> |
| </PRE> |
| <HR> |
| <DL> |
| <DT><PRE>public class <B>RampartUtil</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/rampart/util/RampartUtil.html#RampartUtil()">RampartUtil</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ========== METHOD SUMMARY =========== --> |
| |
| <A NAME="method_summary"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
| <B>Method Summary</B></FONT></TH> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static org.apache.neethi.Policy</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#addRampartConfig(org.apache.rampart.RampartMessageData, org.apache.neethi.Policy)">addRampartConfig</A></B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| org.apache.neethi.Policy policy)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#addWsuIdToElement(org.apache.axiom.om.OMElement)">addWsuIdToElement</A></B>(org.apache.axiom.om.OMElement elem)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static org.w3c.dom.Element</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#appendChildToSecHeader(org.apache.rampart.RampartMessageData, org.w3c.dom.Element)">appendChildToSecHeader</A></B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| org.w3c.dom.Element elem)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static org.w3c.dom.Element</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#appendChildToSecHeader(org.apache.rampart.RampartMessageData, org.apache.axiom.om.OMElement)">appendChildToSecHeader</A></B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| org.apache.axiom.om.OMElement elem)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#checkRequiredElements(org.apache.axiom.soap.SOAPEnvelope, java.util.HashMap, java.lang.String)">checkRequiredElements</A></B>(org.apache.axiom.soap.SOAPEnvelope envelope, |
| java.util.HashMap decNamespaces, |
| java.lang.String expression)</CODE> |
| |
| <BR> |
| Get a element for SOAP</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static org.apache.ws.security.WSEncryptionPart</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#createEncryptionPart(java.lang.String, java.lang.String)">createEncryptionPart</A></B>(java.lang.String name, |
| java.lang.String id)</CODE> |
| |
| <BR> |
| Creates an Encryption or Signature paert with given name and id.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static org.apache.ws.security.WSEncryptionPart</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#createEncryptionPart(java.lang.String, java.lang.String, java.lang.String, java.lang.String)">createEncryptionPart</A></B>(java.lang.String name, |
| java.lang.String id, |
| java.lang.String namespace, |
| java.lang.String modifier)</CODE> |
| |
| <BR> |
| Creates an encryption part.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static org.apache.ws.security.WSEncryptionPart</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#createEncryptionPart(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)">createEncryptionPart</A></B>(java.lang.String name, |
| java.lang.String id, |
| java.lang.String namespace, |
| java.lang.String modifier, |
| java.lang.String xPath)</CODE> |
| |
| <BR> |
| Creates an encryption part.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static org.apache.axiom.om.OMElement</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#createRSTTempalteForSCT(int, int)">createRSTTempalteForSCT</A></B>(int conversationVersion, |
| int wstVersion)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#encryptFirst(org.apache.rampart.policy.RampartPolicyData)">encryptFirst</A></B>(<A HREF="../../../../org/apache/rampart/policy/RampartPolicyData.html" title="class in org.apache.rampart.policy">RampartPolicyData</A> rpd)</CODE> |
| |
| <BR> |
| Returns true if needed to encrypt first.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.util.Set</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#findAllPrefixNamespaces(org.apache.axiom.om.OMElement, java.util.HashMap)">findAllPrefixNamespaces</A></B>(org.apache.axiom.om.OMElement currentElement, |
| java.util.HashMap decNamespacess)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.util.List<org.apache.ws.security.WSEncryptionPart></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getContentEncryptedElements(java.util.List, org.apache.axiom.soap.SOAPEnvelope, java.util.List, java.util.HashMap)">getContentEncryptedElements</A></B>(java.util.List<org.apache.ws.security.WSEncryptionPart> encryptedPartsElements, |
| org.apache.axiom.soap.SOAPEnvelope envelope, |
| java.util.List<java.lang.String> elements, |
| java.util.HashMap decNamespaces)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getContextIdentifierKey(org.apache.axis2.context.MessageContext)">getContextIdentifierKey</A></B>(org.apache.axis2.context.MessageContext msgContext)</CODE> |
| |
| <BR> |
| Creates the unique (reproducible) id for to hold the context identifier |
| of the message exchange.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.util.Hashtable</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getContextMap(org.apache.axis2.context.MessageContext)">getContextMap</A></B>(org.apache.axis2.context.MessageContext msgContext)</CODE> |
| |
| <BR> |
| Returns the map of security context token identifiers</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.util.List<org.apache.ws.security.WSEncryptionPart></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getEncryptedParts(org.apache.rampart.RampartMessageData)">getEncryptedParts</A></B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static org.apache.ws.security.components.crypto.Crypto</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getEncryptionCrypto(org.apache.rampart.policy.model.RampartConfig, java.lang.ClassLoader)">getEncryptionCrypto</A></B>(<A HREF="../../../../org/apache/rampart/policy/model/RampartConfig.html" title="class in org.apache.rampart.policy.model">RampartConfig</A> config, |
| java.lang.ClassLoader loader)</CODE> |
| |
| <BR> |
| Create the <code>Crypto</code> instance for encryption using information |
| from the rampart configuration assertion</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static javax.crypto.KeyGenerator</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getEncryptionKeyGenerator(java.lang.String)">getEncryptionKeyGenerator</A></B>(java.lang.String symEncrAlgo)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getIssuedToken(org.apache.rampart.RampartMessageData, org.apache.ws.secpolicy.model.IssuedToken)">getIssuedToken</A></B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| org.apache.ws.secpolicy.model.IssuedToken issuedToken)</CODE> |
| |
| <BR> |
| Obtain an issued token.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getKeyIdentifier(org.apache.ws.secpolicy.model.X509Token)">getKeyIdentifier</A></B>(org.apache.ws.secpolicy.model.X509Token token)</CODE> |
| |
| <BR> |
| figureout the key identifier of a give X509Token</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.util.List<org.apache.ws.security.WSEncryptionPart></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getPartsAndElements(boolean, org.apache.axiom.soap.SOAPEnvelope, boolean, java.util.List, java.util.List, java.util.HashMap)">getPartsAndElements</A></B>(boolean sign, |
| org.apache.axiom.soap.SOAPEnvelope envelope, |
| boolean includeBody, |
| java.util.List<org.apache.ws.security.WSEncryptionPart> parts, |
| java.util.List<java.lang.String> elements, |
| java.util.HashMap decNamespaces)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static javax.security.auth.callback.CallbackHandler</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getPasswordCB(org.apache.axis2.context.MessageContext, org.apache.rampart.policy.RampartPolicyData)">getPasswordCB</A></B>(org.apache.axis2.context.MessageContext msgContext, |
| <A HREF="../../../../org/apache/rampart/policy/RampartPolicyData.html" title="class in org.apache.rampart.policy">RampartPolicyData</A> rpd)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static javax.security.auth.callback.CallbackHandler</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getPasswordCB(org.apache.rampart.RampartMessageData)">getPasswordCB</A></B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static org.apache.neethi.Policy</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getPolicyFromMetadataRef(org.apache.axiom.om.OMElement)">getPolicyFromMetadataRef</A></B>(org.apache.axiom.om.OMElement mex)</CODE> |
| |
| <BR> |
| Retrieve policy using metadata reference |
| <wsa:Metadata xmlns:wsa="http://www.w3.org/2005/08/addressing"> |
| <mex:Metadata |
| xmlns:mex="http://schemas.xmlsoap.org/ws/2004/09/mex" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| <mex:MetadataSection> |
| <mex:MetadataReference> |
| <wsa:Address>http://address/of/mex/service</wsa:Address> |
| </mex:MetadataReference> |
| </mex:MetadataSection> |
| </mex:Metadata> |
| </wsa:Metadata></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="../../../../org/apache/rampart/PolicyValidatorCallbackHandler.html" title="interface in org.apache.rampart">PolicyValidatorCallbackHandler</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getPolicyValidatorCB(org.apache.axis2.context.MessageContext, org.apache.rampart.policy.RampartPolicyData)">getPolicyValidatorCB</A></B>(org.apache.axis2.context.MessageContext msgContext, |
| <A HREF="../../../../org/apache/rampart/policy/RampartPolicyData.html" title="class in org.apache.rampart.policy">RampartPolicyData</A> rpd)</CODE> |
| |
| <BR> |
| Returns an instance of PolicyValidatorCallbackHandler to be used to validate ws-security results.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="../../../../org/apache/rampart/RampartConfigCallbackHandler.html" title="interface in org.apache.rampart">RampartConfigCallbackHandler</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getRampartConfigCallbackHandler(org.apache.axis2.context.MessageContext, org.apache.rampart.policy.RampartPolicyData)">getRampartConfigCallbackHandler</A></B>(org.apache.axis2.context.MessageContext msgContext, |
| <A HREF="../../../../org/apache/rampart/policy/RampartPolicyData.html" title="class in org.apache.rampart.policy">RampartPolicyData</A> rpd)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getRequestEncryptedKeyId(java.util.List)">getRequestEncryptedKeyId</A></B>(java.util.List<org.apache.ws.security.handler.WSHandlerResult> results)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static byte[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getRequestEncryptedKeyValue(java.util.List)">getRequestEncryptedKeyValue</A></B>(java.util.List<org.apache.ws.security.handler.WSHandlerResult> results)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getSAML10AssertionNamespace()">getSAML10AssertionNamespace</A></B>()</CODE> |
| |
| <BR> |
| Returns SAML10 Assertion namespace.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getSecConvToken(org.apache.rampart.RampartMessageData, org.apache.ws.secpolicy.model.SecureConversationToken)">getSecConvToken</A></B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| org.apache.ws.secpolicy.model.SecureConversationToken secConvTok)</CODE> |
| |
| <BR> |
| Obtain a security context token.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getSigElementId(org.apache.rampart.RampartMessageData)">getSigElementId</A></B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static org.apache.ws.security.components.crypto.Crypto</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getSignatureCrypto(org.apache.rampart.policy.model.RampartConfig, java.lang.ClassLoader)">getSignatureCrypto</A></B>(<A HREF="../../../../org/apache/rampart/policy/model/RampartConfig.html" title="class in org.apache.rampart.policy.model">RampartConfig</A> config, |
| java.lang.ClassLoader loader)</CODE> |
| |
| <BR> |
| Create the <code>Crypto</code> instance for signature using information |
| from the rampart configuration assertion</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.util.List<org.apache.ws.security.WSEncryptionPart></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getSignedParts(org.apache.rampart.RampartMessageData)">getSignedParts</A></B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getSoapBodyId(org.apache.axiom.soap.SOAPEnvelope)">getSoapBodyId</A></B>(org.apache.axiom.soap.SOAPEnvelope env)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.util.List<org.apache.ws.security.WSEncryptionPart></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getSupportingEncryptedParts(org.apache.rampart.RampartMessageData, org.apache.rampart.policy.SupportingPolicyData)">getSupportingEncryptedParts</A></B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| <A HREF="../../../../org/apache/rampart/policy/SupportingPolicyData.html" title="class in org.apache.rampart.policy">SupportingPolicyData</A> rpd)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.util.List<org.apache.ws.security.WSEncryptionPart></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getSupportingSignedParts(org.apache.rampart.RampartMessageData, org.apache.rampart.policy.SupportingPolicyData)">getSupportingSignedParts</A></B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| <A HREF="../../../../org/apache/rampart/policy/SupportingPolicyData.html" title="class in org.apache.rampart.policy">SupportingPolicyData</A> rpd)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getTimestampMaxSkew(org.apache.rampart.RampartMessageData)">getTimestampMaxSkew</A></B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> messageData)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getTimeToLive(org.apache.rampart.RampartMessageData)">getTimeToLive</A></B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> messageData)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getToken(org.apache.rampart.RampartMessageData, org.apache.axiom.om.OMElement, java.lang.String, java.lang.String, org.apache.neethi.Policy)">getToken</A></B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| org.apache.axiom.om.OMElement rstTemplate, |
| java.lang.String issuerEpr, |
| java.lang.String action, |
| org.apache.neethi.Policy issuerPolicy)</CODE> |
| |
| <BR> |
| Request a token.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getUsername(java.util.List)">getUsername</A></B>(java.util.List<org.apache.ws.security.handler.WSHandlerResult> results)</CODE> |
| |
| <BR> |
| Scan through <code>WSHandlerResult<code> list for a Username token and return |
| the username if a Username Token found</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static org.apache.ws.security.WSSConfig</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#getWSSConfigInstance()">getWSSConfigInstance</A></B>()</CODE> |
| |
| <BR> |
| We use this method to prevent the singleton behavior of WSSConfig</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#handleEncryptedSignedHeaders(java.util.List, java.util.List, org.w3c.dom.Document)">handleEncryptedSignedHeaders</A></B>(java.util.List<org.apache.ws.security.WSEncryptionPart> encryptedParts, |
| java.util.List<org.apache.ws.security.WSEncryptionPart> signedParts, |
| org.w3c.dom.Document doc)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static org.w3c.dom.Element</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#insertSiblingAfter(org.apache.rampart.RampartMessageData, org.w3c.dom.Element, org.w3c.dom.Element)">insertSiblingAfter</A></B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| org.w3c.dom.Element child, |
| org.w3c.dom.Element sibling)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static org.w3c.dom.Element</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#insertSiblingAfterOrPrepend(org.apache.rampart.RampartMessageData, org.w3c.dom.Element, org.w3c.dom.Element)">insertSiblingAfterOrPrepend</A></B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| org.w3c.dom.Element child, |
| org.w3c.dom.Element elem)</CODE> |
| |
| <BR> |
| If the child is present insert the element as a sibling after him.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static org.w3c.dom.Element</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#insertSiblingBefore(org.apache.rampart.RampartMessageData, org.w3c.dom.Element, org.w3c.dom.Element)">insertSiblingBefore</A></B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| org.w3c.dom.Element child, |
| org.w3c.dom.Element sibling)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static org.w3c.dom.Element</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#insertSiblingBeforeOrPrepend(org.apache.rampart.RampartMessageData, org.w3c.dom.Element, org.w3c.dom.Element)">insertSiblingBeforeOrPrepend</A></B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| org.w3c.dom.Element child, |
| org.w3c.dom.Element elem)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#isSecHeaderRequired(org.apache.rampart.policy.RampartPolicyData, boolean, boolean)">isSecHeaderRequired</A></B>(<A HREF="../../../../org/apache/rampart/policy/RampartPolicyData.html" title="class in org.apache.rampart.policy">RampartPolicyData</A> rpd, |
| boolean initiator, |
| boolean inflow)</CODE> |
| |
| <BR> |
| Method to check whether security header is required in incoming message</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#isTokenValid(org.apache.rampart.RampartMessageData, java.lang.String)">isTokenValid</A></B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| java.lang.String id)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static org.apache.ws.security.WSPasswordCallback</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#performCallback(javax.security.auth.callback.CallbackHandler, java.lang.String, int)">performCallback</A></B>(javax.security.auth.callback.CallbackHandler cbHandler, |
| java.lang.String username, |
| int doAction)</CODE> |
| |
| <BR> |
| Perform a callback to get a password.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#processIssuerAddress(org.apache.axiom.om.OMElement)">processIssuerAddress</A></B>(org.apache.axiom.om.OMElement issuerAddress)</CODE> |
| |
| <BR> |
| Process a give issuer address element and return the address.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#setDecryptionCrypto(org.apache.axis2.context.MessageContext)">setDecryptionCrypto</A></B>(org.apache.axis2.context.MessageContext msgContext)</CODE> |
| |
| <BR> |
| Sets decryption crypto file or crypto reference key to signature crypto file or signature |
| crypto reference.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#setEncryptionCrypto(org.apache.axis2.context.MessageContext)">setEncryptionCrypto</A></B>(org.apache.axis2.context.MessageContext msgContext)</CODE> |
| |
| <BR> |
| Sets encryption crypto file or crypto reference key to signature crypto file or signature |
| crypto reference.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#setEncryptionUser(org.apache.rampart.RampartMessageData, org.apache.ws.security.message.WSSecEncryptedKey)">setEncryptionUser</A></B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| org.apache.ws.security.message.WSSecEncryptedKey encrKeyBuilder)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#setEncryptionUser(org.apache.rampart.RampartMessageData, org.apache.ws.security.message.WSSecEncryptedKey, java.lang.String)">setEncryptionUser</A></B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| org.apache.ws.security.message.WSSecEncryptedKey encrKeyBuilder, |
| java.lang.String encrUser)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#setKeyIdentifierType(org.apache.rampart.RampartMessageData, org.apache.ws.security.message.WSSecBase, org.apache.ws.secpolicy.model.Token)">setKeyIdentifierType</A></B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| org.apache.ws.security.message.WSSecBase secBase, |
| org.apache.ws.secpolicy.model.Token token)</CODE> |
| |
| <BR> |
| Sets the keyIdentifierType of <code>WSSecSignature</code> or <code>WSSecEncryptedKey</code> |
| according to the given <code>Token</code> and <code>RampartPolicyData</code> |
| First check the requirements specified under Token Assertion and if not found check |
| the WSS11 and WSS10 assertions</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/rampart/util/RampartUtil.html#validateTransport(org.apache.rampart.RampartMessageData)">validateTransport</A></B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd)</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
| <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TH ALIGN="left"><B>Methods inherited from class java.lang.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> |
| |
| <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="RampartUtil()"><!-- --></A><H3> |
| RampartUtil</H3> |
| <PRE> |
| public <B>RampartUtil</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="getPasswordCB(org.apache.rampart.RampartMessageData)"><!-- --></A><H3> |
| getPasswordCB</H3> |
| <PRE> |
| public static javax.security.auth.callback.CallbackHandler <B>getPasswordCB</B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd) |
| throws <A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></PRE> |
| <DL> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getPasswordCB(org.apache.axis2.context.MessageContext, org.apache.rampart.policy.RampartPolicyData)"><!-- --></A><H3> |
| getPasswordCB</H3> |
| <PRE> |
| public static javax.security.auth.callback.CallbackHandler <B>getPasswordCB</B>(org.apache.axis2.context.MessageContext msgContext, |
| <A HREF="../../../../org/apache/rampart/policy/RampartPolicyData.html" title="class in org.apache.rampart.policy">RampartPolicyData</A> rpd) |
| throws <A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></PRE> |
| <DL> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>msgContext</CODE> - <DD><CODE>rpd</CODE> - |
| <DT><B>Returns:</B><DD>The <code>CallbackHandler</code> instance |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getPolicyValidatorCB(org.apache.axis2.context.MessageContext, org.apache.rampart.policy.RampartPolicyData)"><!-- --></A><H3> |
| getPolicyValidatorCB</H3> |
| <PRE> |
| public static <A HREF="../../../../org/apache/rampart/PolicyValidatorCallbackHandler.html" title="interface in org.apache.rampart">PolicyValidatorCallbackHandler</A> <B>getPolicyValidatorCB</B>(org.apache.axis2.context.MessageContext msgContext, |
| <A HREF="../../../../org/apache/rampart/policy/RampartPolicyData.html" title="class in org.apache.rampart.policy">RampartPolicyData</A> rpd) |
| throws <A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></PRE> |
| <DL> |
| <DD>Returns an instance of PolicyValidatorCallbackHandler to be used to validate ws-security results. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>msgContext</CODE> - <CODE>MessageContext</CODE><DD><CODE>rpd</CODE> - <A HREF="../../../../org/apache/rampart/policy/RampartPolicyData.html" title="class in org.apache.rampart.policy"><CODE>RampartPolicyData</CODE></A> |
| <DT><B>Returns:</B><DD><A HREF="../../../../org/apache/rampart/PolicyValidatorCallbackHandler.html" title="interface in org.apache.rampart"><CODE>PolicyValidatorCallbackHandler</CODE></A> |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></CODE> - RampartException</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getRampartConfigCallbackHandler(org.apache.axis2.context.MessageContext, org.apache.rampart.policy.RampartPolicyData)"><!-- --></A><H3> |
| getRampartConfigCallbackHandler</H3> |
| <PRE> |
| public static <A HREF="../../../../org/apache/rampart/RampartConfigCallbackHandler.html" title="interface in org.apache.rampart">RampartConfigCallbackHandler</A> <B>getRampartConfigCallbackHandler</B>(org.apache.axis2.context.MessageContext msgContext, |
| <A HREF="../../../../org/apache/rampart/policy/RampartPolicyData.html" title="class in org.apache.rampart.policy">RampartPolicyData</A> rpd) |
| throws <A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></PRE> |
| <DL> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="performCallback(javax.security.auth.callback.CallbackHandler, java.lang.String, int)"><!-- --></A><H3> |
| performCallback</H3> |
| <PRE> |
| public static org.apache.ws.security.WSPasswordCallback <B>performCallback</B>(javax.security.auth.callback.CallbackHandler cbHandler, |
| java.lang.String username, |
| int doAction) |
| throws <A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></PRE> |
| <DL> |
| <DD>Perform a callback to get a password. |
| <p/> |
| The called back function gets an indication why to provide a password: |
| to produce a UsernameToken, Signature, or a password (key) for a given |
| name. |
| <P> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getEncryptionCrypto(org.apache.rampart.policy.model.RampartConfig, java.lang.ClassLoader)"><!-- --></A><H3> |
| getEncryptionCrypto</H3> |
| <PRE> |
| public static org.apache.ws.security.components.crypto.Crypto <B>getEncryptionCrypto</B>(<A HREF="../../../../org/apache/rampart/policy/model/RampartConfig.html" title="class in org.apache.rampart.policy.model">RampartConfig</A> config, |
| java.lang.ClassLoader loader) |
| throws <A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></PRE> |
| <DL> |
| <DD>Create the <code>Crypto</code> instance for encryption using information |
| from the rampart configuration assertion |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>config</CODE> - |
| <DT><B>Returns:</B><DD>The <code>Crypto</code> instance to be used for encryption |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getSignatureCrypto(org.apache.rampart.policy.model.RampartConfig, java.lang.ClassLoader)"><!-- --></A><H3> |
| getSignatureCrypto</H3> |
| <PRE> |
| public static org.apache.ws.security.components.crypto.Crypto <B>getSignatureCrypto</B>(<A HREF="../../../../org/apache/rampart/policy/model/RampartConfig.html" title="class in org.apache.rampart.policy.model">RampartConfig</A> config, |
| java.lang.ClassLoader loader) |
| throws <A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></PRE> |
| <DL> |
| <DD>Create the <code>Crypto</code> instance for signature using information |
| from the rampart configuration assertion |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>config</CODE> - |
| <DT><B>Returns:</B><DD>The <code>Crypto</code> instance to be used for signature |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getKeyIdentifier(org.apache.ws.secpolicy.model.X509Token)"><!-- --></A><H3> |
| getKeyIdentifier</H3> |
| <PRE> |
| public static int <B>getKeyIdentifier</B>(org.apache.ws.secpolicy.model.X509Token token) |
| throws <A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></PRE> |
| <DL> |
| <DD>figureout the key identifier of a give X509Token |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>token</CODE> - |
| <DT><B>Returns:</B><DD>The key identifier of a give X509Token |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="processIssuerAddress(org.apache.axiom.om.OMElement)"><!-- --></A><H3> |
| processIssuerAddress</H3> |
| <PRE> |
| public static java.lang.String <B>processIssuerAddress</B>(org.apache.axiom.om.OMElement issuerAddress) |
| throws <A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></PRE> |
| <DL> |
| <DD>Process a give issuer address element and return the address. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>issuerAddress</CODE> - |
| <DT><B>Returns:</B><DD>The address of an issuer address element |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></CODE> - If the issuer address element is malformed.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getPolicyFromMetadataRef(org.apache.axiom.om.OMElement)"><!-- --></A><H3> |
| getPolicyFromMetadataRef</H3> |
| <PRE> |
| public static org.apache.neethi.Policy <B>getPolicyFromMetadataRef</B>(org.apache.axiom.om.OMElement mex) |
| throws <A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></PRE> |
| <DL> |
| <DD>Retrieve policy using metadata reference |
| <wsa:Metadata xmlns:wsa="http://www.w3.org/2005/08/addressing"> |
| <mex:Metadata |
| xmlns:mex="http://schemas.xmlsoap.org/ws/2004/09/mex" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| <mex:MetadataSection> |
| <mex:MetadataReference> |
| <wsa:Address>http://address/of/mex/service</wsa:Address> |
| </mex:MetadataReference> |
| </mex:MetadataSection> |
| </mex:Metadata> |
| </wsa:Metadata> |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>mex</CODE> - Metadata element |
| <DT><B>Returns:</B><DD>Policy from the mex service |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="addRampartConfig(org.apache.rampart.RampartMessageData, org.apache.neethi.Policy)"><!-- --></A><H3> |
| addRampartConfig</H3> |
| <PRE> |
| public static org.apache.neethi.Policy <B>addRampartConfig</B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| org.apache.neethi.Policy policy)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="createRSTTempalteForSCT(int, int)"><!-- --></A><H3> |
| createRSTTempalteForSCT</H3> |
| <PRE> |
| public static org.apache.axiom.om.OMElement <B>createRSTTempalteForSCT</B>(int conversationVersion, |
| int wstVersion) |
| throws <A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></PRE> |
| <DL> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getTimeToLive(org.apache.rampart.RampartMessageData)"><!-- --></A><H3> |
| getTimeToLive</H3> |
| <PRE> |
| public static int <B>getTimeToLive</B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> messageData)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getTimestampMaxSkew(org.apache.rampart.RampartMessageData)"><!-- --></A><H3> |
| getTimestampMaxSkew</H3> |
| <PRE> |
| public static int <B>getTimestampMaxSkew</B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> messageData)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getSecConvToken(org.apache.rampart.RampartMessageData, org.apache.ws.secpolicy.model.SecureConversationToken)"><!-- --></A><H3> |
| getSecConvToken</H3> |
| <PRE> |
| public static java.lang.String <B>getSecConvToken</B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| org.apache.ws.secpolicy.model.SecureConversationToken secConvTok) |
| throws <A HREF="../../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A>, |
| <A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></PRE> |
| <DL> |
| <DD>Obtain a security context token. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>rmd</CODE> - <DD><CODE>secConvTok</CODE> - |
| <DT><B>Returns:</B><DD>Return the SecurityContextidentifier of the token |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="../../../../org/apache/rahas/TrustException.html" title="class in org.apache.rahas">TrustException</A></CODE> |
| <DD><CODE><A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getIssuedToken(org.apache.rampart.RampartMessageData, org.apache.ws.secpolicy.model.IssuedToken)"><!-- --></A><H3> |
| getIssuedToken</H3> |
| <PRE> |
| public static java.lang.String <B>getIssuedToken</B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| org.apache.ws.secpolicy.model.IssuedToken issuedToken) |
| throws <A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></PRE> |
| <DL> |
| <DD>Obtain an issued token. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>rmd</CODE> - <DD><CODE>issuedToken</CODE> - |
| <DT><B>Returns:</B><DD>The identifier of the issued token |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getToken(org.apache.rampart.RampartMessageData, org.apache.axiom.om.OMElement, java.lang.String, java.lang.String, org.apache.neethi.Policy)"><!-- --></A><H3> |
| getToken</H3> |
| <PRE> |
| public static java.lang.String <B>getToken</B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| org.apache.axiom.om.OMElement rstTemplate, |
| java.lang.String issuerEpr, |
| java.lang.String action, |
| org.apache.neethi.Policy issuerPolicy) |
| throws <A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></PRE> |
| <DL> |
| <DD>Request a token. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>rmd</CODE> - <DD><CODE>rstTemplate</CODE> - <DD><CODE>issuerEpr</CODE> - <DD><CODE>action</CODE> - <DD><CODE>issuerPolicy</CODE> - |
| <DT><B>Returns:</B><DD>Return the identifier of the obtained token |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getSoapBodyId(org.apache.axiom.soap.SOAPEnvelope)"><!-- --></A><H3> |
| getSoapBodyId</H3> |
| <PRE> |
| public static java.lang.String <B>getSoapBodyId</B>(org.apache.axiom.soap.SOAPEnvelope env)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="addWsuIdToElement(org.apache.axiom.om.OMElement)"><!-- --></A><H3> |
| addWsuIdToElement</H3> |
| <PRE> |
| public static java.lang.String <B>addWsuIdToElement</B>(org.apache.axiom.om.OMElement elem)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="appendChildToSecHeader(org.apache.rampart.RampartMessageData, org.apache.axiom.om.OMElement)"><!-- --></A><H3> |
| appendChildToSecHeader</H3> |
| <PRE> |
| public static org.w3c.dom.Element <B>appendChildToSecHeader</B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| org.apache.axiom.om.OMElement elem)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="appendChildToSecHeader(org.apache.rampart.RampartMessageData, org.w3c.dom.Element)"><!-- --></A><H3> |
| appendChildToSecHeader</H3> |
| <PRE> |
| public static org.w3c.dom.Element <B>appendChildToSecHeader</B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| org.w3c.dom.Element elem)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="insertSiblingAfter(org.apache.rampart.RampartMessageData, org.w3c.dom.Element, org.w3c.dom.Element)"><!-- --></A><H3> |
| insertSiblingAfter</H3> |
| <PRE> |
| public static org.w3c.dom.Element <B>insertSiblingAfter</B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| org.w3c.dom.Element child, |
| org.w3c.dom.Element sibling)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="insertSiblingBefore(org.apache.rampart.RampartMessageData, org.w3c.dom.Element, org.w3c.dom.Element)"><!-- --></A><H3> |
| insertSiblingBefore</H3> |
| <PRE> |
| public static org.w3c.dom.Element <B>insertSiblingBefore</B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| org.w3c.dom.Element child, |
| org.w3c.dom.Element sibling)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getEncryptedParts(org.apache.rampart.RampartMessageData)"><!-- --></A><H3> |
| getEncryptedParts</H3> |
| <PRE> |
| public static java.util.List<org.apache.ws.security.WSEncryptionPart> <B>getEncryptedParts</B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getSignedParts(org.apache.rampart.RampartMessageData)"><!-- --></A><H3> |
| getSignedParts</H3> |
| <PRE> |
| public static java.util.List<org.apache.ws.security.WSEncryptionPart> <B>getSignedParts</B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getSupportingEncryptedParts(org.apache.rampart.RampartMessageData, org.apache.rampart.policy.SupportingPolicyData)"><!-- --></A><H3> |
| getSupportingEncryptedParts</H3> |
| <PRE> |
| public static java.util.List<org.apache.ws.security.WSEncryptionPart> <B>getSupportingEncryptedParts</B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| <A HREF="../../../../org/apache/rampart/policy/SupportingPolicyData.html" title="class in org.apache.rampart.policy">SupportingPolicyData</A> rpd)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getSupportingSignedParts(org.apache.rampart.RampartMessageData, org.apache.rampart.policy.SupportingPolicyData)"><!-- --></A><H3> |
| getSupportingSignedParts</H3> |
| <PRE> |
| public static java.util.List<org.apache.ws.security.WSEncryptionPart> <B>getSupportingSignedParts</B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| <A HREF="../../../../org/apache/rampart/policy/SupportingPolicyData.html" title="class in org.apache.rampart.policy">SupportingPolicyData</A> rpd)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="findAllPrefixNamespaces(org.apache.axiom.om.OMElement, java.util.HashMap)"><!-- --></A><H3> |
| findAllPrefixNamespaces</H3> |
| <PRE> |
| public static java.util.Set <B>findAllPrefixNamespaces</B>(org.apache.axiom.om.OMElement currentElement, |
| java.util.HashMap decNamespacess)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getContentEncryptedElements(java.util.List, org.apache.axiom.soap.SOAPEnvelope, java.util.List, java.util.HashMap)"><!-- --></A><H3> |
| getContentEncryptedElements</H3> |
| <PRE> |
| public static java.util.List<org.apache.ws.security.WSEncryptionPart> <B>getContentEncryptedElements</B>(java.util.List<org.apache.ws.security.WSEncryptionPart> encryptedPartsElements, |
| org.apache.axiom.soap.SOAPEnvelope envelope, |
| java.util.List<java.lang.String> elements, |
| java.util.HashMap decNamespaces)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="createEncryptionPart(java.lang.String, java.lang.String)"><!-- --></A><H3> |
| createEncryptionPart</H3> |
| <PRE> |
| public static org.apache.ws.security.WSEncryptionPart <B>createEncryptionPart</B>(java.lang.String name, |
| java.lang.String id)</PRE> |
| <DL> |
| <DD>Creates an Encryption or Signature paert with given name and id. Name must not be null. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the part<DD><CODE>id</CODE> - The id of the part. |
| <DT><B>Returns:</B><DD>WSEncryptionPart.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="createEncryptionPart(java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3> |
| createEncryptionPart</H3> |
| <PRE> |
| public static org.apache.ws.security.WSEncryptionPart <B>createEncryptionPart</B>(java.lang.String name, |
| java.lang.String id, |
| java.lang.String namespace, |
| java.lang.String modifier)</PRE> |
| <DL> |
| <DD>Creates an encryption part. Could be a part or could be an element pointed through xpath expression. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the element.<DD><CODE>id</CODE> - The id of the element<DD><CODE>namespace</CODE> - Namespace of the element.<DD><CODE>modifier</CODE> - Modifier "Content" or "Element" |
| <DT><B>Returns:</B><DD>A WSEncryptionPart</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="createEncryptionPart(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3> |
| createEncryptionPart</H3> |
| <PRE> |
| public static org.apache.ws.security.WSEncryptionPart <B>createEncryptionPart</B>(java.lang.String name, |
| java.lang.String id, |
| java.lang.String namespace, |
| java.lang.String modifier, |
| java.lang.String xPath)</PRE> |
| <DL> |
| <DD>Creates an encryption part. Could be a part or could be an element pointed through xpath expression. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the element.<DD><CODE>id</CODE> - The id of the element<DD><CODE>namespace</CODE> - Namespace of the element.<DD><CODE>modifier</CODE> - Modifier "Content" or "Element"<DD><CODE>xPath</CODE> - The xPath expression |
| <DT><B>Returns:</B><DD>A WSEncryptionPart</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getPartsAndElements(boolean, org.apache.axiom.soap.SOAPEnvelope, boolean, java.util.List, java.util.List, java.util.HashMap)"><!-- --></A><H3> |
| getPartsAndElements</H3> |
| <PRE> |
| public static java.util.List<org.apache.ws.security.WSEncryptionPart> <B>getPartsAndElements</B>(boolean sign, |
| org.apache.axiom.soap.SOAPEnvelope envelope, |
| boolean includeBody, |
| java.util.List<org.apache.ws.security.WSEncryptionPart> parts, |
| java.util.List<java.lang.String> elements, |
| java.util.HashMap decNamespaces)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="checkRequiredElements(org.apache.axiom.soap.SOAPEnvelope, java.util.HashMap, java.lang.String)"><!-- --></A><H3> |
| checkRequiredElements</H3> |
| <PRE> |
| public static boolean <B>checkRequiredElements</B>(org.apache.axiom.soap.SOAPEnvelope envelope, |
| java.util.HashMap decNamespaces, |
| java.lang.String expression)</PRE> |
| <DL> |
| <DD>Get a element for SOAP |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>envelope</CODE> - SOAP Envelope of which we should check required elements<DD><CODE>decNamespaces</CODE> - Declared namespaces in RequiredElements assertion<DD><CODE>expression</CODE> - XPATH expression of required elements |
| <DT><B>Returns:</B><DD></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getEncryptionKeyGenerator(java.lang.String)"><!-- --></A><H3> |
| getEncryptionKeyGenerator</H3> |
| <PRE> |
| public static javax.crypto.KeyGenerator <B>getEncryptionKeyGenerator</B>(java.lang.String symEncrAlgo) |
| throws org.apache.ws.security.WSSecurityException</PRE> |
| <DL> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE>org.apache.ws.security.WSSecurityException</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getContextIdentifierKey(org.apache.axis2.context.MessageContext)"><!-- --></A><H3> |
| getContextIdentifierKey</H3> |
| <PRE> |
| public static java.lang.String <B>getContextIdentifierKey</B>(org.apache.axis2.context.MessageContext msgContext)</PRE> |
| <DL> |
| <DD>Creates the unique (reproducible) id for to hold the context identifier |
| of the message exchange. |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>Id to hold the context identifier in the message context</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getContextMap(org.apache.axis2.context.MessageContext)"><!-- --></A><H3> |
| getContextMap</H3> |
| <PRE> |
| public static java.util.Hashtable <B>getContextMap</B>(org.apache.axis2.context.MessageContext msgContext)</PRE> |
| <DL> |
| <DD>Returns the map of security context token identifiers |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the map of security context token identifiers</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isTokenValid(org.apache.rampart.RampartMessageData, java.lang.String)"><!-- --></A><H3> |
| isTokenValid</H3> |
| <PRE> |
| public static boolean <B>isTokenValid</B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| java.lang.String id) |
| throws <A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></PRE> |
| <DL> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setEncryptionUser(org.apache.rampart.RampartMessageData, org.apache.ws.security.message.WSSecEncryptedKey)"><!-- --></A><H3> |
| setEncryptionUser</H3> |
| <PRE> |
| public static void <B>setEncryptionUser</B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| org.apache.ws.security.message.WSSecEncryptedKey encrKeyBuilder) |
| throws <A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></PRE> |
| <DL> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setEncryptionUser(org.apache.rampart.RampartMessageData, org.apache.ws.security.message.WSSecEncryptedKey, java.lang.String)"><!-- --></A><H3> |
| setEncryptionUser</H3> |
| <PRE> |
| public static void <B>setEncryptionUser</B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| org.apache.ws.security.message.WSSecEncryptedKey encrKeyBuilder, |
| java.lang.String encrUser) |
| throws <A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></PRE> |
| <DL> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setKeyIdentifierType(org.apache.rampart.RampartMessageData, org.apache.ws.security.message.WSSecBase, org.apache.ws.secpolicy.model.Token)"><!-- --></A><H3> |
| setKeyIdentifierType</H3> |
| <PRE> |
| public static void <B>setKeyIdentifierType</B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| org.apache.ws.security.message.WSSecBase secBase, |
| org.apache.ws.secpolicy.model.Token token)</PRE> |
| <DL> |
| <DD>Sets the keyIdentifierType of <code>WSSecSignature</code> or <code>WSSecEncryptedKey</code> |
| according to the given <code>Token</code> and <code>RampartPolicyData</code> |
| First check the requirements specified under Token Assertion and if not found check |
| the WSS11 and WSS10 assertions |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getUsername(java.util.List)"><!-- --></A><H3> |
| getUsername</H3> |
| <PRE> |
| public static java.lang.String <B>getUsername</B>(java.util.List<org.apache.ws.security.handler.WSHandlerResult> results)</PRE> |
| <DL> |
| <DD>Scan through <code>WSHandlerResult<code> list for a Username token and return |
| the username if a Username Token found |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>results</CODE> - |
| <DT><B>Returns:</B><DD></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getRequestEncryptedKeyId(java.util.List)"><!-- --></A><H3> |
| getRequestEncryptedKeyId</H3> |
| <PRE> |
| public static java.lang.String <B>getRequestEncryptedKeyId</B>(java.util.List<org.apache.ws.security.handler.WSHandlerResult> results)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getRequestEncryptedKeyValue(java.util.List)"><!-- --></A><H3> |
| getRequestEncryptedKeyValue</H3> |
| <PRE> |
| public static byte[] <B>getRequestEncryptedKeyValue</B>(java.util.List<org.apache.ws.security.handler.WSHandlerResult> results)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="insertSiblingAfterOrPrepend(org.apache.rampart.RampartMessageData, org.w3c.dom.Element, org.w3c.dom.Element)"><!-- --></A><H3> |
| insertSiblingAfterOrPrepend</H3> |
| <PRE> |
| public static org.w3c.dom.Element <B>insertSiblingAfterOrPrepend</B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| org.w3c.dom.Element child, |
| org.w3c.dom.Element elem)</PRE> |
| <DL> |
| <DD>If the child is present insert the element as a sibling after him. |
| |
| If the child is null, then prepend the element. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>rmd</CODE> - <DD><CODE>child</CODE> - <DD><CODE>elem</CODE> - - element mentioned above |
| <DT><B>Returns:</B><DD></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="insertSiblingBeforeOrPrepend(org.apache.rampart.RampartMessageData, org.w3c.dom.Element, org.w3c.dom.Element)"><!-- --></A><H3> |
| insertSiblingBeforeOrPrepend</H3> |
| <PRE> |
| public static org.w3c.dom.Element <B>insertSiblingBeforeOrPrepend</B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd, |
| org.w3c.dom.Element child, |
| org.w3c.dom.Element elem)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="isSecHeaderRequired(org.apache.rampart.policy.RampartPolicyData, boolean, boolean)"><!-- --></A><H3> |
| isSecHeaderRequired</H3> |
| <PRE> |
| public static boolean <B>isSecHeaderRequired</B>(<A HREF="../../../../org/apache/rampart/policy/RampartPolicyData.html" title="class in org.apache.rampart.policy">RampartPolicyData</A> rpd, |
| boolean initiator, |
| boolean inflow)</PRE> |
| <DL> |
| <DD>Method to check whether security header is required in incoming message |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>rpd</CODE> - |
| <DT><B>Returns:</B><DD>true if a security header is required in the incoming message</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="handleEncryptedSignedHeaders(java.util.List, java.util.List, org.w3c.dom.Document)"><!-- --></A><H3> |
| handleEncryptedSignedHeaders</H3> |
| <PRE> |
| public static void <B>handleEncryptedSignedHeaders</B>(java.util.List<org.apache.ws.security.WSEncryptionPart> encryptedParts, |
| java.util.List<org.apache.ws.security.WSEncryptionPart> signedParts, |
| org.w3c.dom.Document doc)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getSigElementId(org.apache.rampart.RampartMessageData)"><!-- --></A><H3> |
| getSigElementId</H3> |
| <PRE> |
| public static java.lang.String <B>getSigElementId</B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd)</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getWSSConfigInstance()"><!-- --></A><H3> |
| getWSSConfigInstance</H3> |
| <PRE> |
| public static org.apache.ws.security.WSSConfig <B>getWSSConfigInstance</B>()</PRE> |
| <DL> |
| <DD>We use this method to prevent the singleton behavior of WSSConfig |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>WSSConfig object with the latest settings.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="validateTransport(org.apache.rampart.RampartMessageData)"><!-- --></A><H3> |
| validateTransport</H3> |
| <PRE> |
| public static void <B>validateTransport</B>(<A HREF="../../../../org/apache/rampart/RampartMessageData.html" title="class in org.apache.rampart">RampartMessageData</A> rmd) |
| throws <A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></PRE> |
| <DL> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE><A HREF="../../../../org/apache/rampart/RampartException.html" title="class in org.apache.rampart">RampartException</A></CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getSAML10AssertionNamespace()"><!-- --></A><H3> |
| getSAML10AssertionNamespace</H3> |
| <PRE> |
| public static java.lang.String <B>getSAML10AssertionNamespace</B>()</PRE> |
| <DL> |
| <DD>Returns SAML10 Assertion namespace. As follows, |
| http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.0#SAMLAssertionID |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>SAML10 assertion namespace.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setEncryptionCrypto(org.apache.axis2.context.MessageContext)"><!-- --></A><H3> |
| setEncryptionCrypto</H3> |
| <PRE> |
| public static void <B>setEncryptionCrypto</B>(org.apache.axis2.context.MessageContext msgContext)</PRE> |
| <DL> |
| <DD>Sets encryption crypto file or crypto reference key to signature crypto file or signature |
| crypto reference. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>msgContext</CODE> - The message context to get signature crypto properties and encryption properties |
| will be set to same message context.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setDecryptionCrypto(org.apache.axis2.context.MessageContext)"><!-- --></A><H3> |
| setDecryptionCrypto</H3> |
| <PRE> |
| public static void <B>setDecryptionCrypto</B>(org.apache.axis2.context.MessageContext msgContext)</PRE> |
| <DL> |
| <DD>Sets decryption crypto file or crypto reference key to signature crypto file or signature |
| crypto reference. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>msgContext</CODE> - The message context to get signature crypto properties and decryption properties |
| will be set to same message context.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="encryptFirst(org.apache.rampart.policy.RampartPolicyData)"><!-- --></A><H3> |
| encryptFirst</H3> |
| <PRE> |
| public static boolean <B>encryptFirst</B>(<A HREF="../../../../org/apache/rampart/policy/RampartPolicyData.html" title="class in org.apache.rampart.policy">RampartPolicyData</A> rpd)</PRE> |
| <DL> |
| <DD>Returns true if needed to encrypt first. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>rpd</CODE> - Rampart policy data |
| <DT><B>Returns:</B><DD>true if policy says we need to encrypt first else false.</DL> |
| </DD> |
| </DL> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <HR> |
| |
| |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <A NAME="navbar_bottom"><!-- --></A> |
| <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_bottom_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/RampartUtil.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="../../../../org/apache/rampart/util/MessageOptimizer.html" title="class in org.apache.rampart.util"><B>PREV CLASS</B></A> |
| NEXT CLASS</FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../index.html?org/apache/rampart/util/RampartUtil.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="RampartUtil.html" target="_top"><B>NO FRAMES</B></A> |
| <SCRIPT type="text/javascript"> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
| </NOSCRIPT> |
| |
| |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_bottom"></A> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| |
| <HR> |
| |
| </BODY> |
| </HTML> |