Package com.sun.xml.wss.impl.policy.mls
Class SignatureTarget
java.lang.Object
com.sun.xml.wss.impl.policy.mls.Target
com.sun.xml.wss.impl.policy.mls.SignatureTarget
- All Implemented Interfaces:
Cloneable
Objects of this class represent a Signature Target that can be part of
the FeatureBinding for a SignaturePolicy (refer SignaturePolicy.FeatureBinding).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class represents a Transform that can appear on a SignatureTarget. -
Field Summary
Fields inherited from class com.sun.xml.wss.impl.policy.mls.Target
ALL_MESSAGE_HEADERS, BODY, BODY_QNAME, BODY1_2, SIGNATURE_CONFIRMATION, TARGET_TYPE_VALUE_QNAME, TARGET_TYPE_VALUE_URI, TARGET_TYPE_VALUE_XPATH, TARGET_VALUE_SOAP_BODY -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorSignatureTarget(Target target) Constructor that takes a TargetSignatureTarget(String digest, String transform) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTransform(SignatureTarget.Transform transform) Add a Transform for this Targetclone()clone operatorbooleanequals(SignatureTarget target) Equals operatorreturns xpath version to be used if the Target Type is XPATH.booleanbooleanis the include token type Never?voidisITNever(boolean iToken) is the include token type Never?voidsetDigestAlgorithm(String digest) set the Digest Algorithm to be used for this TargetvoidsetIsOptimized(boolean isOptimized) voidsetXPathVersion(String version) sets xpath version to be used if the Target Type is XPATH.Methods inherited from class com.sun.xml.wss.impl.policy.mls.Target
convertToXPATH, getContentOnly, getEnforce, getPolicyQName, getQName, getType, getValue, isAttachment, isBSP, isBSP, isSOAPHeadersOnly, isSOAPHeadersOnly, setContentOnly, setEnforce, setPolicyQName, setQName, setType, setValue
-
Constructor Details
-
SignatureTarget
public SignatureTarget()Default constructor -
SignatureTarget
Constructor that takes a Target -
SignatureTarget
- Parameters:
digest- Digest Algorithm to be used for this Targettransform- Transform Algorithm to applied on this Target
-
-
Method Details
-
getDigestAlgorithm
- Returns:
- Digest Algorithm for this Target
-
getTransforms
- Returns:
- Collection of Transform Algorithms
-
isITNever
public void isITNever(boolean iToken) is the include token type Never? -
isITNever
public boolean isITNever()is the include token type Never? -
setDigestAlgorithm
set the Digest Algorithm to be used for this Target- Parameters:
digest- Digest Algorithm
-
addTransform
Add a Transform for this Target- Parameters:
transform- Transform
-
newSignatureTransform
- Returns:
- a new instance of Signatuer Transform
-
equals
Equals operator- Parameters:
target- SignatureTarget- Returns:
- true if the target argument is equal to this Target
-
clone
clone operator -
isIsOptimized
public boolean isIsOptimized() -
setIsOptimized
public void setIsOptimized(boolean isOptimized) -
setXPathVersion
Description copied from class:Targetsets xpath version to be used if the Target Type is XPATH.- Overrides:
setXPathVersionin classTarget
-
getXPathVersion
Description copied from class:Targetreturns xpath version to be used if the Target Type is XPATH.- Overrides:
getXPathVersionin classTarget
-