Class WSTrustElementFactoryImpl

  • Direct Known Subclasses:
    WSSCElementFactory

    public class WSTrustElementFactoryImpl
    extends com.sun.xml.ws.security.trust.WSTrustElementFactory
    A Factory for creating the WS-Trust schema elements, and marshalling/un-marshalling them.
    Author:
    Manveen Kaur
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.sun.xml.ws.security.trust.elements.ActAs createActAs​(com.sun.xml.ws.security.Token token)  
      com.sun.xml.ws.security.trust.elements.BinarySecret createBinarySecret​(byte[] rawValue, String type)  
      com.sun.xml.ws.security.trust.elements.BinarySecret createBinarySecret​(Element elem)  
      com.sun.xml.ws.security.trust.elements.CancelTarget createCancelTarget​(com.sun.xml.ws.security.trust.elements.str.SecurityTokenReference str)  
      com.sun.xml.ws.api.security.trust.Claims createClaims()  
      com.sun.xml.ws.api.security.trust.Claims createClaims​(com.sun.xml.ws.api.security.trust.Claims claims)  
      com.sun.xml.ws.api.security.trust.Claims createClaims​(Element elem)  
      com.sun.xml.ws.security.trust.elements.str.DirectReference createDirectReference​(String valueType, String uri)  
      com.sun.xml.ws.security.trust.elements.str.DirectReference createDirectReference​(String valueType, String uri, String instanceId)  
      com.sun.xml.ws.security.trust.elements.Entropy createEntropy​(com.sun.xml.ws.security.EncryptedKey key)
      Create an Entropy with an xenc:EncryptedKey
      com.sun.xml.ws.security.trust.elements.Entropy createEntropy​(com.sun.xml.ws.security.trust.elements.BinarySecret secret)
      Create an Entropy with a BinarySecret
      com.sun.xml.ws.security.trust.elements.IssuedTokens createIssuedTokens​(com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponseCollection issuedTokens)
      Create a wst:IssuedTokens object
      com.sun.xml.ws.security.trust.elements.str.KeyIdentifier createKeyIdentifier​(String valueType, String encodingType)  
      com.sun.xml.ws.security.trust.elements.Lifetime createLifetime​(com.sun.xml.ws.security.wsu10.AttributedDateTime created, com.sun.xml.ws.security.wsu10.AttributedDateTime expires)
      Create a Lifetime.
      com.sun.xml.ws.security.trust.elements.OnBehalfOf createOnBehalfOf​(com.sun.xml.ws.security.Token oboToken)  
      com.sun.xml.ws.security.trust.elements.RenewTarget createRenewTarget​(com.sun.xml.ws.security.trust.elements.str.SecurityTokenReference str)  
      com.sun.xml.ws.security.trust.elements.RequestedAttachedReference createRequestedAttachedReference​(com.sun.xml.ws.security.trust.elements.str.SecurityTokenReference str)
      Create a RequestedAttachedReference.
      com.sun.xml.ws.security.trust.elements.RequestedProofToken createRequestedProofToken()
      Create a RequestedProofToken.
      com.sun.xml.ws.security.trust.elements.RequestedSecurityToken createRequestedSecurityToken()
      Create a RequestedSecurityToken.
      com.sun.xml.ws.security.trust.elements.RequestedSecurityToken createRequestedSecurityToken​(com.sun.xml.ws.security.Token token)
      Create a RequestedSecurityToken.
      com.sun.xml.ws.security.trust.elements.RequestedUnattachedReference createRequestedUnattachedReference​(com.sun.xml.ws.security.trust.elements.str.SecurityTokenReference str)
      Create a RequestedUnattachedReference.
      com.sun.xml.ws.security.trust.elements.RequestSecurityToken createRST()
      Create an Empty RST
      com.sun.xml.ws.security.trust.elements.RequestSecurityToken createRSTForCancel​(URI requestType, com.sun.xml.ws.security.trust.elements.CancelTarget target)
      Create an RST for Token Cancellation
      com.sun.xml.ws.security.trust.elements.RequestSecurityToken createRSTForIssue​(URI tokenType, URI requestType, URI context, com.sun.xml.ws.policy.impl.bindings.AppliesTo scopes, com.sun.xml.ws.api.security.trust.Claims claims, com.sun.xml.ws.security.trust.elements.Entropy entropy, com.sun.xml.ws.security.trust.elements.Lifetime lifetime)
      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
      com.sun.xml.ws.security.trust.elements.RequestSecurityToken createRSTForRenew​(URI tokenType, URI requestType, URI context, com.sun.xml.ws.security.trust.elements.RenewTarget target, com.sun.xml.ws.security.trust.elements.AllowPostdating apd, com.sun.xml.ws.security.trust.elements.Renewing renewingInfo)
      Create an RST for a Renewal Request
      com.sun.xml.ws.security.trust.elements.RequestSecurityToken createRSTForValidate​(URI tokenType, URI requestType)
      Create an RST for Token Validation
      com.sun.xml.ws.security.trust.elements.RequestSecurityToken createRSTFrom​(javax.xml.bind.JAXBElement elem)
      create an RST from JAXBElement
      com.sun.xml.ws.security.trust.elements.RequestSecurityToken createRSTFrom​(Source src)
      create an RST from a Source
      com.sun.xml.ws.security.trust.elements.RequestSecurityToken createRSTFrom​(Element elem)
      create an RST from DOM Element
      com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse createRSTR()
      Create an Empty RSTR
      com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponseCollection createRSTRC​(List<com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse> rstrs)  
      com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponseCollection createRSTRCollectionForIssue​(URI tokenType, URI context, com.sun.xml.ws.security.trust.elements.RequestedSecurityToken token, com.sun.xml.ws.policy.impl.bindings.AppliesTo scopes, com.sun.xml.ws.security.trust.elements.RequestedAttachedReference attached, com.sun.xml.ws.security.trust.elements.RequestedUnattachedReference unattached, com.sun.xml.ws.security.trust.elements.RequestedProofToken proofToken, com.sun.xml.ws.security.trust.elements.Entropy entropy, com.sun.xml.ws.security.trust.elements.Lifetime lifetime)
      Create a collection of RequestSecurityTokenResponse(s)
      com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponseCollection createRSTRCollectionFrom​(javax.xml.bind.JAXBElement elem)
      create an RSTR Collection from JAXBElement
      com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponseCollection createRSTRCollectionFrom​(Source src)
      Create RSTR Collection from Source
      com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponseCollection createRSTRCollectionFrom​(Element elem)
      Create RSTR Collection from Element
      com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse createRSTRForCancel()
      Create an RSTR for a Successful Token Cancellation
      com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse createRSTRForIssue​(URI tokenType, URI context, com.sun.xml.ws.security.trust.elements.RequestedSecurityToken token, com.sun.xml.ws.policy.impl.bindings.AppliesTo scopes, com.sun.xml.ws.security.trust.elements.RequestedAttachedReference attachedReference, com.sun.xml.ws.security.trust.elements.RequestedUnattachedReference unattachedRef, com.sun.xml.ws.security.trust.elements.RequestedProofToken proofToken, com.sun.xml.ws.security.trust.elements.Entropy entropy, com.sun.xml.ws.security.trust.elements.Lifetime lifetime)
      Create an RSTR for Issue from the given arguments.
      com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse createRSTRForRenew​(URI tokenType, URI context, com.sun.xml.ws.security.trust.elements.RequestedSecurityToken token, com.sun.xml.ws.security.trust.elements.RequestedAttachedReference attachedReference, com.sun.xml.ws.security.trust.elements.RequestedUnattachedReference unattachedRef, com.sun.xml.ws.security.trust.elements.RequestedProofToken proofToken, com.sun.xml.ws.security.trust.elements.Entropy entropy, com.sun.xml.ws.security.trust.elements.Lifetime lifetime)
      Create an RSTR for Renew from the given arguments.
      com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse createRSTRForValidate​(URI tokenType, com.sun.xml.ws.security.trust.elements.RequestedSecurityToken token, com.sun.xml.ws.api.security.trust.Status status)
      create an RSTR for validate request.
      com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse createRSTRFrom​(javax.xml.bind.JAXBElement elem)
      create an RSTR from JAXBElement
      com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse createRSTRFrom​(Source src)
      create an RSTR from a Source
      com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse createRSTRFrom​(Element elem)
      create an RSTR from DOM Element
      com.sun.xml.ws.security.trust.elements.SecondaryParameters createSecondaryParameters()
      Create SecondaryParameters
      com.sun.xml.ws.security.SecurityContextToken createSecurityContextToken​(URI identifier, String instance, String wsuId)  
      com.sun.xml.ws.security.trust.elements.str.SecurityTokenReference createSecurityTokenReference​(com.sun.xml.ws.security.trust.elements.str.Reference ref)  
      com.sun.xml.ws.security.trust.elements.str.SecurityTokenReference createSecurityTokenReference​(javax.xml.bind.JAXBElement elem)  
      com.sun.xml.ws.api.security.trust.Status createStatus​(String code, String reason)  
      com.sun.xml.ws.security.trust.elements.UseKey createUseKey​(com.sun.xml.ws.security.Token token, String sig)  
      com.sun.xml.ws.security.trust.elements.ValidateTarget createValidateTarget​(com.sun.xml.ws.security.Token token)  
      javax.xml.bind.Marshaller getMarshaller()  
      Element toElement​(com.sun.xml.ws.security.trust.elements.BaseSTSRequest request)  
      Element toElement​(com.sun.xml.ws.security.trust.elements.BaseSTSResponse response)  
      Element toElement​(com.sun.xml.ws.security.trust.elements.BinarySecret secret)  
      Element toElement​(com.sun.xml.ws.security.trust.elements.BinarySecret secret, Document doc)
      Marshal an BinarySecret to a DOM Element.
      Element toElement​(com.sun.xml.ws.security.trust.elements.RequestSecurityToken rst)
      Marshal an RST to a DOM Element.
      Element toElement​(com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse rstr)
      Marshal an RSTR to DOM Element
      Element toElement​(com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponseCollection rstrCollection)
      Marshal an RSTR Collection to a DOM Element
      Element toElement​(com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse rstr, Document doc)  
      Element toElement​(com.sun.xml.ws.security.trust.elements.str.SecurityTokenReference str, Document doc)
      Marshal an STR to a DOM Element.
      javax.xml.bind.JAXBElement toJAXBElement​(com.sun.xml.ws.security.trust.elements.BaseSTSRequest request)  
      javax.xml.bind.JAXBElement toJAXBElement​(com.sun.xml.ws.security.trust.elements.BaseSTSResponse response)  
      javax.xml.bind.JAXBElement toJAXBElement​(com.sun.xml.ws.security.trust.elements.Entropy entropy)
      convert a Entropy to a JAXBElement
      javax.xml.bind.JAXBElement toJAXBElement​(com.sun.xml.ws.security.trust.elements.RequestSecurityToken rst)
      convert an RST to a JAXBElement
      javax.xml.bind.JAXBElement toJAXBElement​(com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse rstr)
      convert an RSTR to a JAXBElement
      javax.xml.bind.JAXBElement toJAXBElement​(com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponseCollection rstrCollection)
      convert an RSTR Collection to a JAXBElement
      javax.xml.bind.JAXBElement toJAXBElement​(com.sun.xml.ws.security.trust.elements.str.SecurityTokenReference str)
      convert an SecurityTokenReference to a JAXBElement
      Source toSource​(com.sun.xml.ws.security.trust.elements.BaseSTSRequest request)  
      Source toSource​(com.sun.xml.ws.security.trust.elements.BaseSTSResponse response)  
      Source toSource​(com.sun.xml.ws.security.trust.elements.RequestSecurityToken rst)
      Marshal an RST to a Source.
      Source toSource​(com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse rstr)
      Marshal an RSTR to a Source
      Source toSource​(com.sun.xml.ws.security.trust.elements.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, newInstance, toElement
    • Constructor Detail

      • WSTrustElementFactoryImpl

        public WSTrustElementFactoryImpl()
    • Method Detail

      • createRSTForIssue

        public com.sun.xml.ws.security.trust.elements.RequestSecurityToken createRSTForIssue​(URI tokenType,
                                                                                             URI requestType,
                                                                                             URI context,
                                                                                             com.sun.xml.ws.policy.impl.bindings.AppliesTo scopes,
                                                                                             com.sun.xml.ws.api.security.trust.Claims claims,
                                                                                             com.sun.xml.ws.security.trust.elements.Entropy entropy,
                                                                                             com.sun.xml.ws.security.trust.elements.Lifetime lifetime)
                                                                                      throws com.sun.xml.ws.api.security.trust.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 com.sun.xml.ws.security.trust.WSTrustElementFactory
        Throws:
        com.sun.xml.ws.api.security.trust.WSTrustException
      • createRSTRForIssue

        public com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse createRSTRForIssue​(URI tokenType,
                                                                                                      URI context,
                                                                                                      com.sun.xml.ws.security.trust.elements.RequestedSecurityToken token,
                                                                                                      com.sun.xml.ws.policy.impl.bindings.AppliesTo scopes,
                                                                                                      com.sun.xml.ws.security.trust.elements.RequestedAttachedReference attachedReference,
                                                                                                      com.sun.xml.ws.security.trust.elements.RequestedUnattachedReference unattachedRef,
                                                                                                      com.sun.xml.ws.security.trust.elements.RequestedProofToken proofToken,
                                                                                                      com.sun.xml.ws.security.trust.elements.Entropy entropy,
                                                                                                      com.sun.xml.ws.security.trust.elements.Lifetime lifetime)
                                                                                               throws com.sun.xml.ws.api.security.trust.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 com.sun.xml.ws.security.trust.WSTrustElementFactory
        Throws:
        com.sun.xml.ws.api.security.trust.WSTrustException
      • createRSTRCollectionForIssue

        public com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponseCollection createRSTRCollectionForIssue​(URI tokenType,
                                                                                                                          URI context,
                                                                                                                          com.sun.xml.ws.security.trust.elements.RequestedSecurityToken token,
                                                                                                                          com.sun.xml.ws.policy.impl.bindings.AppliesTo scopes,
                                                                                                                          com.sun.xml.ws.security.trust.elements.RequestedAttachedReference attached,
                                                                                                                          com.sun.xml.ws.security.trust.elements.RequestedUnattachedReference unattached,
                                                                                                                          com.sun.xml.ws.security.trust.elements.RequestedProofToken proofToken,
                                                                                                                          com.sun.xml.ws.security.trust.elements.Entropy entropy,
                                                                                                                          com.sun.xml.ws.security.trust.elements.Lifetime lifetime)
                                                                                                                   throws com.sun.xml.ws.api.security.trust.WSTrustException
        Create a collection of RequestSecurityTokenResponse(s)
        Specified by:
        createRSTRCollectionForIssue in class com.sun.xml.ws.security.trust.WSTrustElementFactory
        Throws:
        com.sun.xml.ws.api.security.trust.WSTrustException
      • createRSTRForRenew

        public com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse createRSTRForRenew​(URI tokenType,
                                                                                                      URI context,
                                                                                                      com.sun.xml.ws.security.trust.elements.RequestedSecurityToken token,
                                                                                                      com.sun.xml.ws.security.trust.elements.RequestedAttachedReference attachedReference,
                                                                                                      com.sun.xml.ws.security.trust.elements.RequestedUnattachedReference unattachedRef,
                                                                                                      com.sun.xml.ws.security.trust.elements.RequestedProofToken proofToken,
                                                                                                      com.sun.xml.ws.security.trust.elements.Entropy entropy,
                                                                                                      com.sun.xml.ws.security.trust.elements.Lifetime lifetime)
                                                                                               throws com.sun.xml.ws.api.security.trust.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 com.sun.xml.ws.security.trust.WSTrustElementFactory
        Throws:
        com.sun.xml.ws.api.security.trust.WSTrustException
      • createIssuedTokens

        public com.sun.xml.ws.security.trust.elements.IssuedTokens createIssuedTokens​(com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponseCollection issuedTokens)
        Create a wst:IssuedTokens object
        Specified by:
        createIssuedTokens in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createOnBehalfOf

        public com.sun.xml.ws.security.trust.elements.OnBehalfOf createOnBehalfOf​(com.sun.xml.ws.security.Token oboToken)
        Specified by:
        createOnBehalfOf in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createValidateTarget

        public com.sun.xml.ws.security.trust.elements.ValidateTarget createValidateTarget​(com.sun.xml.ws.security.Token token)
        Specified by:
        createValidateTarget in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createActAs

        public com.sun.xml.ws.security.trust.elements.ActAs createActAs​(com.sun.xml.ws.security.Token token)
        Specified by:
        createActAs in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createEntropy

        public com.sun.xml.ws.security.trust.elements.Entropy createEntropy​(com.sun.xml.ws.security.trust.elements.BinarySecret secret)
        Create an Entropy with a BinarySecret
        Specified by:
        createEntropy in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createEntropy

        public com.sun.xml.ws.security.trust.elements.Entropy createEntropy​(com.sun.xml.ws.security.EncryptedKey key)
        Create an Entropy with an xenc:EncryptedKey
        Specified by:
        createEntropy in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createBinarySecret

        public com.sun.xml.ws.security.trust.elements.BinarySecret createBinarySecret​(byte[] rawValue,
                                                                                      String type)
        Specified by:
        createBinarySecret in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createBinarySecret

        public com.sun.xml.ws.security.trust.elements.BinarySecret createBinarySecret​(Element elem)
                                                                               throws com.sun.xml.ws.api.security.trust.WSTrustException
        Specified by:
        createBinarySecret in class com.sun.xml.ws.security.trust.WSTrustElementFactory
        Throws:
        com.sun.xml.ws.api.security.trust.WSTrustException
      • createLifetime

        public com.sun.xml.ws.security.trust.elements.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 com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createClaims

        public com.sun.xml.ws.api.security.trust.Claims createClaims​(Element elem)
                                                              throws com.sun.xml.ws.api.security.trust.WSTrustException
        Specified by:
        createClaims in class com.sun.xml.ws.security.trust.WSTrustElementFactory
        Throws:
        com.sun.xml.ws.api.security.trust.WSTrustException
      • createClaims

        public com.sun.xml.ws.api.security.trust.Claims createClaims​(com.sun.xml.ws.api.security.trust.Claims claims)
                                                              throws com.sun.xml.ws.api.security.trust.WSTrustException
        Specified by:
        createClaims in class com.sun.xml.ws.security.trust.WSTrustElementFactory
        Throws:
        com.sun.xml.ws.api.security.trust.WSTrustException
      • createClaims

        public com.sun.xml.ws.api.security.trust.Claims createClaims()
                                                              throws com.sun.xml.ws.api.security.trust.WSTrustException
        Specified by:
        createClaims in class com.sun.xml.ws.security.trust.WSTrustElementFactory
        Throws:
        com.sun.xml.ws.api.security.trust.WSTrustException
      • createStatus

        public com.sun.xml.ws.api.security.trust.Status createStatus​(String code,
                                                                     String reason)
        Specified by:
        createStatus in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createRequestedSecurityToken

        public com.sun.xml.ws.security.trust.elements.RequestedSecurityToken createRequestedSecurityToken​(com.sun.xml.ws.security.Token token)
        Create a RequestedSecurityToken.
        Specified by:
        createRequestedSecurityToken in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createRequestedSecurityToken

        public com.sun.xml.ws.security.trust.elements.RequestedSecurityToken createRequestedSecurityToken()
        Create a RequestedSecurityToken.
        Specified by:
        createRequestedSecurityToken in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createDirectReference

        public com.sun.xml.ws.security.trust.elements.str.DirectReference createDirectReference​(String valueType,
                                                                                                String uri)
        Specified by:
        createDirectReference in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createDirectReference

        public com.sun.xml.ws.security.trust.elements.str.DirectReference createDirectReference​(String valueType,
                                                                                                String uri,
                                                                                                String instanceId)
      • createKeyIdentifier

        public com.sun.xml.ws.security.trust.elements.str.KeyIdentifier createKeyIdentifier​(String valueType,
                                                                                            String encodingType)
        Specified by:
        createKeyIdentifier in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createSecurityTokenReference

        public com.sun.xml.ws.security.trust.elements.str.SecurityTokenReference createSecurityTokenReference​(com.sun.xml.ws.security.trust.elements.str.Reference ref)
        Specified by:
        createSecurityTokenReference in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createRequestedAttachedReference

        public com.sun.xml.ws.security.trust.elements.RequestedAttachedReference createRequestedAttachedReference​(com.sun.xml.ws.security.trust.elements.str.SecurityTokenReference str)
        Create a RequestedAttachedReference.
        Specified by:
        createRequestedAttachedReference in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createRequestedUnattachedReference

        public com.sun.xml.ws.security.trust.elements.RequestedUnattachedReference createRequestedUnattachedReference​(com.sun.xml.ws.security.trust.elements.str.SecurityTokenReference str)
        Create a RequestedUnattachedReference.
        Specified by:
        createRequestedUnattachedReference in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createRequestedProofToken

        public com.sun.xml.ws.security.trust.elements.RequestedProofToken createRequestedProofToken()
        Create a RequestedProofToken.
        Specified by:
        createRequestedProofToken in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createSecondaryParameters

        public com.sun.xml.ws.security.trust.elements.SecondaryParameters createSecondaryParameters()
        Create SecondaryParameters
        Specified by:
        createSecondaryParameters in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createUseKey

        public com.sun.xml.ws.security.trust.elements.UseKey createUseKey​(com.sun.xml.ws.security.Token token,
                                                                          String sig)
        Specified by:
        createUseKey in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createRSTForRenew

        public com.sun.xml.ws.security.trust.elements.RequestSecurityToken createRSTForRenew​(URI tokenType,
                                                                                             URI requestType,
                                                                                             URI context,
                                                                                             com.sun.xml.ws.security.trust.elements.RenewTarget target,
                                                                                             com.sun.xml.ws.security.trust.elements.AllowPostdating apd,
                                                                                             com.sun.xml.ws.security.trust.elements.Renewing renewingInfo)
        Create an RST for a Renewal Request
        Specified by:
        createRSTForRenew in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createRenewTarget

        public com.sun.xml.ws.security.trust.elements.RenewTarget createRenewTarget​(com.sun.xml.ws.security.trust.elements.str.SecurityTokenReference str)
        Specified by:
        createRenewTarget in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createCancelTarget

        public com.sun.xml.ws.security.trust.elements.CancelTarget createCancelTarget​(com.sun.xml.ws.security.trust.elements.str.SecurityTokenReference str)
        Specified by:
        createCancelTarget in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createRSTForCancel

        public com.sun.xml.ws.security.trust.elements.RequestSecurityToken createRSTForCancel​(URI requestType,
                                                                                              com.sun.xml.ws.security.trust.elements.CancelTarget target)
        Create an RST for Token Cancellation
        Specified by:
        createRSTForCancel in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createRSTRForCancel

        public com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse createRSTRForCancel()
        Create an RSTR for a Successful Token Cancellation
        Specified by:
        createRSTRForCancel in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createRSTForValidate

        public com.sun.xml.ws.security.trust.elements.RequestSecurityToken createRSTForValidate​(URI tokenType,
                                                                                                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 com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createRSTRForValidate

        public com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse createRSTRForValidate​(URI tokenType,
                                                                                                         com.sun.xml.ws.security.trust.elements.RequestedSecurityToken token,
                                                                                                         com.sun.xml.ws.api.security.trust.Status status)
        create an RSTR for validate request.
        Specified by:
        createRSTRForValidate in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createRST

        public com.sun.xml.ws.security.trust.elements.RequestSecurityToken createRST()
        Create an Empty RST
        Specified by:
        createRST in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createRSTR

        public com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse createRSTR()
        Create an Empty RSTR
        Specified by:
        createRSTR in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createRSTRC

        public com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponseCollection createRSTRC​(List<com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse> rstrs)
        Specified by:
        createRSTRC in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createRSTFrom

        public com.sun.xml.ws.security.trust.elements.RequestSecurityToken createRSTFrom​(Source src)
        create an RST from a Source
        Specified by:
        createRSTFrom in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createRSTFrom

        public com.sun.xml.ws.security.trust.elements.RequestSecurityToken createRSTFrom​(Element elem)
        create an RST from DOM Element
        Specified by:
        createRSTFrom in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createRSTRFrom

        public com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse createRSTRFrom​(Source src)
        create an RSTR from a Source
        Specified by:
        createRSTRFrom in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createRSTRFrom

        public com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse createRSTRFrom​(Element elem)
        create an RSTR from DOM Element
        Specified by:
        createRSTRFrom in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createRSTRCollectionFrom

        public com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponseCollection createRSTRCollectionFrom​(Source src)
        Create RSTR Collection from Source
        Specified by:
        createRSTRCollectionFrom in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createRSTRCollectionFrom

        public com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponseCollection createRSTRCollectionFrom​(Element elem)
        Create RSTR Collection from Element
        Specified by:
        createRSTRCollectionFrom in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createRSTFrom

        public com.sun.xml.ws.security.trust.elements.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 com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createRSTRFrom

        public com.sun.xml.ws.security.trust.elements.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 com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createRSTRCollectionFrom

        public com.sun.xml.ws.security.trust.elements.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 com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createSecurityTokenReference

        public com.sun.xml.ws.security.trust.elements.str.SecurityTokenReference createSecurityTokenReference​(javax.xml.bind.JAXBElement elem)
        Specified by:
        createSecurityTokenReference in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • createSecurityContextToken

        public com.sun.xml.ws.security.SecurityContextToken createSecurityContextToken​(URI identifier,
                                                                                       String instance,
                                                                                       String wsuId)
        Specified by:
        createSecurityContextToken in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • toJAXBElement

        public javax.xml.bind.JAXBElement toJAXBElement​(com.sun.xml.ws.security.trust.elements.BaseSTSRequest request)
        Specified by:
        toJAXBElement in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • toJAXBElement

        public javax.xml.bind.JAXBElement toJAXBElement​(com.sun.xml.ws.security.trust.elements.BaseSTSResponse response)
        Specified by:
        toJAXBElement in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • toJAXBElement

        public javax.xml.bind.JAXBElement toJAXBElement​(com.sun.xml.ws.security.trust.elements.str.SecurityTokenReference str)
        convert an SecurityTokenReference to a JAXBElement
        Specified by:
        toJAXBElement in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • toJAXBElement

        public javax.xml.bind.JAXBElement toJAXBElement​(com.sun.xml.ws.security.trust.elements.RequestSecurityToken rst)
        convert an RST to a JAXBElement
        Specified by:
        toJAXBElement in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • toJAXBElement

        public javax.xml.bind.JAXBElement toJAXBElement​(com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse rstr)
        convert an RSTR to a JAXBElement
        Specified by:
        toJAXBElement in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • toJAXBElement

        public javax.xml.bind.JAXBElement toJAXBElement​(com.sun.xml.ws.security.trust.elements.Entropy entropy)
        convert a Entropy to a JAXBElement
      • toJAXBElement

        public javax.xml.bind.JAXBElement toJAXBElement​(com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponseCollection rstrCollection)
        convert an RSTR Collection to a JAXBElement
        Specified by:
        toJAXBElement in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • toSource

        public Source toSource​(com.sun.xml.ws.security.trust.elements.BaseSTSRequest request)
        Specified by:
        toSource in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • toSource

        public Source toSource​(com.sun.xml.ws.security.trust.elements.BaseSTSResponse response)
        Specified by:
        toSource in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • toSource

        public Source toSource​(com.sun.xml.ws.security.trust.elements.RequestSecurityToken rst)
        Marshal an RST to a Source.

        Note: Useful for Dispatch Client implementations

        Specified by:
        toSource in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • toSource

        public Source toSource​(com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse rstr)
        Marshal an RSTR to a Source

        Note: Useful for STS implementations which are JAXWS Providers

        Specified by:
        toSource in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • toSource

        public Source toSource​(com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponseCollection rstrCollection)
        Marshal an RSTR Collection to a Source

        Note: Useful for STS implementations which are JAXWS Providers

        Specified by:
        toSource in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • toElement

        public Element toElement​(com.sun.xml.ws.security.trust.elements.BaseSTSRequest request)
        Specified by:
        toElement in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • toElement

        public Element toElement​(com.sun.xml.ws.security.trust.elements.BaseSTSResponse response)
        Specified by:
        toElement in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • toElement

        public Element toElement​(com.sun.xml.ws.security.trust.elements.RequestSecurityToken rst)
        Marshal an RST to a DOM Element.

        Note: Useful for Dispatch Client implementations

        Specified by:
        toElement in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • toElement

        public Element toElement​(com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse rstr)
        Marshal an RSTR to DOM Element

        Note: Useful for STS implementations which are JAXWS Providers

        Specified by:
        toElement in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • toElement

        public Element toElement​(com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse rstr,
                                 Document doc)
        Specified by:
        toElement in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • toElement

        public Element toElement​(com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponseCollection rstrCollection)
        Marshal an RSTR Collection to a DOM Element

        Note: Useful for STS implementations which are JAXWS Providers

        Specified by:
        toElement in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • toElement

        public Element toElement​(com.sun.xml.ws.security.trust.elements.BinarySecret secret)
        Specified by:
        toElement in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • toElement

        public Element toElement​(com.sun.xml.ws.security.trust.elements.str.SecurityTokenReference str,
                                 Document doc)
        Marshal an STR to a DOM Element.

        Note: Useful for Dispatch Client implementations

        Specified by:
        toElement in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • toElement

        public Element toElement​(com.sun.xml.ws.security.trust.elements.BinarySecret secret,
                                 Document doc)
        Marshal an BinarySecret to a DOM Element.

        Note: Useful for Dispatch Client implementations

        Specified by:
        toElement in class com.sun.xml.ws.security.trust.WSTrustElementFactory
      • getMarshaller

        public javax.xml.bind.Marshaller getMarshaller()
        Specified by:
        getMarshaller in class com.sun.xml.ws.security.trust.WSTrustElementFactory