com.sun.xml.ws.security.trust.impl.wssx
Class WSTrustElementFactoryImpl

java.lang.Object
  extended by com.sun.xml.ws.security.trust.WSTrustElementFactory
      extended by com.sun.xml.ws.security.trust.impl.wssx.WSTrustElementFactoryImpl
Direct Known Subclasses:
WSSCElementFactory13

public class WSTrustElementFactoryImpl
extends WSTrustElementFactory


Constructor Summary
WSTrustElementFactoryImpl()
           
 
Method Summary
 BinarySecret createBinarySecret(byte[] rawValue, java.lang.String type)
          Create a BinarySecret
 BinarySecret createBinarySecret(org.w3c.dom.Element elem)
          Create a BinarySecret
 CancelTarget createCancelTarget(SecurityTokenReference str)
           
 Claims createClaims(org.w3c.dom.Element elem)
           
 DirectReference createDirectReference(java.lang.String valueType, java.lang.String uri)
           
 Entropy createEntropy(BinarySecret secret)
          Create an Entropy with a BinarySecret
 Entropy createEntropy(com.sun.xml.ws.security.EncryptedKey key)
          Create an Entropy with an xenc:EncryptedKey
 IssuedTokens createIssuedTokens(RequestSecurityTokenResponseCollection issuedTokens)
          Create a wst:IssuedTokens object
 KeyIdentifier createKeyIdentifier(java.lang.String valueType, java.lang.String encodingType)
           
 Lifetime createLifetime(com.sun.xml.ws.security.wsu10.AttributedDateTime created, com.sun.xml.ws.security.wsu10.AttributedDateTime expires)
          Create a Lifetime.
 OnBehalfOf createOnBehalfOf(com.sun.xml.ws.security.Token oboToken)
           
 RenewTarget createRenewTarget(SecurityTokenReference str)
           
 RequestedAttachedReference createRequestedAttachedReference(SecurityTokenReference str)
          Create a RequestedAttachedReference.
 RequestedProofToken createRequestedProofToken()
          Create a RequestedProofToken.
 RequestedSecurityToken createRequestedSecurityToken()
          Create a RequestedSecurityToken.
 RequestedSecurityToken createRequestedSecurityToken(com.sun.xml.ws.security.Token token)
          Create a RequestedSecurityToken.
 RequestedUnattachedReference createRequestedUnattachedReference(SecurityTokenReference str)
          Create a RequestedUnattachedReference.
 java.lang.Object createResponseFrom(javax.xml.bind.JAXBElement elem)
           
 RequestSecurityToken createRST()
          Create an Empty RST
 RequestSecurityToken createRSTForCancel(java.net.URI requestType, CancelTarget target)
          Create an RST for Token Cancellation
 RequestSecurityToken createRSTForIssue(java.net.URI tokenType, java.net.URI requestType, java.net.URI context, com.sun.xml.ws.policy.impl.bindings.AppliesTo scopes, Claims claims, Entropy entropy, Lifetime lt)
          Create an RST for Issue from the given arguments Any of the arguments can be null since they are all optional, but one of tokenType and AppliesTo must be present
 RequestSecurityToken createRSTForRenew(java.net.URI tokenType, java.net.URI requestType, java.net.URI context, RenewTarget target, AllowPostdating apd, Renewing renewingInfo)
          Create an RST for a Renewal Request
 RequestSecurityToken createRSTForValidate(java.net.URI tokenType, java.net.URI requestType)
          Create an RST for Token Validation
 RequestSecurityToken createRSTFrom(org.w3c.dom.Element elem)
          create an RST from DOM Element
 RequestSecurityToken createRSTFrom(javax.xml.bind.JAXBElement elem)
          create an RST from JAXBElement
 RequestSecurityToken createRSTFrom(javax.xml.transform.Source src)
          create an RST from a Source
 RequestSecurityTokenResponse createRSTR()
          Create an Empty RSTR
 RequestSecurityTokenResponseCollection createRSTRC(java.util.List<RequestSecurityTokenResponse> rstrs)
           
 RequestSecurityTokenResponseCollection createRSTRCollectionForIssue(java.util.List rstrs)
           
 RequestSecurityTokenResponseCollection createRSTRCollectionForIssue(java.net.URI tokenType, java.net.URI context, RequestedSecurityToken token, com.sun.xml.ws.policy.impl.bindings.AppliesTo scopes, RequestedAttachedReference attached, RequestedUnattachedReference unattached, RequestedProofToken proofToken, Entropy entropy, Lifetime lt)
          Create a collection of RequestSecurityTokenResponse(s)
 RequestSecurityTokenResponseCollection createRSTRCollectionFrom(org.w3c.dom.Element elem)
          Create RSTR Collection from Element
 RequestSecurityTokenResponseCollection createRSTRCollectionFrom(javax.xml.bind.JAXBElement elem)
          create an RSTR Collection from JAXBElement
 RequestSecurityTokenResponseCollection createRSTRCollectionFrom(javax.xml.transform.Source src)
          Create RSTR Collection from Source
 RequestSecurityTokenResponse createRSTRForCancel()
          Create an RSTR for a Successful Token Cancellation
 RequestSecurityTokenResponse createRSTRForIssue(java.net.URI tokenType, java.net.URI context, RequestedSecurityToken token, com.sun.xml.ws.policy.impl.bindings.AppliesTo scopes, RequestedAttachedReference attachedReference, RequestedUnattachedReference unattachedReference, RequestedProofToken proofToken, Entropy entropy, Lifetime lt)
          Create an RSTR for Issue from the given arguments.
 RequestSecurityTokenResponse createRSTRForRenew(java.net.URI tokenType, java.net.URI context, RequestedSecurityToken token, RequestedAttachedReference attachedReference, RequestedUnattachedReference unattachedRef, RequestedProofToken proofToken, Entropy entropy, Lifetime lifetime)
          Create an RSTR for Renew from the given arguments.
 RequestSecurityTokenResponse createRSTRForValidate(java.net.URI tokenType, RequestedSecurityToken token, Status status)
          create an RSTR for validate request.
 RequestSecurityTokenResponse createRSTRFrom(org.w3c.dom.Element elem)
          create an RSTR from DOM Element
 RequestSecurityTokenResponse createRSTRFrom(javax.xml.bind.JAXBElement elem)
          create an RSTR from JAXBElement
 RequestSecurityTokenResponse createRSTRFrom(javax.xml.transform.Source src)
          create an RSTR from a Source
 SecondaryParameters createSecondaryParameters()
          Create SecondaryParameters
 SecurityTokenReference createSecurityTokenReference(javax.xml.bind.JAXBElement elem)
           
 SecurityTokenReference createSecurityTokenReference(Reference ref)
           
 Status createStatus(java.lang.String code, java.lang.String reason)
           
 UseKey createUseKey(com.sun.xml.ws.security.Token token, java.lang.String sig)
           
 ValidateTarget createValidateTarget(com.sun.xml.ws.security.Token token)
           
 org.w3c.dom.Element toElement(BaseSTSRequest request)
           
 org.w3c.dom.Element toElement(BaseSTSResponse response)
           
 org.w3c.dom.Element toElement(BinarySecret bs)
          Marshal an BinarySecret to a DOM Element
 org.w3c.dom.Element toElement(BinarySecret bs, org.w3c.dom.Document doc)
          Marshal an BinarySecret to a DOM Element.
 org.w3c.dom.Element toElement(javax.xml.bind.JAXBElement jaxbEle)
           
 org.w3c.dom.Element toElement(RequestSecurityToken rst)
          Marshal an RST to a DOM Element.
 org.w3c.dom.Element toElement(RequestSecurityTokenResponse rstr)
          Marshal an RSTR to DOM Element
 org.w3c.dom.Element toElement(RequestSecurityTokenResponseCollection rstrCollection)
          Marshal an RSTR Collection to a DOM Element
 org.w3c.dom.Element toElement(RequestSecurityTokenResponse rstr, org.w3c.dom.Document doc)
           
 org.w3c.dom.Element toElement(SecurityTokenReference str, org.w3c.dom.Document doc)
          Marshal an STR to a DOM Element.
 javax.xml.bind.JAXBElement toJAXBElement(BaseSTSRequest request)
           
 javax.xml.bind.JAXBElement toJAXBElement(BaseSTSResponse response)
           
 javax.xml.bind.JAXBElement toJAXBElement(Entropy entropy)
          convert a Entropy to a JAXBElement
 javax.xml.bind.JAXBElement toJAXBElement(RequestSecurityToken rst)
          convert an RST to a JAXBElement
 javax.xml.bind.JAXBElement toJAXBElement(RequestSecurityTokenResponse rstr)
          convert an RSTR to a JAXBElement
 javax.xml.bind.JAXBElement toJAXBElement(RequestSecurityTokenResponseCollection rstrCollection)
          convert an RSTR Collection to a JAXBElement
 javax.xml.bind.JAXBElement toJAXBElement(SecurityTokenReference str)
          convert an SecurityTokenReference to a JAXBElement
 javax.xml.transform.Source toSource(BaseSTSRequest request)
           
 javax.xml.transform.Source toSource(BaseSTSResponse response)
           
 javax.xml.transform.Source toSource(RequestSecurityToken rst)
          Marshal an RST to a Source.
 javax.xml.transform.Source toSource(RequestSecurityTokenResponse rstr)
          Marshal an RSTR to a Source
 javax.xml.transform.Source toSource(RequestSecurityTokenResponseCollection rstrCollection)
          Marshal an RSTR Collection to a Source
 
