Class BinarySecretImpl

  • All Implemented Interfaces:
    com.sun.xml.ws.security.trust.elements.BinarySecret, XMLStructure

    public class BinarySecretImpl
    extends BinarySecretType
    implements com.sun.xml.ws.security.trust.elements.BinarySecret
    Author:
    WS-Trust Implementation Team
    • Constructor Detail

      • BinarySecretImpl

        public BinarySecretImpl​(byte[] rawValue,
                                String type)
    • Method Detail

      • fromElement

        public static BinarySecretType fromElement​(Element element)
                                            throws com.sun.xml.ws.api.security.trust.WSTrustException
        Constructs a BinarySecret element from an existing XML block.
        Parameters:
        element - org.w3c.dom.Element representing DOM tree for BinarySecret object.
        Throws:
        com.sun.xml.ws.api.security.trust.WSTrustException - if it could not process the org.w3c.dom.Element properly, implying that there is an error in the sender or in the element definition.
      • getRawValue

        public byte[] getRawValue()
        Specified by:
        getRawValue in interface com.sun.xml.ws.security.trust.elements.BinarySecret
      • getTextValue

        public String getTextValue()
        Specified by:
        getTextValue in interface com.sun.xml.ws.security.trust.elements.BinarySecret
      • setRawValue

        public void setRawValue​(byte[] rawText)
        Specified by:
        setRawValue in interface com.sun.xml.ws.security.trust.elements.BinarySecret
      • setTextValue

        public void setTextValue​(String encodedText)
        Specified by:
        setTextValue in interface com.sun.xml.ws.security.trust.elements.BinarySecret