Class EncryptedKeyHeaderBlock

  • All Implemented Interfaces:
    SecurityHeaderBlock, jakarta.xml.soap.Node, jakarta.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 Detail

      • 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​(jakarta.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 Detail

      • setCipherData

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

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

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

        public void setRecipient​(String recipient)
      • getCarriedKeyName

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

        public void setCarriedKeyName​(jakarta.xml.soap.SOAPElement carriedKeyName)
      • fromSoapElement

        public static SecurityHeaderBlock fromSoapElement​(jakarta.xml.soap.SOAPElement element)
                                                   throws com.sun.xml.wss.XWSSecurityException
        Throws:
        com.sun.xml.wss.XWSSecurityException