Methods inherited from class com.sun.xml.ws.security.trust.WSTrustElementFactory
getContext, getContext, newInstance, newInstance, newInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSTrustElementFactoryImpl

public WSTrustElementFactoryImpl()
Method Detail

createRSTForIssue

public RequestSecurityToken createRSTForIssue(java.net.URI tokenType,
                                              java.net.URI requestType,
                                              java.net.URI context,
                                              com.sun.xml.ws.policy.impl.bindings.AppliesTo scopes,
                                              Claims claims,
                                              Entropy entropy,
                                              Lifetime lt)
                                       throws WSTrustException
Create an RST for Issue from the given arguments Any of the arguments can be null since they are all optional, but one of tokenType and AppliesTo must be present

Specified by:
createRSTForIssue in class WSTrustElementFactory
Throws:
WSTrustException

createRSTRForIssue

public RequestSecurityTokenResponse createRSTRForIssue(java.net.URI tokenType,
                                                       java.net.URI context,
                                                       RequestedSecurityToken token,
                                                       com.sun.xml.ws.policy.impl.bindings.AppliesTo scopes,
                                                       RequestedAttachedReference attachedReference,
                                                       RequestedUnattachedReference unattachedReference,
                                                       RequestedProofToken proofToken,
                                                       Entropy entropy,
                                                       Lifetime lt)
                                                throws WSTrustException
