Class SecondaryParametersImpl
- java.lang.Object
-
- com.sun.xml.ws.security.trust.impl.wssx.bindings.SecondaryParametersType
-
- com.sun.xml.ws.security.trust.impl.wssx.elements.SecondaryParametersImpl
-
- All Implemented Interfaces:
SecondaryParameters,WSTrustElementBase
public class SecondaryParametersImpl extends SecondaryParametersType implements SecondaryParameters
Implementation of the SecondaryParameters interface.- Author:
- Jiandong Guo
-
-
Field Summary
-
Fields inherited from class com.sun.xml.ws.security.trust.impl.wssx.bindings.SecondaryParametersType
any
-
-
Constructor Summary
Constructors Constructor Description SecondaryParametersImpl()SecondaryParametersImpl(SecondaryParametersType spType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 otherwiseURIgetCanonicalizationAlgorithm()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 otherwisebooleangetDelegatable()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 tokenbooleangetForwardable()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 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 otherwiseURIgetSignatureAlgorithm()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 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 AuthenticationTypevoidsetBinaryExchange(BinaryExchange exchange)set a BinaryExchangevoidsetCanonicalizationAlgorithm(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 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 requestvoidsetSignatureAlgorithm(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 token-
Methods inherited from class com.sun.xml.ws.security.trust.impl.wssx.bindings.SecondaryParametersType
getAny
-
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.SecondaryParameters
getAny
-
-
-
-
Constructor Detail
-
SecondaryParametersImpl
public SecondaryParametersImpl()
-
SecondaryParametersImpl
public SecondaryParametersImpl(SecondaryParametersType spType) throws Exception
- Throws:
Exception
-
-
Method Detail
-
setClaims
public void setClaims(Claims claims)
Description copied from interface:SecondaryParametersSet the desired claims settings for the requested token- Specified by:
setClaimsin interfaceSecondaryParameters
-
getClaims
public Claims getClaims()
Description copied from interface:SecondaryParametersGet the desired claims settings for the token if specified, null otherwise- Specified by:
getClaimsin interfaceSecondaryParameters
-
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
-
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
-
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
-
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
-
-