Class EncryptedKeyHeaderBlock

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

public class EncryptedKeyHeaderBlock extends EncryptedTypeHeaderBlock
The schema definition of EncryptedKey element is as follows:

 <xmp>
 <element name='EncryptedKey' type='xenc:EncryptedKeyType'/>
 <complexType name='EncryptedKeyType'>
     <complexContent>
         <extension base='xenc:EncryptedType'>
             <sequence>
                 <element ref='xenc:ReferenceList' minOccurs='0'/>
                 <element name='CarriedKeyName' type='string' minOccurs='0'/>
             </sequence>
             <attribute name='Recipient' type='string' use='optional'/>
         </extension>
     </complexContent>
 </complexType>
 </xmp>
 
Author:
Vishal Mahajan
  • Constructor Details

    • EncryptedKeyHeaderBlock

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

      public EncryptedKeyHeaderBlock(Document doc) throws com.sun.xml.wss.XWSSecurityException
      Create an empty EncryptedKey element whose owner document is given.
      Throws:
      com.sun.xml.wss.XWSSecurityException - If there is problem creating an EncryptedKey element
    • EncryptedKeyHeaderBlock

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

    • setCipherData

      public void setCipherData(javax.xml.soap.SOAPElement cipherData)
    • setCipherValue

      public void setCipherValue(String cipherValue) throws com.sun.xml.wss.XWSSecurityException
      Throws:
      com.sun.xml.wss.XWSSecurityException
    • getReferenceList

      public ReferenceListHeaderBlock getReferenceList()
    • setReferenceList

      public void setReferenceList(ReferenceListHeaderBlock referenceList)
    • getRecipient

      public String getRecipient()
      Returns null if Recipient attr is not present
    • setRecipient

      public void setRecipient(String recipient)
    • getCarriedKeyName

      public javax.xml.soap.SOAPElement getCarriedKeyName()
    • setCarriedKeyName

      public void setCarriedKeyName(javax.xml.soap.SOAPElement carriedKeyName)
    • 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