Class RequestSecurityTokenResponseImpl

java.lang.Object
com.sun.xml.ws.security.trust.impl.wssx.bindings.RequestSecurityTokenResponseType
com.sun.xml.ws.security.trust.impl.wssx.elements.RequestSecurityTokenResponseImpl
All Implemented Interfaces:
com.sun.xml.ws.security.trust.elements.BaseSTSResponse, com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse, com.sun.xml.ws.security.trust.elements.WSTrustElementBase

public class RequestSecurityTokenResponseImpl extends RequestSecurityTokenResponseType implements com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse
Implementation of a RequestSecurityTokenResponse.
Author:
Manveen Kaur
  • Constructor Details

    • RequestSecurityTokenResponseImpl

      public RequestSecurityTokenResponseImpl()
    • RequestSecurityTokenResponseImpl

      public RequestSecurityTokenResponseImpl(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, com.sun.xml.ws.api.security.trust.Status status)
    • RequestSecurityTokenResponseImpl

      public RequestSecurityTokenResponseImpl(RequestSecurityTokenResponseType rstrType) throws Exception
      Throws:
      Exception
  • Method Details

    • getTokenType

      public URI getTokenType()
      Specified by:
      getTokenType in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setTokenType

      public void setTokenType(URI tokenType)
      Specified by:
      setTokenType in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getOtherAttributes

      public Map<QName,String> getOtherAttributes()
      Description copied from class: RequestSecurityTokenResponseType
      Gets a map that contains attributes that aren't bound to any typed property on this class.

      the map is keyed by the name of the attribute and the value is the string value of the attribute. the map returned by this method is live, and you can add new attribute by updating the map directly. Because of this design, there's no setter.

      Specified by:
      getOtherAttributes in interface com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse
      Overrides:
      getOtherAttributes in class RequestSecurityTokenResponseType
      Returns:
      always non-null
    • getLifetime

      public com.sun.xml.ws.security.trust.elements.Lifetime getLifetime()
      Specified by:
      getLifetime in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setLifetime

      public void setLifetime(com.sun.xml.ws.security.trust.elements.Lifetime lifetime)
      Specified by:
      setLifetime in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getRequestedTokenCancelled

      public com.sun.xml.ws.security.trust.elements.RequestedTokenCancelled getRequestedTokenCancelled()
      Specified by:
      getRequestedTokenCancelled in interface com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse
    • setRequestedTokenCancelled

      public void setRequestedTokenCancelled(com.sun.xml.ws.security.trust.elements.RequestedTokenCancelled rtc)
      Specified by:
      setRequestedTokenCancelled in interface com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse
    • getStatus

      public com.sun.xml.ws.api.security.trust.Status getStatus()
      Specified by:
      getStatus in interface com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse
    • setStatus

      public void setStatus(com.sun.xml.ws.api.security.trust.Status status)
      Specified by:
      setStatus in interface com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse
    • getEntropy

      public com.sun.xml.ws.security.trust.elements.Entropy getEntropy()
      Specified by:
      getEntropy in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setEntropy

      public void setEntropy(com.sun.xml.ws.security.trust.elements.Entropy entropy)
      Specified by:
      setEntropy in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getAny

      public List<Object> getAny()
      Description copied from class: RequestSecurityTokenResponseType
      Gets the value of the any property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the any property.

      For example, to add a new item, do as follows:

          getAny().add(newItem);
       

      Objects of the following type(s) are allowed in the list Object Element

      Specified by:
      getAny in interface com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse
      Overrides:
      getAny in class RequestSecurityTokenResponseType
    • getContext

      public String getContext()
      Description copied from class: RequestSecurityTokenResponseType
      Gets the value of the context property.
      Specified by:
      getContext in interface com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse
      Overrides:
      getContext in class RequestSecurityTokenResponseType
      Returns:
      possible object is String
    • setAppliesTo

      public void setAppliesTo(com.sun.xml.ws.policy.impl.bindings.AppliesTo appliesTo)
      Specified by:
      setAppliesTo in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getAppliesTo

      public com.sun.xml.ws.policy.impl.bindings.AppliesTo getAppliesTo()
      Specified by:
      getAppliesTo in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setOnBehalfOf

      public void setOnBehalfOf(com.sun.xml.ws.security.trust.elements.OnBehalfOf onBehalfOf)
      Specified by:
      setOnBehalfOf in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getOnBehalfOf

      public com.sun.xml.ws.security.trust.elements.OnBehalfOf getOnBehalfOf()
      Specified by:
      getOnBehalfOf in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setIssuer

      public void setIssuer(com.sun.xml.ws.security.trust.elements.Issuer issuer)
      Specified by:
      setIssuer in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getIssuer

      public com.sun.xml.ws.security.trust.elements.Issuer getIssuer()
      Specified by:
      getIssuer in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setRenewable

      public void setRenewable(com.sun.xml.ws.security.trust.elements.Renewing renew)
      Specified by:
      setRenewable in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getRenewable

      public com.sun.xml.ws.security.trust.elements.Renewing getRenewable()
      Specified by:
      getRenewable in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setSignChallenge

      public void setSignChallenge(com.sun.xml.ws.security.trust.elements.SignChallenge challenge)
      Specified by:
      setSignChallenge in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getSignChallenge

      public com.sun.xml.ws.security.trust.elements.SignChallenge getSignChallenge()
      Specified by:
      getSignChallenge in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setBinaryExchange

      public void setBinaryExchange(com.sun.xml.ws.security.trust.elements.BinaryExchange exchange)
      Specified by:
      setBinaryExchange in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getBinaryExchange

      public com.sun.xml.ws.security.trust.elements.BinaryExchange getBinaryExchange()
      Specified by:
      getBinaryExchange in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setAuthenticationType

      public void setAuthenticationType(URI uri)
      Specified by:
      setAuthenticationType in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getAuthenticationType

      public URI getAuthenticationType()
      Specified by:
      getAuthenticationType in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setKeyType

      public void setKeyType(URI keytype) throws com.sun.xml.ws.api.security.trust.WSTrustException
      Specified by:
      setKeyType in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
      Throws:
      com.sun.xml.ws.api.security.trust.WSTrustException
    • getKeyType

      public URI getKeyType()
      Specified by:
      getKeyType in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setKeySize

      public void setKeySize(long size)
      Specified by:
      setKeySize in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getKeySize

      public long getKeySize()
      Specified by:
      getKeySize in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setSignatureAlgorithm

      public void setSignatureAlgorithm(URI algorithm)
      Specified by:
      setSignatureAlgorithm in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getSignatureAlgorithm

      public URI getSignatureAlgorithm()
      Specified by:
      getSignatureAlgorithm in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setEncryptionAlgorithm

      public void setEncryptionAlgorithm(URI algorithm)
      Specified by:
      setEncryptionAlgorithm in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getEncryptionAlgorithm

      public URI getEncryptionAlgorithm()
      Specified by:
      getEncryptionAlgorithm in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setCanonicalizationAlgorithm

      public void setCanonicalizationAlgorithm(URI algorithm)
      Specified by:
      setCanonicalizationAlgorithm in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getCanonicalizationAlgorithm

      public URI getCanonicalizationAlgorithm()
      Specified by:
      getCanonicalizationAlgorithm in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setUseKey

      public void setUseKey(com.sun.xml.ws.security.trust.elements.UseKey useKey)
      Specified by:
      setUseKey in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getUseKey

      public com.sun.xml.ws.security.trust.elements.UseKey getUseKey()
      Specified by:
      getUseKey in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setProofEncryption

      public void setProofEncryption(com.sun.xml.ws.security.trust.elements.ProofEncryption proofEncryption)
      Specified by:
      setProofEncryption in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getProofEncryption

      public com.sun.xml.ws.security.trust.elements.ProofEncryption getProofEncryption()
      Specified by:
      getProofEncryption in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setComputedKeyAlgorithm

      public void setComputedKeyAlgorithm(URI algorithm)
      Specified by:
      setComputedKeyAlgorithm in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getComputedKeyAlgorithm

      public URI getComputedKeyAlgorithm()
      Specified by:
      getComputedKeyAlgorithm in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setEncryption

      public void setEncryption(com.sun.xml.ws.security.trust.elements.Encryption enc)
      Specified by:
      setEncryption in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getEncryption

      public com.sun.xml.ws.security.trust.elements.Encryption getEncryption()
      Specified by:
      getEncryption in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setSignWith

      public void setSignWith(URI algorithm)
      Specified by:
      setSignWith in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getSignWith

      public URI getSignWith()
      Specified by:
      getSignWith in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setEncryptWith

      public void setEncryptWith(URI algorithm)
      Specified by:
      setEncryptWith in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getEncryptWith

      public URI getEncryptWith()
      Specified by:
      getEncryptWith in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setKeyWrapAlgorithm

      public void setKeyWrapAlgorithm(URI algorithm)
      Specified by:
      setKeyWrapAlgorithm in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getKeyWrapAlgorithm

      public URI getKeyWrapAlgorithm()
      Specified by:
      getKeyWrapAlgorithm in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setDelegateTo

      public void setDelegateTo(com.sun.xml.ws.security.trust.elements.DelegateTo to)
      Specified by:
      setDelegateTo in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getDelegateTo

      public com.sun.xml.ws.security.trust.elements.DelegateTo getDelegateTo()
      Specified by:
      getDelegateTo in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setForwardable

      public void setForwardable(boolean flag)
      Specified by:
      setForwardable in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getForwardable

      public boolean getForwardable()
      Specified by:
      getForwardable in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setDelegatable

      public void setDelegatable(boolean flag)
      Specified by:
      setDelegatable in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getDelegatable

      public boolean getDelegatable()
      Specified by:
      getDelegatable in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setPolicy

      public void setPolicy(com.sun.xml.ws.policy.Policy policy)
      Specified by:
      setPolicy in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getPolicy

      public com.sun.xml.ws.policy.Policy getPolicy()
      Specified by:
      getPolicy in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setPolicyReference

      public void setPolicyReference(com.sun.xml.ws.policy.impl.bindings.PolicyReference policyRef)
      Specified by:
      setPolicyReference in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getPolicyReference

      public com.sun.xml.ws.policy.impl.bindings.PolicyReference getPolicyReference()
      Specified by:
      getPolicyReference in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • getAllowPostdating

      public com.sun.xml.ws.security.trust.elements.AllowPostdating getAllowPostdating()
      Specified by:
      getAllowPostdating in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setAllowPostdating

      public void setAllowPostdating(com.sun.xml.ws.security.trust.elements.AllowPostdating allowPostdating)
      Specified by:
      setAllowPostdating in interface com.sun.xml.ws.security.trust.elements.WSTrustElementBase
    • setSignChallengeResponse

      public void setSignChallengeResponse(com.sun.xml.ws.security.trust.elements.SignChallengeResponse challenge)
      Specified by:
      setSignChallengeResponse in interface com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse
    • getSignChallengeResponse

      public com.sun.xml.ws.security.trust.elements.SignChallengeResponse getSignChallengeResponse()
      Specified by:
      getSignChallengeResponse in interface com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse
    • setAuthenticator

      public void setAuthenticator(com.sun.xml.ws.security.trust.elements.Authenticator authenticator)
      Specified by:
      setAuthenticator in interface com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse
    • getAuthenticator

      public com.sun.xml.ws.security.trust.elements.Authenticator getAuthenticator()
      Specified by:
      getAuthenticator in interface com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse
    • setRequestedProofToken

      public void setRequestedProofToken(com.sun.xml.ws.security.trust.elements.RequestedProofToken proofToken)
      Specified by:
      setRequestedProofToken in interface com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse
    • getRequestedProofToken

      public com.sun.xml.ws.security.trust.elements.RequestedProofToken getRequestedProofToken()
      Specified by:
      getRequestedProofToken in interface com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse
    • setRequestedSecurityToken

      public void setRequestedSecurityToken(com.sun.xml.ws.security.trust.elements.RequestedSecurityToken securityToken)
      Specified by:
      setRequestedSecurityToken in interface com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse
    • getRequestedSecurityToken

      public com.sun.xml.ws.security.trust.elements.RequestedSecurityToken getRequestedSecurityToken()
      Specified by:
      getRequestedSecurityToken in interface com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse
    • setRequestedAttachedReference

      public void setRequestedAttachedReference(com.sun.xml.ws.security.trust.elements.RequestedAttachedReference reference)
      Specified by:
      setRequestedAttachedReference in interface com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse
    • getRequestedAttachedReference

      public com.sun.xml.ws.security.trust.elements.RequestedAttachedReference getRequestedAttachedReference()
      Specified by:
      getRequestedAttachedReference in interface com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse
    • setRequestedUnattachedReference

      public void setRequestedUnattachedReference(com.sun.xml.ws.security.trust.elements.RequestedUnattachedReference reference)
      Specified by:
      setRequestedUnattachedReference in interface com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse
    • getRequestedUnattachedReference

      public com.sun.xml.ws.security.trust.elements.RequestedUnattachedReference getRequestedUnattachedReference()
      Specified by:
      getRequestedUnattachedReference in interface com.sun.xml.ws.security.trust.elements.RequestSecurityTokenResponse