Class RequestSecurityTokenImpl
- java.lang.Object
-
- com.sun.xml.ws.security.trust.impl.wssx.bindings.RequestSecurityTokenType
-
- com.sun.xml.ws.security.trust.impl.wssx.elements.RequestSecurityTokenImpl
-
- All Implemented Interfaces:
BaseSTSRequest,RequestSecurityToken,WSTrustElementBase
public class RequestSecurityTokenImpl extends RequestSecurityTokenType implements RequestSecurityToken
Implementation of the RequestSecurityToken interface.- Author:
- Manveen Kaur
-
-
Field Summary
-
Fields inherited from class com.sun.xml.ws.security.trust.impl.wssx.bindings.RequestSecurityTokenType
any, context
-
-
Constructor Summary
Constructors Constructor Description RequestSecurityTokenImpl()RequestSecurityTokenImpl(RequestSecurityTokenType rstType)RequestSecurityTokenImpl(URI tokenType, URI requestType)RequestSecurityTokenImpl(URI tokenType, URI requestType, CancelTarget cancel)RequestSecurityTokenImpl(URI tokenType, URI requestType, URI context, AppliesTo scopes, Claims claims, Entropy entropy, Lifetime lt, URI algorithm)RequestSecurityTokenImpl(URI tokenType, URI requestType, URI context, RenewTarget target, AllowPostdating apd, Renewing renewingInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActAsgetActAs()AllowPostdatinggetAllowPostdating()Get the AllowPostdating element for the token if specified, null otherwise NOTE: Although this is an issue with the WSTrust spec, leaving it here for now.AppliesTogetAppliesTo()Get the desired AppliesTo policy settings for the token if specified, null otherwiseURIgetAuthenticationType()get Authentication Type parameter if set, null otherwiseBinaryExchangegetBinaryExchange()get BinaryExchange element if any, null otherwiseCancelTargetgetCancelTarget()URIgetCanonicalizationAlgorithm()get CanonicalizationAlgorithm value if set, return default otherwiseClaimsgetClaims()Get the desired claims settings for the token if specified, null otherwiseURIgetComputedKeyAlgorithm()get CanonicalizationAlgorithm value if set, return default otherwiseStringgetContext()Gets the value of the context property.booleangetDelegatable()Get the value of the Delegatable flag NOTE: default value of this flag is falseDelegateTogetDelegateTo()get the DelegateTo value if set, null otherwiseEncryptiongetEncryption()get Encryption value if set, return null otherwiseURIgetEncryptionAlgorithm()get EncryptionAlgorithm value if set, return default otherwiseURIgetEncryptWith()Get the Encryption Algorithm to be used with the token if set, null otherwiseEntropygetEntropy()Get the entropy for the requested tokenList<Object>getExtensionElements()booleangetForwardable()Get the value of the Forwardable flag NOTE: default value of this flag is trueIssuergetIssuer()get Issuer of the SecurityToken Presented in the Message, null otherwiselonggetKeySize()get the KeySize parameter if specified, 0 otherwiseURIgetKeyType()get KeyType Parameter if set, null otherwiseURIgetKeyWrapAlgorithm()get KeyWrapAlgorithm value if set, return default otherwiseLifetimegetLifetime()Get the desired LifeTime settings for the token if specified, null otherwiseOnBehalfOfgetOnBehalfOf()Get the value of OnBehalfOf for the token if specified, null otherwiseParticipantsgetParticipants()Get the participants sharing the token if specified, null otherwisePolicygetPolicy()Get the desired policy settings for the token if specified, null otherwisePolicyReferencegetPolicyReference()Get the desired policyReference settings for the token if specified, null otherwiseProofEncryptiongetProofEncryption()Get the desired proofEncryption settings for the token if specified, null otherwiseRenewinggetRenewable()get the<wst:Renewing/>element if present, null otherwiseRenewTargetgetRenewTarget()URIgetRequestType()Get the type of request, specified as a URI.SecondaryParametersgetSecondaryParameters()URIgetSignatureAlgorithm()get SignatureAlgorithm value if set, return default otherwiseSignChallengegetSignChallenge()get SignChallenge element if any, null otherwiseURIgetSignWith()Get the Signature Algorithm to be used with the token if set, null otherwiseURIgetTokenType()Get the type of security token, specified as a URI.UseKeygetUseKey()Get the desired useKey settings for the token if specified, null otherwiseValidateTargetgetValidateTarget()voidsetActAs(ActAs actAs)voidsetAllowPostdating(AllowPostdating allowPostdating)Set the desired policyReference settings for the requested tokenvoidsetAppliesTo(AppliesTo appliesTo)Set the desired policy settings for the requested tokenvoidsetAuthenticationType(URI uri)set AuthenticationTypevoidsetBinaryExchange(BinaryExchange exchange)set a BinaryExchangevoidsetCancelTarget(CancelTarget cTarget)voidsetCanonicalizationAlgorithm(URI algorithm)set CanonicalizationAlgorithmvoidsetClaims(Claims claims)Set the desired claims settings for the requested tokenvoidsetComputedKeyAlgorithm(URI algorithm)set ComputedKeyAlgorithmvoidsetDelegatable(boolean flag)Set if the requested token be delegatablevoidsetDelegateTo(DelegateTo to)set the Delegate to which the issued token be delegatedvoidsetEncryption(Encryption enc)set EncryptionvoidsetEncryptionAlgorithm(URI algorithm)set EncryptionAlgorithmvoidsetEncryptWith(URI algorithm)Set the Encryption Algorithm to be used with the issued tokenvoidsetEntropy(Entropy entropy)Set the entropy for the requested tokenvoidsetForwardable(boolean flag)Set if the requested token be forwardablevoidsetIssuer(Issuer issuer)set Issuer of the SecurityToken Presented in the messagevoidsetKeySize(long size)set the KeySize parametervoidsetKeyType(URI keytype)set KeyType parametervoidsetKeyWrapAlgorithm(URI algorithm)set KeyWrapAlgorithmvoidsetLifetime(Lifetime lifetime)Set the desired lifetime settings for the requested tokenvoidsetOnBehalfOf(OnBehalfOf onBehalfOf)Set the value of OnBehalfOf for the requested tokenvoidsetParticipants(Participants participants)Set the Participants Sharing the requested TokenvoidsetPolicy(Policy policy)Set the desired policy settings for the requested tokenvoidsetPolicyReference(PolicyReference policyRef)Set the desired policyReference settings for the requested tokenvoidsetProofEncryption(ProofEncryption proofEncryption)Set the desired proofEncryption settings for the requested tokenvoidsetRenewable(Renewing renew)set a<wst:Renewing/>element to make a renewable Issue requestvoidsetRenewTarget(RenewTarget target)voidsetRequestType(URI requestType)Set the type of request, specified as a URI.voidsetSecondaryParameters(SecondaryParameters sp)voidsetSignatureAlgorithm(URI algorithm)set SignatureAlgorithmvoidsetSignChallenge(SignChallenge challenge)Set a SignChallengevoidsetSignWith(URI algorithm)Set the Signature Algorithm to be used with the issued tokenvoidsetTokenType(URI tokenType)Set the type of security token, specified as a URI.voidsetUseKey(UseKey useKey)Set the desired useKey settings for the requested tokenvoidsetValidateTarget(ValidateTarget target)-
Methods inherited from class com.sun.xml.ws.security.trust.impl.wssx.bindings.RequestSecurityTokenType
getAny, getOtherAttributes, setContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.xml.ws.security.trust.elements.RequestSecurityToken
getAny, getOtherAttributes
-
-
-
-
Constructor Detail
-
RequestSecurityTokenImpl
public RequestSecurityTokenImpl()
-
RequestSecurityTokenImpl
public RequestSecurityTokenImpl(URI tokenType, URI requestType, URI context, AppliesTo scopes, Claims claims, Entropy entropy, Lifetime lt, URI algorithm)
-
RequestSecurityTokenImpl
public RequestSecurityTokenImpl(URI tokenType, URI requestType, URI context, RenewTarget target, AllowPostdating apd, Renewing renewingInfo)
-
RequestSecurityTokenImpl
public RequestSecurityTokenImpl(URI tokenType, URI requestType, CancelTarget cancel)
-
RequestSecurityTokenImpl
public RequestSecurityTokenImpl(RequestSecurityTokenType rstType) throws Exception
- Throws:
Exception
-
-
Method Detail
-
getContext
public String getContext()
Description copied from class:RequestSecurityTokenTypeGets the value of the context property.- Specified by:
getContextin interfaceRequestSecurityToken- Overrides:
getContextin classRequestSecurityTokenType- Returns:
- possible object is
String
-
setClaims
public void setClaims(Claims claims)
Description copied from interface:RequestSecurityTokenSet the desired claims settings for the requested token- Specified by:
setClaimsin interfaceRequestSecurityToken
-
getClaims
public Claims getClaims()
Description copied from interface:RequestSecurityTokenGet the desired claims settings for the token if specified, null otherwise- Specified by:
getClaimsin interfaceRequestSecurityToken
-
setCancelTarget
public void setCancelTarget(CancelTarget cTarget)
- Specified by:
setCancelTargetin interfaceRequestSecurityToken
-
getCancelTarget
public CancelTarget getCancelTarget()
- Specified by:
getCancelTargetin interfaceRequestSecurityToken
-
setRenewTarget
public void setRenewTarget(RenewTarget target)
- Specified by:
setRenewTargetin interfaceRequestSecurityToken
-
getRenewTarget
public RenewTarget getRenewTarget()
- Specified by:
getRenewTargetin interfaceRequestSecurityToken
-
setValidateTarget
public final void setValidateTarget(ValidateTarget target)
- Specified by:
setValidateTargetin interfaceRequestSecurityToken
-
getValidateTarget
public ValidateTarget getValidateTarget()
- Specified by:
getValidateTargetin interfaceRequestSecurityToken
-
setParticipants
public void setParticipants(Participants participants)
Description copied from interface:RequestSecurityTokenSet the Participants Sharing the requested Token- Specified by:
setParticipantsin interfaceRequestSecurityToken
-
getParticipants
public Participants getParticipants()
Description copied from interface:RequestSecurityTokenGet the participants sharing the token if specified, null otherwise- Specified by:
getParticipantsin interfaceRequestSecurityToken
-
getTokenType
public URI getTokenType()
Description copied from interface:WSTrustElementBaseGet the type of security token, specified as a URI.- Specified by:
getTokenTypein interfaceWSTrustElementBase- Returns:
URI
-
setTokenType
public void setTokenType(URI tokenType)
Description copied from interface:WSTrustElementBaseSet the type of security token, specified as a URI.- Specified by:
setTokenTypein interfaceWSTrustElementBase- Parameters:
tokenType-URI
-
getRequestType
public URI getRequestType()
Description copied from interface:RequestSecurityTokenGet the type of request, specified as a URI. The URI indicates the class of function that is requested.- Specified by:
getRequestTypein interfaceRequestSecurityToken- Returns:
URI
-
setRequestType
public void setRequestType(URI requestType)
Description copied from interface:RequestSecurityTokenSet the type of request, specified as a URI.- Specified by:
setRequestTypein interfaceRequestSecurityToken- Parameters:
requestType-URI
-
getLifetime
public Lifetime getLifetime()
Description copied from interface:WSTrustElementBaseGet the desired LifeTime settings for the token if specified, null otherwise- Specified by:
getLifetimein interfaceWSTrustElementBase
-
setLifetime
public void setLifetime(Lifetime lifetime)
Description copied from interface:WSTrustElementBaseSet the desired lifetime settings for the requested token- Specified by:
setLifetimein interfaceWSTrustElementBase
-
getSecondaryParameters
public SecondaryParameters getSecondaryParameters()
- Specified by:
getSecondaryParametersin interfaceRequestSecurityToken
-
setSecondaryParameters
public void setSecondaryParameters(SecondaryParameters sp)
- Specified by:
setSecondaryParametersin interfaceRequestSecurityToken
-
getEntropy
public Entropy getEntropy()
Description copied from interface:WSTrustElementBaseGet the entropy for the requested token- Specified by:
getEntropyin interfaceWSTrustElementBase- Returns:
Entropy
-
setEntropy
public void setEntropy(Entropy entropy)
Description copied from interface:WSTrustElementBaseSet the entropy for the requested token- Specified by:
setEntropyin interfaceWSTrustElementBase- Parameters:
entropy-Entropy
-
setAppliesTo
public void setAppliesTo(AppliesTo appliesTo)
Description copied from interface:WSTrustElementBaseSet the desired policy settings for the requested token- Specified by:
setAppliesToin interfaceWSTrustElementBase- Parameters:
appliesTo-AppliesTo
-
getAppliesTo
public AppliesTo getAppliesTo()
Description copied from interface:WSTrustElementBaseGet the desired AppliesTo policy settings for the token if specified, null otherwise- Specified by:
getAppliesToin interfaceWSTrustElementBase- Returns:
AppliesTo
-
setOnBehalfOf
public void setOnBehalfOf(OnBehalfOf onBehalfOf)
Description copied from interface:WSTrustElementBaseSet the value of OnBehalfOf for the requested token- Specified by:
setOnBehalfOfin interfaceWSTrustElementBase- Parameters:
onBehalfOf-OnBehalfOf
-
getOnBehalfOf
public OnBehalfOf getOnBehalfOf()
Description copied from interface:WSTrustElementBaseGet the value of OnBehalfOf for the token if specified, null otherwise- Specified by:
getOnBehalfOfin interfaceWSTrustElementBase- Returns:
OnBehalfOf
-
setActAs
public void setActAs(ActAs actAs)
- Specified by:
setActAsin interfaceRequestSecurityToken
-
getActAs
public ActAs getActAs()
- Specified by:
getActAsin interfaceRequestSecurityToken
-
setIssuer
public void setIssuer(Issuer issuer)
Description copied from interface:WSTrustElementBaseset Issuer of the SecurityToken Presented in the message- Specified by:
setIssuerin interfaceWSTrustElementBase
-
getIssuer
public Issuer getIssuer()
Description copied from interface:WSTrustElementBaseget Issuer of the SecurityToken Presented in the Message, null otherwise- Specified by:
getIssuerin interfaceWSTrustElementBase
-
setRenewable
public void setRenewable(Renewing renew)
Description copied from interface:WSTrustElementBaseset a<wst:Renewing/>element to make a renewable Issue request- Specified by:
setRenewablein interfaceWSTrustElementBase
-
getRenewable
public Renewing getRenewable()
Description copied from interface:WSTrustElementBaseget the<wst:Renewing/>element if present, null otherwise- Specified by:
getRenewablein interfaceWSTrustElementBase
-
setSignChallenge
public void setSignChallenge(SignChallenge challenge)
Description copied from interface:WSTrustElementBaseSet a SignChallenge- Specified by:
setSignChallengein interfaceWSTrustElementBase
-
getSignChallenge
public SignChallenge getSignChallenge()
Description copied from interface:WSTrustElementBaseget SignChallenge element if any, null otherwise- Specified by:
getSignChallengein interfaceWSTrustElementBase
-
setBinaryExchange
public void setBinaryExchange(BinaryExchange exchange)
Description copied from interface:WSTrustElementBaseset a BinaryExchange- Specified by:
setBinaryExchangein interfaceWSTrustElementBase
-
getBinaryExchange
public BinaryExchange getBinaryExchange()
Description copied from interface:WSTrustElementBaseget BinaryExchange element if any, null otherwise- Specified by:
getBinaryExchangein interfaceWSTrustElementBase
-
setAuthenticationType
public void setAuthenticationType(URI uri)
Description copied from interface:WSTrustElementBaseset AuthenticationType- Specified by:
setAuthenticationTypein interfaceWSTrustElementBase
-
getAuthenticationType
public URI getAuthenticationType()
Description copied from interface:WSTrustElementBaseget Authentication Type parameter if set, null otherwise- Specified by:
getAuthenticationTypein interfaceWSTrustElementBase
-
setKeyType
public void setKeyType(URI keytype) throws WSTrustException
Description copied from interface:WSTrustElementBaseset KeyType parameter- Specified by:
setKeyTypein interfaceWSTrustElementBase- Throws:
WSTrustException
-
getKeyType
public URI getKeyType()
Description copied from interface:WSTrustElementBaseget KeyType Parameter if set, null otherwise- Specified by:
getKeyTypein interfaceWSTrustElementBase
-
setKeySize
public void setKeySize(long size)
Description copied from interface:WSTrustElementBaseset the KeySize parameter- Specified by:
setKeySizein interfaceWSTrustElementBase
-
getKeySize
public long getKeySize()
Description copied from interface:WSTrustElementBaseget the KeySize parameter if specified, 0 otherwise- Specified by:
getKeySizein interfaceWSTrustElementBase
-
setSignatureAlgorithm
public void setSignatureAlgorithm(URI algorithm)
Description copied from interface:WSTrustElementBaseset SignatureAlgorithm- Specified by:
setSignatureAlgorithmin interfaceWSTrustElementBase
-
getSignatureAlgorithm
public URI getSignatureAlgorithm()
Description copied from interface:WSTrustElementBaseget SignatureAlgorithm value if set, return default otherwise- Specified by:
getSignatureAlgorithmin interfaceWSTrustElementBase
-
setEncryptionAlgorithm
public void setEncryptionAlgorithm(URI algorithm)
Description copied from interface:WSTrustElementBaseset EncryptionAlgorithm- Specified by:
setEncryptionAlgorithmin interfaceWSTrustElementBase
-
getEncryptionAlgorithm
public URI getEncryptionAlgorithm()
Description copied from interface:WSTrustElementBaseget EncryptionAlgorithm value if set, return default otherwise- Specified by:
getEncryptionAlgorithmin interfaceWSTrustElementBase
-
setCanonicalizationAlgorithm
public void setCanonicalizationAlgorithm(URI algorithm)
Description copied from interface:WSTrustElementBaseset CanonicalizationAlgorithm- Specified by:
setCanonicalizationAlgorithmin interfaceWSTrustElementBase
-
getCanonicalizationAlgorithm
public URI getCanonicalizationAlgorithm()
Description copied from interface:WSTrustElementBaseget CanonicalizationAlgorithm value if set, return default otherwise- Specified by:
getCanonicalizationAlgorithmin interfaceWSTrustElementBase
-
setUseKey
public void setUseKey(UseKey useKey)
Description copied from interface:WSTrustElementBaseSet the desired useKey settings for the requested token- Specified by:
setUseKeyin interfaceWSTrustElementBase
-
getUseKey
public UseKey getUseKey()
Description copied from interface:WSTrustElementBaseGet the desired useKey settings for the token if specified, null otherwise- Specified by:
getUseKeyin interfaceWSTrustElementBase
-
setProofEncryption
public void setProofEncryption(ProofEncryption proofEncryption)
Description copied from interface:WSTrustElementBaseSet the desired proofEncryption settings for the requested token- Specified by:
setProofEncryptionin interfaceWSTrustElementBase
-
getProofEncryption
public ProofEncryption getProofEncryption()
Description copied from interface:WSTrustElementBaseGet the desired proofEncryption settings for the token if specified, null otherwise- Specified by:
getProofEncryptionin interfaceWSTrustElementBase
-
setComputedKeyAlgorithm
public void setComputedKeyAlgorithm(URI algorithm)
Description copied from interface:WSTrustElementBaseset ComputedKeyAlgorithm- Specified by:
setComputedKeyAlgorithmin interfaceWSTrustElementBase
-
getComputedKeyAlgorithm
public URI getComputedKeyAlgorithm()
Description copied from interface:WSTrustElementBaseget CanonicalizationAlgorithm value if set, return default otherwise- Specified by:
getComputedKeyAlgorithmin interfaceWSTrustElementBase
-
setEncryption
public void setEncryption(Encryption enc)
Description copied from interface:WSTrustElementBaseset Encryption- Specified by:
setEncryptionin interfaceWSTrustElementBase
-
getEncryption
public Encryption getEncryption()
Description copied from interface:WSTrustElementBaseget Encryption value if set, return null otherwise- Specified by:
getEncryptionin interfaceWSTrustElementBase
-
setSignWith
public void setSignWith(URI algorithm)
Description copied from interface:WSTrustElementBaseSet the Signature Algorithm to be used with the issued token- Specified by:
setSignWithin interfaceWSTrustElementBase
-
getSignWith
public URI getSignWith()
Description copied from interface:WSTrustElementBaseGet the Signature Algorithm to be used with the token if set, null otherwise- Specified by:
getSignWithin interfaceWSTrustElementBase
-
setEncryptWith
public void setEncryptWith(URI algorithm)
Description copied from interface:WSTrustElementBaseSet the Encryption Algorithm to be used with the issued token- Specified by:
setEncryptWithin interfaceWSTrustElementBase
-
getEncryptWith
public URI getEncryptWith()
Description copied from interface:WSTrustElementBaseGet the Encryption Algorithm to be used with the token if set, null otherwise- Specified by:
getEncryptWithin interfaceWSTrustElementBase
-
setKeyWrapAlgorithm
public void setKeyWrapAlgorithm(URI algorithm)
Description copied from interface:WSTrustElementBaseset KeyWrapAlgorithm- Specified by:
setKeyWrapAlgorithmin interfaceWSTrustElementBase
-
getKeyWrapAlgorithm
public URI getKeyWrapAlgorithm()
Description copied from interface:WSTrustElementBaseget KeyWrapAlgorithm value if set, return default otherwise- Specified by:
getKeyWrapAlgorithmin interfaceWSTrustElementBase
-
setDelegateTo
public void setDelegateTo(DelegateTo to)
Description copied from interface:WSTrustElementBaseset the Delegate to which the issued token be delegated- Specified by:
setDelegateToin interfaceWSTrustElementBase
-
getDelegateTo
public DelegateTo getDelegateTo()
Description copied from interface:WSTrustElementBaseget the DelegateTo value if set, null otherwise- Specified by:
getDelegateToin interfaceWSTrustElementBase
-
setForwardable
public void setForwardable(boolean flag)
Description copied from interface:WSTrustElementBaseSet if the requested token be forwardable- Specified by:
setForwardablein interfaceWSTrustElementBase
-
getForwardable
public boolean getForwardable()
Description copied from interface:WSTrustElementBaseGet the value of the Forwardable flag NOTE: default value of this flag is true- Specified by:
getForwardablein interfaceWSTrustElementBase
-
setDelegatable
public void setDelegatable(boolean flag)
Description copied from interface:WSTrustElementBaseSet if the requested token be delegatable- Specified by:
setDelegatablein interfaceWSTrustElementBase
-
getDelegatable
public boolean getDelegatable()
Description copied from interface:WSTrustElementBaseGet the value of the Delegatable flag NOTE: default value of this flag is false- Specified by:
getDelegatablein interfaceWSTrustElementBase
-
setPolicy
public void setPolicy(Policy policy)
Description copied from interface:WSTrustElementBaseSet the desired policy settings for the requested token- Specified by:
setPolicyin interfaceWSTrustElementBase
-
getPolicy
public Policy getPolicy()
Description copied from interface:WSTrustElementBaseGet the desired policy settings for the token if specified, null otherwise- Specified by:
getPolicyin interfaceWSTrustElementBase
-
setPolicyReference
public void setPolicyReference(PolicyReference policyRef)
Description copied from interface:WSTrustElementBaseSet the desired policyReference settings for the requested token- Specified by:
setPolicyReferencein interfaceWSTrustElementBase
-
getPolicyReference
public PolicyReference getPolicyReference()
Description copied from interface:WSTrustElementBaseGet the desired policyReference settings for the token if specified, null otherwise- Specified by:
getPolicyReferencein interfaceWSTrustElementBase
-
getAllowPostdating
public AllowPostdating getAllowPostdating()
Description copied from interface:WSTrustElementBaseGet the AllowPostdating element for the token if specified, null otherwise NOTE: Although this is an issue with the WSTrust spec, leaving it here for now. This can be removed or modified later depending on the outcome of the issue.- Specified by:
getAllowPostdatingin interfaceWSTrustElementBase
-
setAllowPostdating
public void setAllowPostdating(AllowPostdating allowPostdating)
Description copied from interface:WSTrustElementBaseSet the desired policyReference settings for the requested token- Specified by:
setAllowPostdatingin interfaceWSTrustElementBase
-
getExtensionElements
public List<Object> getExtensionElements()
- Specified by:
getExtensionElementsin interfaceRequestSecurityToken
-
-