Class SecurityTokenReference

  • All Implemented Interfaces:
    com.sun.xml.ws.security.SecurityTokenReference, com.sun.xml.ws.security.Token, SecurityHeaderBlock, javax.xml.soap.Node, javax.xml.soap.SOAPElement, Element, Node

    public class SecurityTokenReference
    extends SecurityHeaderBlockImpl
    implements com.sun.xml.ws.security.SecurityTokenReference
    Author:
    Vishal Mahajan
    • Field Detail

      • log

        protected static final Logger log
    • Constructor Detail

      • SecurityTokenReference

        public SecurityTokenReference()
                               throws com.sun.xml.wss.XWSSecurityException
        Creates an "empty" SecurityTokenReference element
        Throws:
        com.sun.xml.wss.XWSSecurityException
      • SecurityTokenReference

        public SecurityTokenReference​(Document doc)
                               throws com.sun.xml.wss.XWSSecurityException
        Creates an "empty" SecurityTokenReference element whose owner document is doc
        Throws:
        com.sun.xml.wss.XWSSecurityException
      • SecurityTokenReference

        public SecurityTokenReference​(javax.xml.soap.SOAPElement element,
                                      boolean isBSP)
                               throws com.sun.xml.wss.XWSSecurityException
        Takes a SOAPElement which has the required structure of a SecurityTokenReference (including the reference element).
        Throws:
        com.sun.xml.wss.XWSSecurityException
      • SecurityTokenReference

        public SecurityTokenReference​(javax.xml.soap.SOAPElement element)
                               throws com.sun.xml.wss.XWSSecurityException
        Throws:
        com.sun.xml.wss.XWSSecurityException
    • Method Detail

      • setSamlAuthorityBinding

        public void setSamlAuthorityBinding​(Element binding,
                                            Document doc)
                                     throws com.sun.xml.wss.XWSSecurityException
        Throws:
        com.sun.xml.wss.XWSSecurityException
      • getSamlAuthorityBinding

        public Element getSamlAuthorityBinding()
      • setReference

        public void setReference​(ReferenceElement referenceElement)
                          throws com.sun.xml.wss.XWSSecurityException
        Throws:
        com.sun.xml.wss.XWSSecurityException
      • setWsuId

        public void setWsuId​(String wsuId)
      • setTokenType

        public void setTokenType​(String tokenType)
      • getTokenType

        public String getTokenType()
      • fromSoapElement

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

        public List getAny()
        Specified by:
        getAny in interface com.sun.xml.ws.security.SecurityTokenReference
      • setId

        public void setId​(String value)
        Specified by:
        setId in interface com.sun.xml.ws.security.SecurityTokenReference
      • getType

        public String getType()
        Specified by:
        getType in interface com.sun.xml.ws.security.Token
      • getTokenValue

        public Object getTokenValue()
        Specified by:
        getTokenValue in interface com.sun.xml.ws.security.Token