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​(@NotNull
                                byte[] rawValue,
                                String type)
      • BinarySecretImpl

        public BinarySecretImpl​(@NotNull
                                BinarySecretType bsType)
    • Method Detail

      • fromElement

        public static BinarySecretType fromElement​(@NotNull
                                                   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

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

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

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

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