Class BinarySecurityToken

All Implemented Interfaces:
SecurityHeaderBlock, SecurityToken, javax.xml.soap.Node, javax.xml.soap.SOAPElement, Element, Node
Direct Known Subclasses:
X509SecurityToken

public class BinarySecurityToken extends SecurityHeaderBlockImpl implements SecurityToken
A wsse:BinarySecurityToken.
Author:
Manveen Kaur, Edwin Goei
  • Field Details

    • valueType

      protected String valueType
      Valid values are: #X509v3 #X509PKIPathv1 #PKCS7
    • encodingType

      protected String encodingType
      Default encoding
    • wsuId

      protected String wsuId
    • encodedText

      protected String encodedText
    • soapDoc

      protected Document soapDoc
    • log

      protected static final Logger log
  • Method Details

    • getValueType

      public String getValueType()
    • setValueType

      protected void setValueType(String valueType)
    • getEncodingType

      public String getEncodingType()
    • setEncodingType

      protected void setEncodingType(String encodingType)
    • getId

      public String getId()
      Specified by:
      getId in interface SecurityHeaderBlock
      Overrides:
      getId in class SecurityHeaderBlockImpl
    • setId

      protected void setId(String wsuId)
    • getRawValue

      public byte[] getRawValue() throws SecurityTokenException
      returns the decoded value of the text node.
      Throws:
      SecurityTokenException
    • setRawValue

      protected void setRawValue(byte[] rawText)
    • getTextValue

      public String getTextValue() throws com.sun.xml.wss.XWSSecurityException
      get the actual value of the text node. This will typically be encoded. It is the onus of the filter to decode this before operation upon it.
      Throws:
      com.sun.xml.wss.XWSSecurityException
    • setTextValue

      protected void setTextValue(String encodedText)
      set the value of the text node. It is assumed that the filter would have already encoded the value appropriately.
    • getAsSoapElement

      public javax.xml.soap.SOAPElement getAsSoapElement() throws SecurityTokenException
      Specified by:
      getAsSoapElement in interface SecurityHeaderBlock
      Overrides:
      getAsSoapElement in class SecurityHeaderBlockImpl
      Throws:
      SecurityTokenException