Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager
11g (11.1.1)

E10689-01


oracle.wsm.security.policy.scenario.util
Class WsmMessageSecurityUtils

java.lang.Object
  extended by oracle.wsm.security.policy.scenario.util.WsmMessageSecurityUtils


public class WsmMessageSecurityUtils
extends Object

Nested Class Summary
static class WsmMessageSecurityUtils.EncryptedElement
           

 

Constructor Summary
WsmMessageSecurityUtils()
           

 

Method Summary
static String addTimeStamp(IExecutionContext ectx, oracle.security.xmlsec.wss.WSSecurity sec, Properties config)
           
static List<String> getContentIds(javax.xml.soap.SOAPMessage soapMsg)
           
static List<WsmMessageSecurityUtils.EncryptedElement> getElementsEncElems(ElementsType elemsType, Element body)
           
static List<String> getOriginalContentIds(javax.xml.soap.SOAPMessage soapMsg)
           
static List<WsmMessageSecurityUtils.EncryptedElement> getPartsEncElems(PartsType partsType, WsmSOAPMessage wsmSoapMsg)
           
static List<String> getPartsUris(PartsType partsType, WsmSOAPMessage soapMsg, oracle.security.xmlsec.wss.util.WSSignatureParams sigParams)
           
static List<WsmMessageSecurityUtils.EncryptedElement> getTokenEncElems(oracle.security.xmlsec.wss.WSSecurity sec, List<oracle.security.xmlsec.util.QName> tokenQNames)
           
static List<String> getTokenUris(oracle.security.xmlsec.wss.WSSecurity sec, List<oracle.security.xmlsec.util.QName> tokenQNames)
           
static String getXPathForElement(String elementName, String namespace)
           
static boolean isAttachmentPolicy(SignedEncryptedPartsType signedEncPartsType)
           
static boolean isMtomAttachment(Object obj)
          Checks if isMtom method is present in AttachmentPart then it calls that method using reflection and return result.
static boolean isMtomAttachment(javax.xml.soap.SOAPMessage soapMsg)
          Checks if isMtom method is present in AttachmentPart then it checks for all the attachments, if all attachments are mtom then it returns true else return false.
static boolean isStreamedAttachments(SignedEncryptedPartsType signedEncPartsType, javax.xml.soap.SOAPMessage soapMsg)
           
static boolean isTimeStampPresent(boolean includeTimeStamp, Properties config, IMessageContext.STAGE processingStage)
           
static void overrideTimestamp(oracle.security.xmlsec.wss.WSSecurity wssHdr, Wss10MsgSecurityType msgPolicy, Properties config, IExecutionContext exContext, IMessageContext.STAGE processingStage, List<String> uris)
          This method checks if timestamp needs to be overriden
static oracle.security.xmlsec.dsig.XSAlgorithmIdentifier[][] processElementsForSigning(Document doc, ElementsType elemType, List<String> uris, oracle.security.xmlsec.wss.util.WSSignatureParams sigParams)
           
static boolean verifyTimeStamp(IExecutionContext ectx, oracle.security.xmlsec.wss.WSSecurity sec, Properties config)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

WsmMessageSecurityUtils

public WsmMessageSecurityUtils()

Method Detail

addTimeStamp

public static String addTimeStamp(IExecutionContext ectx,
                                  oracle.security.xmlsec.wss.WSSecurity sec,
                                  Properties config)

verifyTimeStamp

public static boolean verifyTimeStamp(IExecutionContext ectx,
                                      oracle.security.xmlsec.wss.WSSecurity sec,
                                      Properties config)
                               throws SecurityException
Throws:
SecurityException

getTokenUris

public static List<String> getTokenUris(oracle.security.xmlsec.wss.WSSecurity sec,
                                        List<oracle.security.xmlsec.util.QName> tokenQNames)

getPartsUris

public static List<String> getPartsUris(PartsType partsType,
                                        WsmSOAPMessage soapMsg,
                                        oracle.security.xmlsec.wss.util.WSSignatureParams sigParams)
                                 throws SecurityException
Throws:
SecurityException

getContentIds

public static List<String> getContentIds(javax.xml.soap.SOAPMessage soapMsg)
                                  throws SecurityException
Throws:
SecurityException

getOriginalContentIds

public static List<String> getOriginalContentIds(javax.xml.soap.SOAPMessage soapMsg)

processElementsForSigning

public static oracle.security.xmlsec.dsig.XSAlgorithmIdentifier[][] processElementsForSigning(Document doc,
                                                                                              ElementsType elemType,
                                                                                              List<String> uris,
                                                                                              oracle.security.xmlsec.wss.util.WSSignatureParams sigParams)

getXPathForElement

public static String getXPathForElement(String elementName,
                                        String namespace)

getPartsEncElems

public static List<WsmMessageSecurityUtils.EncryptedElement> getPartsEncElems(PartsType partsType,
                                                                              WsmSOAPMessage wsmSoapMsg)
                                                                       throws SecurityException
Throws:
SecurityException

isMtomAttachment

public static boolean isMtomAttachment(Object obj)
                                throws SecurityException
Checks if isMtom method is present in AttachmentPart then it calls that method using reflection and return result. If method not found then it ignores exception and retuns false
Parameters:
obj - - AttachmentPart
Returns:
boolean
Throws:
SecurityException

isMtomAttachment

public static boolean isMtomAttachment(javax.xml.soap.SOAPMessage soapMsg)
                                throws SecurityException
Checks if isMtom method is present in AttachmentPart then it checks for all the attachments, if all attachments are mtom then it returns true else return false. If method not found then it ignores exception and retuns false
Parameters:
soapMsg - - SOAPMessage
Returns:
boolean
Throws:
SecurityException

getTokenEncElems

public static List<WsmMessageSecurityUtils.EncryptedElement> getTokenEncElems(oracle.security.xmlsec.wss.WSSecurity sec,
                                                                              List<oracle.security.xmlsec.util.QName> tokenQNames)

getElementsEncElems

public static List<WsmMessageSecurityUtils.EncryptedElement> getElementsEncElems(ElementsType elemsType,
                                                                                 Element body)
                                                                          throws SecurityException
Throws:
SecurityException

isTimeStampPresent

public static boolean isTimeStampPresent(boolean includeTimeStamp,
                                         Properties config,
                                         IMessageContext.STAGE processingStage)

overrideTimestamp

public static void overrideTimestamp(oracle.security.xmlsec.wss.WSSecurity wssHdr,
                                     Wss10MsgSecurityType msgPolicy,
                                     Properties config,
                                     IExecutionContext exContext,
                                     IMessageContext.STAGE processingStage,
                                     List<String> uris)
This method checks if timestamp needs to be overriden
Parameters:
uris -
uris -
config -
processingStage -
wssHdr -
exContext -

isStreamedAttachments

public static boolean isStreamedAttachments(SignedEncryptedPartsType signedEncPartsType,
                                            javax.xml.soap.SOAPMessage soapMsg)
                                     throws SecurityException
Throws:
SecurityException

isAttachmentPolicy

public static boolean isAttachmentPolicy(SignedEncryptedPartsType signedEncPartsType)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Web Services Manager
11g (11.1.1)

E10689-01


Copyright © 2007, 2009, Oracle and/or its affiliates. All rights reserved.