com.sun.xml.wss.impl.policy.mls
Class SignatureTarget

java.lang.Object
  extended by com.sun.xml.wss.impl.policy.mls.Target
      extended by com.sun.xml.wss.impl.policy.mls.SignatureTarget
All Implemented Interfaces:
Cloneable

public class SignatureTarget
extends Target
implements 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
static class SignatureTarget.Transform
          This 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
SignatureTarget()
          Default constructor
SignatureTarget(String digest, String transform)
           
SignatureTarget(Target target)
          Constructor that takes a Target
 
Method Summary
 void addTransform(SignatureTarget.Transform transform)
          Add a Transform for this Target
 Object clone()
          clone operator
 boolean equals(SignatureTarget target)
          Equals operator
 String getDigestAlgorithm()
           
 ArrayList getTransforms()
           
 String getXPathVersion()
          returns xpath version to be used if the Target Type is XPATH.
 boolean isIsOptimized()
           
 boolean isITNever()
          is the include token type Never?
 void isITNever(boolean iToken)
          is the include token type Never?
 SignatureTarget.Transform newSignatureTransform()
           
 void setDigestAlgorithm(String digest)
          set the Digest Algorithm to be used for this Target
 void setIsOptimized(boolean isOptimized)
           
 void setXPathVersion(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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignatureTarget

public SignatureTarget()
Default constructor


SignatureTarget

public SignatureTarget(Target target)
Constructor that takes a Target


SignatureTarget

public SignatureTarget(String digest,
                       String transform)
Parameters:
digest - Digest Algorithm to be used for this Target
transform - Transform Algorithm to applied on this Target
Method Detail

getDigestAlgorithm

public String getDigestAlgorithm()
Returns:
Digest Algorithm for this Target

getTransforms

public ArrayList 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

public void setDigestAlgorithm(String digest)
set the Digest Algorithm to be used for this Target

Parameters:
digest - Digest Algorithm

addTransform

public void addTransform(SignatureTarget.Transform transform)
Add a Transform for this Target

Parameters:
transform - Transform

newSignatureTransform

public SignatureTarget.Transform newSignatureTransform()
Returns:
a new instance of Signatuer Transform

equals

public boolean equals(SignatureTarget target)
Equals operator

Parameters:
target - SignatureTarget
Returns:
true if the target argument is equal to this Target

clone

public Object clone()
clone operator

Overrides:
clone in class Object
Returns:
a clone of this SignatureTarget

isIsOptimized

public boolean isIsOptimized()

setIsOptimized

public void setIsOptimized(boolean isOptimized)

setXPathVersion

public void setXPathVersion(String version)
Description copied from class: Target
sets xpath version to be used if the Target Type is XPATH.

Overrides:
setXPathVersion in class Target

getXPathVersion

public String getXPathVersion()
Description copied from class: Target
returns xpath version to be used if the Target Type is XPATH.

Overrides:
getXPathVersion in class Target


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.