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:
java.lang.Cloneable

public class SignatureTarget
extends Target
implements java.lang.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
BODY, BODY1_2, TARGET_TYPE_VALUE_QNAME, TARGET_TYPE_VALUE_URI, TARGET_TYPE_VALUE_XPATH
 
Constructor Summary
SignatureTarget()
          Default constructor
SignatureTarget(java.lang.String digest, java.lang.String transform)
           
SignatureTarget(Target target)
          Constructor that takes a Target
 
Method Summary
 void addTransform(SignatureTarget.Transform transform)
          Add a Transform for this Target
 java.lang.Object clone()
          clone operator
 boolean equals(SignatureTarget target)
          Equals operator
 java.lang.String getDigestAlgorithm()
           
 java.util.ArrayList getTransforms()
           
 boolean isIsOptimized()
           
 SignatureTarget.Transform newSignatureTransform()
           
 void setDigestAlgorithm(java.lang.String digest)
          set the Digest Algorithm to be used for this Target
 void setIsOptimized(boolean isOptimized)
           
 
Methods inherited from class com.sun.xml.wss.impl.policy.mls.Target
convertToXPATH, getContentOnly, getEnforce, getQName, getType, getValue, isAttachment, isBSP, isBSP, setContentOnly, setEnforce, setType, setValue
 
Methods inherited from class java.lang.Object
equals, 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(java.lang.String digest,
                       java.lang.String transform)
Parameters:
digest - Digest Algorithm to be used for this Target
transform - Transform Algorithm to applied on this Target
Method Detail

getDigestAlgorithm

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

getTransforms

public java.util.ArrayList getTransforms()
Returns:
Collection of Transform Algorithms

setDigestAlgorithm

public void setDigestAlgorithm(java.lang.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 java.lang.Object clone()
clone operator

Overrides:
clone in class java.lang.Object
Returns:
a clone of this SignatureTarget

isIsOptimized

public boolean isIsOptimized()

setIsOptimized

public void setIsOptimized(boolean isOptimized)


Copyright ? 2005 Sun Microsystems, Inc. All Rights Reserved.