Create an RSTR for Issue from the given arguments. TokenType should be Issue. Any of the arguments can be null since they are all optional, but one of RequestedSecurityToken or RequestedProofToken should be returned

Specified by:
createRSTRForIssue in class WSTrustElementFactory
Throws:
WSTrustException

createRSTRCollectionForIssue

public RequestSecurityTokenResponseCollection createRSTRCollectionForIssue(java.net.URI tokenType,
                                                                           java.net.URI context,
                                                                           RequestedSecurityToken token,
                                                                           com.sun.xml.ws.policy.impl.bindings.AppliesTo scopes,
                                                                           RequestedAttachedReference attached,
                                                                           RequestedUnattachedReference unattached,
                                                                           RequestedProofToken proofToken,
                                                                           Entropy entropy,
                                                                           Lifetime lt)
                                                                    throws WSTrustException
Create a collection of RequestSecurityTokenResponse(s)

Specified by:
createRSTRCollectionForIssue in class WSTrustElementFactory
Throws:
WSTrustException

createRSTRCollectionForIssue

public RequestSecurityTokenResponseCollection createRSTRCollectionForIssue(java.util.List rstrs)
                                                                    throws WSTrustException
Throws:
WSTrustException

createRSTRForRenew

public RequestSecurityTokenResponse createRSTRForRenew(java.net.URI tokenType,
                                                       java.net.URI context,
                                                       RequestedSecurityToken token,
                                                       RequestedAttachedReference attachedReference,
                                                       RequestedUnattachedReference unattachedRef,
                                                       RequestedProofToken proofToken,
                                                       Entropy entropy,
                                                       Lifetime lifetime)
                                                throws WSTrustException
