Class EncryptedDataHeaderBlock

All Implemented Interfaces:
SecurityHeaderBlock, javax.xml.soap.Node, javax.xml.soap.SOAPElement, Element, Node

public class EncryptedDataHeaderBlock extends EncryptedTypeHeaderBlock
Corresponds to Schema definition for EncryptedData. Schema definition for EncryptedData is as follows:


 <xmp>
 <element name='EncryptedData' type='xenc:EncryptedDataType'/>
 <complexType name='EncryptedDataType'>
     <complexContent>
         <extension base='xenc:EncryptedType'/>
     </complexContent>
 </complexType>
 </xmp>
Author:
Vishal Mahajan
  • Constructor Details

    • EncryptedDataHeaderBlock

      public EncryptedDataHeaderBlock() throws com.sun.xml.wss.XWSSecurityException
      Create an empty EncryptedData element.
      Throws:
      com.sun.xml.wss.XWSSecurityException - If there is problem creating an EncryptedData element.
    • EncryptedDataHeaderBlock

      public EncryptedDataHeaderBlock(javax.xml.soap.SOAPElement element) throws com.sun.xml.wss.XWSSecurityException
      Throws:
      com.sun.xml.wss.XWSSecurityException - If there is problem in initializing EncryptedData element.
  • Method Details

    • fromSoapElement

      public static SecurityHeaderBlock fromSoapElement(javax.xml.soap.SOAPElement element) throws com.sun.xml.wss.XWSSecurityException
      Throws:
      com.sun.xml.wss.XWSSecurityException
    • getAsSoapElement

      public javax.xml.soap.SOAPElement getAsSoapElement() throws com.sun.xml.wss.XWSSecurityException
      Specified by:
      getAsSoapElement in interface SecurityHeaderBlock
      Overrides:
      getAsSoapElement in class SecurityHeaderBlockImpl
      Throws:
      com.sun.xml.wss.XWSSecurityException