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:
BaseSTSResponse,RequestSecurityTokenResponse,WSTrustElementBase
public class RequestSecurityTokenResponseImpl
extends RequestSecurityTokenResponseType
implements RequestSecurityTokenResponse
Implementation of a RequestSecurityTokenResponse.
- Author:
- Manveen Kaur
-
Field Summary
Fields inherited from class com.sun.xml.ws.security.trust.impl.wssx.bindings.RequestSecurityTokenResponseType
any, context -
Constructor Summary
ConstructorsConstructorDescriptionRequestSecurityTokenResponseImpl(URI tokenType, URI context, RequestedSecurityToken token, AppliesTo scopes, RequestedAttachedReference attached, RequestedUnattachedReference unattached, RequestedProofToken proofToken, Entropy entropy, Lifetime lifetime, Status status) -
Method Summary
Modifier and TypeMethodDescriptionGet 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.getAny()Gets the value of the any property.Get the desired AppliesTo policy settings for the token if specified, null otherwiseget Authentication Type parameter if set, null otherwiseget Authenticator if set, null otherwiseget BinaryExchange element if any, null otherwiseget CanonicalizationAlgorithm value if set, return default otherwiseget CanonicalizationAlgorithm value if set, return default otherwiseGets the value of the context property.booleanGet 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 otherwiseGets a map that contains attributes that aren't bound to any typed property on this class.Get 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 requestedAttachedReference.Get the requestedProofTokenGet the requested Security TokenGet the requestedUnattachedReference.get SignatureAlgorithm value if set, return default otherwiseget SignChallenge element if any, null otherwiseget SignChallengeResponse 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 otherwisevoidsetAllowPostdating(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 AuthenticationTypevoidsetAuthenticator(Authenticator authenticator) set an AuthenticatorvoidsetBinaryExchange(BinaryExchange exchange) set a BinaryExchangevoidsetCanonicalizationAlgorithm(URI algorithm) set CanonicalizationAlgorithmvoidsetComputedKeyAlgorithm(URI algorithm) set ComputedKeyAlgorithmvoidsetDelegatable(boolean flag) Set if the requested token be delegatablevoidset 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 forwardablevoidset 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 tokenvoidSet 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 requestvoidSet the requestedAttachedReference on the security token responsevoidsetRequestedProofToken(RequestedProofToken proofToken) Set the requestedProofToken on the security token responsevoidsetRequestedSecurityToken(RequestedSecurityToken securityToken) Set the requestedSecurityToken on the security token responsevoidvoidSet the requestedUnattachedReference on the security token responsevoidsetSignatureAlgorithm(URI algorithm) set SignatureAlgorithmvoidsetSignChallenge(SignChallenge challenge) Set a SignChallengevoidsetSignChallengeResponse(SignChallengeResponse challenge) set a SignChallengeResponsevoidsetSignWith(URI algorithm) Set the Signature Algorithm to be used with the issued tokenvoidvoidsetTokenType(URI tokenType) Set the type of security token, specified as a URI.voidSet the desired useKey settings for the requested tokenMethods inherited from class com.sun.xml.ws.security.trust.impl.wssx.bindings.RequestSecurityTokenResponseType
setContext
-
Constructor Details
-
RequestSecurityTokenResponseImpl
public RequestSecurityTokenResponseImpl() -
RequestSecurityTokenResponseImpl
public RequestSecurityTokenResponseImpl(URI tokenType, URI context, RequestedSecurityToken token, AppliesTo scopes, RequestedAttachedReference attached, RequestedUnattachedReference unattached, RequestedProofToken proofToken, Entropy entropy, Lifetime lifetime, Status status) -
RequestSecurityTokenResponseImpl
- Throws:
Exception
-
-
Method Details
-
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
-
getOtherAttributes
Description copied from class:RequestSecurityTokenResponseTypeGets 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:
getOtherAttributesin interfaceRequestSecurityTokenResponse- Overrides:
getOtherAttributesin classRequestSecurityTokenResponseType- Returns:
- always non-null
-
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
-
getRequestedTokenCancelled
- Specified by:
getRequestedTokenCancelledin interfaceRequestSecurityTokenResponse
-
setRequestedTokenCancelled
- Specified by:
setRequestedTokenCancelledin interfaceRequestSecurityTokenResponse
-
getStatus
- Specified by:
getStatusin interfaceRequestSecurityTokenResponse
-
setStatus
- Specified by:
setStatusin interfaceRequestSecurityTokenResponse
-
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
-
getAny
Description copied from class:RequestSecurityTokenResponseTypeGets 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
setmethod 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
ObjectElement- Specified by:
getAnyin interfaceRequestSecurityTokenResponse- Overrides:
getAnyin classRequestSecurityTokenResponseType
-
getContext
Description copied from class:RequestSecurityTokenResponseTypeGets the value of the context property.- Specified by:
getContextin interfaceRequestSecurityTokenResponse- Overrides:
getContextin classRequestSecurityTokenResponseType- Returns:
- possible object is
String
-
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
-
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 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 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
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
-
setSignChallengeResponse
Description copied from interface:RequestSecurityTokenResponseset a SignChallengeResponse- Specified by:
setSignChallengeResponsein interfaceRequestSecurityTokenResponse
-
getSignChallengeResponse
Description copied from interface:RequestSecurityTokenResponseget SignChallengeResponse element if any, null otherwise- Specified by:
getSignChallengeResponsein interfaceRequestSecurityTokenResponse
-
setAuthenticator
Description copied from interface:RequestSecurityTokenResponseset an Authenticator- Specified by:
setAuthenticatorin interfaceRequestSecurityTokenResponse
-
getAuthenticator
Description copied from interface:RequestSecurityTokenResponseget Authenticator if set, null otherwise- Specified by:
getAuthenticatorin interfaceRequestSecurityTokenResponse
-
setRequestedProofToken
Description copied from interface:RequestSecurityTokenResponseSet the requestedProofToken on the security token response- Specified by:
setRequestedProofTokenin interfaceRequestSecurityTokenResponse
-
getRequestedProofToken
Description copied from interface:RequestSecurityTokenResponseGet the requestedProofToken- Specified by:
getRequestedProofTokenin interfaceRequestSecurityTokenResponse- Returns:
- RequestedProofToken, null if none present
-
setRequestedSecurityToken
Description copied from interface:RequestSecurityTokenResponseSet the requestedSecurityToken on the security token response- Specified by:
setRequestedSecurityTokenin interfaceRequestSecurityTokenResponse
-
getRequestedSecurityToken
Description copied from interface:RequestSecurityTokenResponseGet the requested Security Token- Specified by:
getRequestedSecurityTokenin interfaceRequestSecurityTokenResponse- Returns:
- RequestedSecurityToken
-
setRequestedAttachedReference
Description copied from interface:RequestSecurityTokenResponseSet the requestedAttachedReference on the security token response- Specified by:
setRequestedAttachedReferencein interfaceRequestSecurityTokenResponse
-
getRequestedAttachedReference
Description copied from interface:RequestSecurityTokenResponseGet the requestedAttachedReference.- Specified by:
getRequestedAttachedReferencein interfaceRequestSecurityTokenResponse- Returns:
- RequestedAttachedReference, null if none present
-
setRequestedUnattachedReference
Description copied from interface:RequestSecurityTokenResponseSet the requestedUnattachedReference on the security token response- Specified by:
setRequestedUnattachedReferencein interfaceRequestSecurityTokenResponse
-
getRequestedUnattachedReference
Description copied from interface:RequestSecurityTokenResponseGet the requestedUnattachedReference.- Specified by:
getRequestedUnattachedReferencein interfaceRequestSecurityTokenResponse- Returns:
- RequestedUnattachedReference, null if none present
-