Create an RSTR for Renew from the given arguments. TokenType should be Issue. Any of the arguments can be null since they are all optional, but one of RequestedSecurityToken or RequestedProofToken should be returned

Specified by:
createRSTRForRenew in class WSTrustElementFactory
Throws:
WSTrustException

createIssuedTokens

public IssuedTokens createIssuedTokens(RequestSecurityTokenResponseCollection issuedTokens)
Create a wst:IssuedTokens object

Specified by:
createIssuedTokens in class WSTrustElementFactory

createEntropy

public Entropy createEntropy(BinarySecret secret)
Create an Entropy with a BinarySecret

Specified by:
createEntropy in class WSTrustElementFactory

createEntropy

public Entropy createEntropy(com.sun.xml.ws.security.EncryptedKey key)
Create an Entropy with an xenc:EncryptedKey

Specified by:
createEntropy in class WSTrustElementFactory

createBinarySecret

public BinarySecret createBinarySecret(byte[] rawValue,
                                       java.lang.String type)
Description copied from class: WSTrustElementFactory
Create a BinarySecret

Specified by:
createBinarySecret in class WSTrustElementFactory

createBinarySecret

public BinarySecret createBinarySecret(org.w3c.dom.Element elem)
                                throws WSTrustException
Description copied from class: WSTrustElementFactory
Create a BinarySecret

Specified by:
createBinarySecret in class WSTrustElementFactory
Throws:
WSTrustException

createClaims

public Claims createClaims(org.w3c.dom.Element elem)
                    throws WSTrustException
Specified by:
createClaims in class WSTrustElementFactory
Throws:
WSTrustException

createStatus

public Status createStatus(java.lang.String code,
                           java.lang.String reason)
Specified by:
createStatus in class WSTrustElementFactory

createLifetime

public Lifetime createLifetime(com.sun.xml.ws.security.wsu10.AttributedDateTime created,
                               com.sun.xml.ws.security.wsu10.AttributedDateTime expires)
Create a Lifetime.

Specified by:
createLifetime in class WSTrustElementFactory

createOnBehalfOf

public OnBehalfOf createOnBehalfOf(com.sun.xml.ws.security.Token oboToken)
Specified by:
createOnBehalfOf in class WSTrustElementFactory

createRequestedSecurityToken

public RequestedSecurityToken createRequestedSecurityToken(com.sun.xml.ws.security.Token token)
Create a RequestedSecurityToken.

Specified by:
createRequestedSecurityToken in class WSTrustElementFactory

createRequestedSecurityToken

public RequestedSecurityToken createRequestedSecurityToken()
Create a RequestedSecurityToken.

Specified by:
createRequestedSecurityToken in class WSTrustElementFactory

createDirectReference

public DirectReference createDirectReference(java.lang.String valueType,
                                             java.lang.String uri)
Specified by:
createDirectReference in class WSTrustElementFactory

createKeyIdentifier

public KeyIdentifier createKeyIdentifier(java.lang.String valueType,
                                         java.lang.String encodingType)
