Class RequestSecurityTokenImpl
java.lang.Object
com.sun.xml.ws.security.trust.impl.bindings.RequestSecurityTokenType
com.sun.xml.ws.security.trust.impl.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.bindings.RequestSecurityTokenType
any, context -
Constructor Summary
ConstructorsConstructorDescriptionRequestSecurityTokenImpl(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 lifetime, URI algorithm) RequestSecurityTokenImpl(URI tokenType, URI requestType, URI context, RenewTarget target, AllowPostdating apd, Renewing renewingInfo) -
Method Summary
Modifier and TypeMethodDescriptiongetActAs()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.Get the desired AppliesTo policy settings for the token if specified, null otherwiseget Authentication Type parameter if set, null otherwiseget BinaryExchange element if any, null otherwiseget CanonicalizationAlgorithm value if set, return default otherwiseGet the desired claims settings for the token if specified, null otherwiseget CanonicalizationAlgorithm value if set, return default otherwisebooleanGet the value of the Delegatable flag NOTE: default value of this flag is falseget the DelegateTo value if set, null otherwiseget Encryption value if set, return null otherwiseget EncryptionAlgorithm value if set, return default otherwiseGet the Encryption Algorithm to be used with the token if set, null otherwiseGet the entropy for the requested tokenbooleanGet the value of the Forwardable flag NOTE: default value of this flag is trueget Issuer of the SecurityToken Presented in the Message, null otherwiselongget the KeySize parameter if specified, 0 otherwiseget KeyType Parameter if set, null otherwiseget KeyWrapAlgorithm value if set, return default otherwiseGet the desired LifeTime settings for the token if specified, null otherwiseGet the value of OnBehalfOf for the token if specified, null otherwiseGet the participants sharing the token if specified, null otherwiseGet the desired policy settings for the token if specified, null otherwiseGet the desired policyReference settings for the token if specified, null otherwiseGet the desired proofEncryption settings for the token if specified, null otherwiseget the<wst:Renewing/>element if present, null otherwiseGet the type of request, specified as a URI.get SignatureAlgorithm value if set, return default otherwiseget SignChallenge element if any, null otherwiseGet the Signature Algorithm to be used with the token if set, null otherwiseGet the type of security token, specified as a URI.Get the desired useKey settings for the token if specified, null otherwisevoidfinal voidsetAllowPostdating(AllowPostdating allowPostdating) Set the desired policyReference settings for the requested tokenfinal voidsetAppliesTo(AppliesTo appliesTo) Set the desired policy settings for the requested tokenfinal voidsetAuthenticationType(URI uri) set AuthenticationTypefinal voidsetBinaryExchange(BinaryExchange exchange) set a BinaryExchangefinal voidsetCancelTarget(CancelTarget cTarget) final voidsetCanonicalizationAlgorithm(URI algorithm) set CanonicalizationAlgorithmfinal voidSet the desired claims settings for the requested tokenfinal voidsetComputedKeyAlgorithm(URI algorithm) set ComputedKeyAlgorithmfinal voidsetDelegatable(boolean flag) Set if the requested token be delegatablefinal voidsetDelegateTo(DelegateTo delegateTo) set the Delegate to which the issued token be delegatedfinal voidsetEncryption(Encryption enc) set Encryptionfinal voidsetEncryptionAlgorithm(URI algorithm) set EncryptionAlgorithmfinal voidsetEncryptWith(URI algorithm) Set the Encryption Algorithm to be used with the issued tokenfinal voidsetEntropy(Entropy entropy) Set the entropy for the requested tokenfinal voidsetForwardable(boolean flag) Set if the requested token be forwardablefinal voidset Issuer of the SecurityToken Presented in the messagefinal voidsetKeySize(long size) set the KeySize parameterfinal voidsetKeyType(URI keytype) set KeyType parametervoidsetKeyWrapAlgorithm(URI algorithm) set KeyWrapAlgorithmfinal voidsetLifetime(Lifetime lifetime) Set the desired lifetime settings for the requested tokenfinal voidsetOnBehalfOf(OnBehalfOf onBehalfOf) Set the value of OnBehalfOf for the requested tokenfinal voidsetParticipants(Participants participants) Set the Participants Sharing the requested Tokenfinal voidSet the desired policy settings for the requested tokenfinal voidsetPolicyReference(PolicyReference policyRef) Set the desired policyReference settings for the requested tokenfinal voidsetProofEncryption(ProofEncryption proofEncryption) Set the desired proofEncryption settings for the requested tokenfinal voidsetRenewable(Renewing renew) set a<wst:Renewing/>element to make a renewable Issue requestfinal voidsetRenewTarget(RenewTarget target) final voidsetRequestType(URI requestType) Set the type of request, specified as a URI.voidfinal voidsetSignatureAlgorithm(URI algorithm) set SignatureAlgorithmfinal voidsetSignChallenge(SignChallenge challenge) Set a SignChallengefinal voidsetSignWith(URI algorithm) Set the Signature Algorithm to be used with the issued tokenfinal voidsetTokenType(URI tokenType) Set the type of security token, specified as a URI.final voidSet the desired useKey settings for the requested tokenfinal voidsetValidateTarget(ValidateTarget target) Methods inherited from class com.sun.xml.ws.security.trust.impl.bindings.RequestSecurityTokenType
getAny, getContext, getOtherAttributes, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sun.xml.ws.security.trust.elements.RequestSecurityToken
getAny, getContext, getOtherAttributes
-
Constructor Details
-
RequestSecurityTokenImpl
public RequestSecurityTokenImpl() -
RequestSecurityTokenImpl
-
RequestSecurityTokenImpl
-
RequestSecurityTokenImpl
public RequestSecurityTokenImpl(URI tokenType, URI requestType, URI context, RenewTarget target, AllowPostdating apd, Renewing renewingInfo) -
RequestSecurityTokenImpl
-
RequestSecurityTokenImpl
public RequestSecurityTokenImpl(RequestSecurityTokenType rstType) throws URISyntaxException, WSTrustException - Throws:
URISyntaxExceptionWSTrustException
-
-
Method Details
-
setClaims
Description copied from interface:RequestSecurityTokenSet the desired claims settings for the requested token- Specified by:
setClaimsin interfaceRequestSecurityToken
-
getClaims
Description copied from interface:RequestSecurityTokenGet the desired claims settings for the token if specified, null otherwise- Specified by:
getClaimsin interfaceRequestSecurityToken
-
setCancelTarget
- Specified by:
setCancelTargetin interfaceRequestSecurityToken
-
getCancelTarget
- Specified by:
getCancelTargetin interfaceRequestSecurityToken
-
setRenewTarget
- Specified by:
setRenewTargetin interfaceRequestSecurityToken
-
getRenewTarget
- Specified by:
getRenewTargetin interfaceRequestSecurityToken
-
setValidateTarget
- Specified by:
setValidateTargetin interfaceRequestSecurityToken
-
getValidateTarget
- Specified by:
getValidateTargetin interfaceRequestSecurityToken
-
setParticipants
Description copied from interface:RequestSecurityTokenSet the Participants Sharing the requested Token- Specified by:
setParticipantsin interfaceRequestSecurityToken
-
getParticipants
Description copied from interface:RequestSecurityTokenGet the participants sharing the token if specified, null otherwise- Specified by:
getParticipantsin interfaceRequestSecurityToken
-
getTokenType
Description copied from interface:WSTrustElementBaseGet the type of security token, specified as a URI.- Specified by:
getTokenTypein interfaceWSTrustElementBase- Returns:
URI
-
setTokenType
Description copied from interface:WSTrustElementBaseSet the type of security token, specified as a URI.- Specified by:
setTokenTypein interfaceWSTrustElementBase- Parameters:
tokenType-URI
-
setSecondaryParameters
- Specified by:
setSecondaryParametersin interfaceRequestSecurityToken
-
getSecondaryParameters
- Specified by:
getSecondaryParametersin interfaceRequestSecurityToken
-
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
Description copied from interface:RequestSecurityTokenSet the type of request, specified as a URI.- Specified by:
setRequestTypein interfaceRequestSecurityToken- Parameters:
requestType-URI
-
getLifetime
Description copied from interface:WSTrustElementBaseGet the desired LifeTime settings for the token if specified, null otherwise- Specified by:
getLifetimein interfaceWSTrustElementBase
-
setLifetime
Description copied from interface:WSTrustElementBaseSet the desired lifetime settings for the requested token- Specified by:
setLifetimein interfaceWSTrustElementBase
-
getEntropy
Description copied from interface:WSTrustElementBaseGet the entropy for the requested token- Specified by:
getEntropyin interfaceWSTrustElementBase- Returns:
Entropy
-
setEntropy
Description copied from interface:WSTrustElementBaseSet the entropy for the requested token- Specified by:
setEntropyin interfaceWSTrustElementBase- Parameters:
entropy-Entropy
-
setAppliesTo
Description copied from interface:WSTrustElementBaseSet the desired policy settings for the requested token- Specified by:
setAppliesToin interfaceWSTrustElementBase- Parameters:
appliesTo-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
Description copied from interface:WSTrustElementBaseSet the value of OnBehalfOf for the requested token- Specified by:
setOnBehalfOfin interfaceWSTrustElementBase- Parameters:
onBehalfOf-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
- Specified by:
setActAsin interfaceRequestSecurityToken
-
getActAs
- Specified by:
getActAsin interfaceRequestSecurityToken
-
setIssuer
Description copied from interface:WSTrustElementBaseset Issuer of the SecurityToken Presented in the message- Specified by:
setIssuerin interfaceWSTrustElementBase
-
getIssuer
Description copied from interface:WSTrustElementBaseget Issuer of the SecurityToken Presented in the Message, null otherwise- Specified by:
getIssuerin interfaceWSTrustElementBase
-
setRenewable
Description copied from interface:WSTrustElementBaseset a<wst:Renewing/>element to make a renewable Issue request- Specified by:
setRenewablein interfaceWSTrustElementBase
-
getRenewable
Description copied from interface:WSTrustElementBaseget the<wst:Renewing/>element if present, null otherwise- Specified by:
getRenewablein interfaceWSTrustElementBase
-
setSignChallenge
Description copied from interface:WSTrustElementBaseSet a SignChallenge- Specified by:
setSignChallengein interfaceWSTrustElementBase
-
getSignChallenge
Description copied from interface:WSTrustElementBaseget SignChallenge element if any, null otherwise- Specified by:
getSignChallengein interfaceWSTrustElementBase
-
setBinaryExchange
Description copied from interface:WSTrustElementBaseset a BinaryExchange- Specified by:
setBinaryExchangein interfaceWSTrustElementBase
-
getBinaryExchange
Description copied from interface:WSTrustElementBaseget BinaryExchange element if any, null otherwise- Specified by:
getBinaryExchangein interfaceWSTrustElementBase
-
setAuthenticationType
Description copied from interface:WSTrustElementBaseset AuthenticationType- Specified by:
setAuthenticationTypein interfaceWSTrustElementBase
-
getAuthenticationType
Description copied from interface:WSTrustElementBaseget Authentication Type parameter if set, null otherwise- Specified by:
getAuthenticationTypein interfaceWSTrustElementBase
-
setKeyType
Description copied from interface:WSTrustElementBaseset KeyType parameter- Specified by:
setKeyTypein interfaceWSTrustElementBase- Throws:
WSTrustException
-
getKeyType
Description copied from interface:WSTrustElementBaseget KeyType Parameter if set, null otherwise- Specified by:
getKeyTypein interfaceWSTrustElementBase
-
setKeySize
public final 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
Description copied from interface:WSTrustElementBaseset SignatureAlgorithm- Specified by:
setSignatureAlgorithmin interfaceWSTrustElementBase
-
getSignatureAlgorithm
Description copied from interface:WSTrustElementBaseget SignatureAlgorithm value if set, return default otherwise- Specified by:
getSignatureAlgorithmin interfaceWSTrustElementBase
-
setEncryptionAlgorithm
Description copied from interface:WSTrustElementBaseset EncryptionAlgorithm- Specified by:
setEncryptionAlgorithmin interfaceWSTrustElementBase
-
getEncryptionAlgorithm
Description copied from interface:WSTrustElementBaseget EncryptionAlgorithm value if set, return default otherwise- Specified by:
getEncryptionAlgorithmin interfaceWSTrustElementBase
-
setCanonicalizationAlgorithm
Description copied from interface:WSTrustElementBaseset CanonicalizationAlgorithm- Specified by:
setCanonicalizationAlgorithmin interfaceWSTrustElementBase
-
getCanonicalizationAlgorithm
Description copied from interface:WSTrustElementBaseget CanonicalizationAlgorithm value if set, return default otherwise- Specified by:
getCanonicalizationAlgorithmin interfaceWSTrustElementBase
-
setUseKey
Description copied from interface:WSTrustElementBaseSet the desired useKey settings for the requested token- Specified by:
setUseKeyin interfaceWSTrustElementBase
-
getUseKey
Description copied from interface:WSTrustElementBaseGet the desired useKey settings for the token if specified, null otherwise- Specified by:
getUseKeyin interfaceWSTrustElementBase
-
setProofEncryption
Description copied from interface:WSTrustElementBaseSet the desired proofEncryption settings for the requested token- Specified by:
setProofEncryptionin interfaceWSTrustElementBase
-
getProofEncryption
Description copied from interface:WSTrustElementBaseGet the desired proofEncryption settings for the token if specified, null otherwise- Specified by:
getProofEncryptionin interfaceWSTrustElementBase
-
setComputedKeyAlgorithm
Description copied from interface:WSTrustElementBaseset ComputedKeyAlgorithm- Specified by:
setComputedKeyAlgorithmin interfaceWSTrustElementBase
-
getComputedKeyAlgorithm
Description copied from interface:WSTrustElementBaseget CanonicalizationAlgorithm value if set, return default otherwise- Specified by:
getComputedKeyAlgorithmin interfaceWSTrustElementBase
-
setEncryption
Description copied from interface:WSTrustElementBaseset Encryption- Specified by:
setEncryptionin interfaceWSTrustElementBase
-
getEncryption
Description copied from interface:WSTrustElementBaseget Encryption value if set, return null otherwise- Specified by:
getEncryptionin interfaceWSTrustElementBase
-
setSignWith
Description copied from interface:WSTrustElementBaseSet the Signature Algorithm to be used with the issued token- Specified by:
setSignWithin interfaceWSTrustElementBase
-
getSignWith
Description copied from interface:WSTrustElementBaseGet the Signature Algorithm to be used with the token if set, null otherwise- Specified by:
getSignWithin interfaceWSTrustElementBase
-
setEncryptWith
Description copied from interface:WSTrustElementBaseSet the Encryption Algorithm to be used with the issued token- Specified by:
setEncryptWithin interfaceWSTrustElementBase
-
getEncryptWith
Description copied from interface:WSTrustElementBaseGet the Encryption Algorithm to be used with the token if set, null otherwise- Specified by:
getEncryptWithin interfaceWSTrustElementBase
-
setKeyWrapAlgorithm
Description copied from interface:WSTrustElementBaseset KeyWrapAlgorithm- Specified by:
setKeyWrapAlgorithmin interfaceWSTrustElementBase
-
getKeyWrapAlgorithm
Description copied from interface:WSTrustElementBaseget KeyWrapAlgorithm value if set, return default otherwise- Specified by:
getKeyWrapAlgorithmin interfaceWSTrustElementBase
-
setDelegateTo
Description copied from interface:WSTrustElementBaseset the Delegate to which the issued token be delegated- Specified by:
setDelegateToin interfaceWSTrustElementBase
-
getDelegateTo
Description copied from interface:WSTrustElementBaseget the DelegateTo value if set, null otherwise- Specified by:
getDelegateToin interfaceWSTrustElementBase
-
setForwardable
public final 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 final 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
Description copied from interface:WSTrustElementBaseSet the desired policy settings for the requested token- Specified by:
setPolicyin interfaceWSTrustElementBase
-
getPolicy
Description copied from interface:WSTrustElementBaseGet the desired policy settings for the token if specified, null otherwise- Specified by:
getPolicyin interfaceWSTrustElementBase
-
setPolicyReference
Description copied from interface:WSTrustElementBaseSet the desired policyReference settings for the requested token- Specified by:
setPolicyReferencein interfaceWSTrustElementBase
-
getPolicyReference
Description copied from interface:WSTrustElementBaseGet the desired policyReference settings for the token if specified, null otherwise- Specified by:
getPolicyReferencein interfaceWSTrustElementBase
-
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
Description copied from interface:WSTrustElementBaseSet the desired policyReference settings for the requested token- Specified by:
setAllowPostdatingin interfaceWSTrustElementBase
-
getExtensionElements
- Specified by:
getExtensionElementsin interfaceRequestSecurityToken
-