Class BinarySecretImpl

    • Constructor Detail

      • BinarySecretImpl

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

      • fromElement

        public static BinarySecretType fromElement​(Element element)
                                            throws WSTrustException
        Constructs a BinarySecret element from an existing XML block.
        Parameters:
        element - org.w3c.dom.Element representing DOM tree for BinarySecret object.
        Throws:
        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()
        Description copied from interface: BinarySecret
        Gets the decoded value or the raw bytes of the binary secret.
        Specified by:
        getRawValue in interface BinarySecret
        Returns:
        possible object is byte[]
      • setRawValue

        public void setRawValue​(byte[] rawText)
        Description copied from interface: BinarySecret
        Sets the value of the binary secret as raw bytes. The value that appears in the element will be encoded appropriately.
        Specified by:
        setRawValue in interface BinarySecret
        Parameters:
        rawText - allowed object is byte[]
      • setTextValue

        public void setTextValue​(String encodedText)
        Description copied from interface: BinarySecret
        Sets the value of the Binary Secret element. This is the base64 encoded value of the raw BinarySecret.
        Specified by:
        setTextValue in interface BinarySecret
        Parameters:
        encodedText - String