Specified by:
createKeyIdentifier in class WSTrustElementFactory

createSecurityTokenReference

public SecurityTokenReference createSecurityTokenReference(Reference ref)
Specified by:
createSecurityTokenReference in class WSTrustElementFactory

createRequestedAttachedReference

public RequestedAttachedReference createRequestedAttachedReference(SecurityTokenReference str)
Create a RequestedAttachedReference.

Specified by:
createRequestedAttachedReference in class WSTrustElementFactory

createRequestedUnattachedReference

public RequestedUnattachedReference createRequestedUnattachedReference(SecurityTokenReference str)
Create a RequestedUnattachedReference.

Specified by:
createRequestedUnattachedReference in class WSTrustElementFactory

createRequestedProofToken

public RequestedProofToken createRequestedProofToken()
Create a RequestedProofToken.

Specified by:
createRequestedProofToken in class WSTrustElementFactory

createRSTForRenew

public RequestSecurityToken createRSTForRenew(java.net.URI tokenType,
                                              java.net.URI requestType,
                                              java.net.URI context,
                                              RenewTarget target,
                                              AllowPostdating apd,
                                              Renewing renewingInfo)
Create an RST for a Renewal Request

Specified by:
createRSTForRenew in class WSTrustElementFactory

createRenewTarget

public RenewTarget createRenewTarget(SecurityTokenReference str)
Specified by:
createRenewTarget in class WSTrustElementFactory

createCancelTarget

public CancelTarget createCancelTarget(SecurityTokenReference str)
Specified by:
createCancelTarget in class WSTrustElementFactory

createValidateTarget

public ValidateTarget createValidateTarget(com.sun.xml.ws.security.Token token)
Specified by:
createValidateTarget in class WSTrustElementFactory

createSecondaryParameters

public SecondaryParameters createSecondaryParameters()
Description copied from class: WSTrustElementFactory
Create SecondaryParameters

Specified by:
createSecondaryParameters in class WSTrustElementFactory

createUseKey

public UseKey createUseKey(com.sun.xml.ws.security.Token token,
                           java.lang.String sig)
Specified by:
createUseKey in class WSTrustElementFactory

createRSTForCancel

public RequestSecurityToken createRSTForCancel(java.net.URI requestType,
                                               CancelTarget target)
Create an RST for Token Cancellation

Specified by:
createRSTForCancel in class WSTrustElementFactory

createRSTRForCancel

public RequestSecurityTokenResponse createRSTRForCancel()
Create an RSTR for a Successful Token Cancellation

Specified by:
createRSTRForCancel in class WSTrustElementFactory

createRSTForValidate

public RequestSecurityToken createRSTForValidate(java.net.URI tokenType,
                                                 java.net.URI requestType)
Create an RST for Token Validation

TODO: Not clear from Spec whether the Token to be validated is ever sent ? TODO: There is a mention of special case where a SOAPEnvelope may be specified as a security token if the requestor desires the envelope to be validated.

Specified by:
createRSTForValidate in class WSTrustElementFactory

createRSTRForValidate

public RequestSecurityTokenResponse createRSTRForValidate(java.net.URI tokenType,
                                                          RequestedSecurityToken token,
                                                          Status status)
create an RSTR for validate request.

Specified by:
createRSTRForValidate in class WSTrustElementFactory

createRST

public RequestSecurityToken createRST()
Create an Empty RST

Specified by:
createRST in class WSTrustElementFactory

createRSTR

public RequestSecurityTokenResponse createRSTR()
Create an Empty RSTR

Specified by:
createRSTR in class WSTrustElementFactory

createRSTRC

public RequestSecurityTokenResponseCollection createRSTRC(java.util.List<RequestSecurityTokenResponse> rstrs)
Specified by:
createRSTRC in class WSTrustElementFactory

createRSTFrom

public RequestSecurityToken createRSTFrom(javax.xml.transform.Source src)
create an RST from a Source

Specified by:
createRSTFrom in class WSTrustElementFactory

createRSTFrom

public RequestSecurityToken createRSTFrom(org.w3c.dom.Element elem)
create an RST from DOM Element

Specified by:
createRSTFrom in class WSTrustElementFactory

createRSTRFrom

public RequestSecurityTokenResponse createRSTRFrom(javax.xml.transform.Source src)
create an RSTR from a Source

Specified by:
createRSTRFrom in class WSTrustElementFactory

createRSTRFrom

public RequestSecurityTokenResponse createRSTRFrom(org.w3c.dom.Element elem)
create an RSTR from DOM Element

Specified by:
createRSTRFrom in class WSTrustElementFactory

createRSTRCollectionFrom

public RequestSecurityTokenResponseCollection createRSTRCollectionFrom(javax.xml.transform.Source src)
Create RSTR Collection from Source

Specified by:
createRSTRCollectionFrom in class WSTrustElementFactory

createRSTRCollectionFrom

public RequestSecurityTokenResponseCollection createRSTRCollectionFrom(org.w3c.dom.Element elem)
Create RSTR Collection from Element

Specified by:
createRSTRCollectionFrom in class WSTrustElementFactory

createRSTFrom

public RequestSecurityToken createRSTFrom(javax.xml.bind.JAXBElement elem)
create an RST from JAXBElement

NOTE: an STS Implementor can call

 JAXBElement<RequestSecurityTokenType> elem=
 ObjectFactory.createRequestSecurityToken(<JAXBBean for RST>)
 
The JAXBBean for RST is the one generated from the ws-trust.xsd schema The default implementation expects the packagename of the generated JAXB Beans to be fixed.

Specified by:
createRSTFrom in class WSTrustElementFactory

createRSTRFrom

public RequestSecurityTokenResponse createRSTRFrom(javax.xml.bind.JAXBElement elem)
create an RSTR from JAXBElement

NOTE: an STS Implementor can call

 JAXBElement<RequestSecurityTokenResponseType> elem=
 ObjectFactory.createRequestSecurityTokenResponse(<JAXBBean for RSTR>);
 
The <JAXBBean for RSTR> is the one generated from the ws-trust.xsd schema The default implementation expects the packagename of the generated JAXB Beans to be fixed.

Specified by:
createRSTRFrom in class WSTrustElementFactory

createRSTRCollectionFrom

public RequestSecurityTokenResponseCollection createRSTRCollectionFrom(javax.xml.bind.JAXBElement elem)
create an RSTR Collection from JAXBElement

NOTE: an STS Implementor can call

 JAXBElement<RequestSecurityTokenResponseCollectionType> elem=
 ObjectFactory.createRequestSecurityTokenResponseCollection(<JAXBBean for RSTR Collection>
 
The <JAXBBean for RSTR Collection> is the one generated from the ws-trust.xsd schema The default implementation expects the packagename of the generated JAXB Beans to be fixed.

Specified by:
createRSTRCollectionFrom in class WSTrustElementFactory

createResponseFrom

public java.lang.Object createResponseFrom(javax.xml.bind.JAXBElement elem)

createSecurityTokenReference

public SecurityTokenReference createSecurityTokenReference(javax.xml.bind.JAXBElement elem)
Specified by:
createSecurityTokenReference in class WSTrustElementFactory

toJAXBElement

public javax.xml.bind.JAXBElement toJAXBElement(BaseSTSRequest request)
Specified by:
toJAXBElement in class WSTrustElementFactory

toJAXBElement

public javax.xml.bind.JAXBElement toJAXBElement(BaseSTSResponse response)
Specified by:
toJAXBElement in class WSTrustElementFactory

toJAXBElement

public javax.xml.bind.JAXBElement toJAXBElement(SecurityTokenReference str)
convert an SecurityTokenReference to a JAXBElement

Specified by:
toJAXBElement in class WSTrustElementFactory

toJAXBElement

public javax.xml.bind.JAXBElement toJAXBElement(RequestSecurityToken rst)
convert an RST to a JAXBElement

Specified by:
toJAXBElement in class WSTrustElementFactory

toJAXBElement

public javax.xml.bind.JAXBElement toJAXBElement(RequestSecurityTokenResponse rstr)
convert an RSTR to a JAXBElement

Specified by:
toJAXBElement in class WSTrustElementFactory

toJAXBElement

public javax.xml.bind.JAXBElement toJAXBElement(Entropy entropy)
convert a Entropy to a JAXBElement


toJAXBElement

public javax.xml.bind.JAXBElement toJAXBElement(RequestSecurityTokenResponseCollection rstrCollection)
convert an RSTR Collection to a JAXBElement

Specified by:
toJAXBElement in class WSTrustElementFactory

toSource

public javax.xml.transform.Source toSource(BaseSTSRequest request)
Specified by:
toSource in class WSTrustElementFactory

toSource

public javax.xml.transform.Source toSource(BaseSTSResponse response)
Specified by:
toSource in class WSTrustElementFactory

toSource

public javax.xml.transform.Source toSource(RequestSecurityToken rst)
Marshal an RST to a Source.

Note: Useful for Dispatch Client implementations

Specified by:
toSource in class WSTrustElementFactory

toSource

public javax.xml.transform.Source toSource(RequestSecurityTokenResponse rstr)
Marshal an RSTR to a Source

Note: Useful for STS implementations which are JAXWS Providers

Specified by:
toSource in class WSTrustElementFactory

toSource

public javax.xml.transform.Source toSource(RequestSecurityTokenResponseCollection rstrCollection)
Marshal an RSTR Collection to a Source

Note: Useful for STS implementations which are JAXWS Providers

Specified by:
toSource in class WSTrustElementFactory

toElement

public org.w3c.dom.Element toElement(BaseSTSRequest request)
Specified by:
toElement in class WSTrustElementFactory

toElement

public org.w3c.dom.Element toElement(BaseSTSResponse response)
Specified by:
toElement in class WSTrustElementFactory

toElement

public org.w3c.dom.Element toElement(RequestSecurityToken rst)
Marshal an RST to a DOM Element.

Note: Useful for Dispatch Client implementations

Specified by:
toElement in class WSTrustElementFactory

toElement

public org.w3c.dom.Element toElement(RequestSecurityTokenResponse rstr)
Marshal an RSTR to DOM Element

Note: Useful for STS implementations which are JAXWS Providers

Specified by:
toElement in class WSTrustElementFactory

toElement

public org.w3c.dom.Element toElement(RequestSecurityTokenResponse rstr,
                                     org.w3c.dom.Document doc)
Specified by:
toElement in class WSTrustElementFactory

toElement

public org.w3c.dom.Element toElement(RequestSecurityTokenResponseCollection rstrCollection)
Marshal an RSTR Collection to a DOM Element

Note: Useful for STS implementations which are JAXWS Providers

Specified by:
toElement in class WSTrustElementFactory

toElement

public org.w3c.dom.Element toElement(BinarySecret bs)
Description copied from class: WSTrustElementFactory
Marshal an BinarySecret to a DOM Element

Note: Useful for STS implementations which are JAXWS Providers

Specified by:
toElement in class WSTrustElementFactory

toElement

public org.w3c.dom.Element toElement(SecurityTokenReference str,
                                     org.w3c.dom.Document doc)
Marshal an STR to a DOM Element.

Note: Useful for Dispatch Client implementations

Specified by:
toElement in class WSTrustElementFactory

toElement

public org.w3c.dom.Element toElement(BinarySecret bs,
                                     org.w3c.dom.Document doc)
Marshal an BinarySecret to a DOM Element.

Note: Useful for Dispatch Client implementations

Specified by:
toElement in class WSTrustElementFactory

toElement

public org.w3c.dom.Element toElement(javax.xml.bind.JAXBElement jaxbEle)