| java.lang.Object com.sun.xml.wss.impl.policy.mls.Target
All known Subclasses: com.sun.xml.wss.impl.policy.mls.EncryptionTarget, com.sun.xml.wss.impl.policy.mls.SignatureTarget,
Target | public class Target (Code) | | |
Constructor Summary | |
public | Target() | public | Target(String type, String value) | public | Target(String type, String value, boolean contentOnly) Constructor
Parameters: type - the type of the Target (should be one of TARGET_TYPE_VALUE_QNAME, TARGET_TYPE_VALUE_XPATH, TARGET_TYPE_VALUE_URI) Parameters: value - the value of the Target Parameters: contentOnly - the content-only flag. | public | Target(String type, String value, boolean contentOnly, boolean enforce) Constructor
Parameters: type - the type of the Target (should be one of TARGET_TYPE_VALUE_QNAME, TARGET_TYPE_VALUE_XPATH, TARGET_TYPE_VALUE_URI) Parameters: value - the value of the Target Parameters: contentOnly - the content-only flag. |
ALL_MESSAGE_HEADERS | final public static String ALL_MESSAGE_HEADERS(Code) | | All Message Headers targeted at ultimate receiver role should be
integrity protected.
|
SIGNATURE_CONFIRMATION | final public static QName SIGNATURE_CONFIRMATION(Code) | | |
TARGET_TYPE_VALUE_QNAME | final public static String TARGET_TYPE_VALUE_QNAME(Code) | | type-identifier for qname Target Type
|
TARGET_TYPE_VALUE_URI | final public static String TARGET_TYPE_VALUE_URI(Code) | | type-identifier for uri Target Type
|
TARGET_TYPE_VALUE_XPATH | final public static String TARGET_TYPE_VALUE_XPATH(Code) | | type-identifier for xpath Target Type
|
TARGET_VALUE_SOAP_BODY | final protected static String TARGET_VALUE_SOAP_BODY(Code) | | |
headersOnly | boolean headersOnly(Code) | | |
Target | public Target()(Code) | | Default constructor
When used, it creates a default Target of type qname and a value of
{http://schemas.xmlsoap.org/soap/envelope/}Body
|
Target | public Target(String type, String value)(Code) | | Constructor
Parameters: type - the type of the Target (should be one of TARGET_TYPE_VALUE_QNAME, TARGET_TYPE_VALUE_XPATH, TARGET_TYPE_VALUE_URI) Parameters: value - the value of the Target |
Target | public Target(String type, String value, boolean contentOnly)(Code) | | Constructor
Parameters: type - the type of the Target (should be one of TARGET_TYPE_VALUE_QNAME, TARGET_TYPE_VALUE_XPATH, TARGET_TYPE_VALUE_URI) Parameters: value - the value of the Target Parameters: contentOnly - the content-only flag. This flag is used to decide whether the whole Target or only its Markup(content) shouldbe Encrypted. |
Target | public Target(String type, String value, boolean contentOnly, boolean enforce)(Code) | | Constructor
Parameters: type - the type of the Target (should be one of TARGET_TYPE_VALUE_QNAME, TARGET_TYPE_VALUE_XPATH, TARGET_TYPE_VALUE_URI) Parameters: value - the value of the Target Parameters: contentOnly - the content-only flag. This flag is used to decide whether the whole Target or only its Markup(content) shouldbe Encrypted. Parameters: enforce - when set to false, will cause the enclosing policy (SignaturePolicy/EncryptionPolicy) to consider the presence ofthis Target reference as optional, while verifying the Policy on the Receiver side. |
convertToXPATH | public String convertToXPATH()(Code) | | the Target value as a String representing an XPath expression |
getContentOnly | public boolean getContentOnly()(Code) | | true if the contentOnly flag on the Target was set, false otherwise |
getEnforce | public boolean getEnforce()(Code) | | true if this Target appearing under a Policy should be enforced, falseif it is optional. |
getQName | public QName getQName()(Code) | | the QName for the Target |
getValue | public String getValue()(Code) | | the value of the Target |
getXPathVersion | public String getXPathVersion()(Code) | | returns xpath version to be used if the Target Type is XPATH.
|
isAttachment | public boolean isAttachment()(Code) | | true if this Target represents an Attachment |
isBSP | public void isBSP(boolean flag)(Code) | | |
isBSP | public boolean isBSP()(Code) | | |
isSOAPHeadersOnly | public void isSOAPHeadersOnly(boolean headersOnly)(Code) | | Parameters: headersOnly - is set to true, indicates only headers should be processed bythis targetTo be set by Policy |
isSOAPHeadersOnly | public boolean isSOAPHeadersOnly()(Code) | | true if only the headers should be processed, false otherwisedefault is false |
setContentOnly | public void setContentOnly(boolean contentOnly)(Code) | | set the contentOnly flag on the Target
Parameters: contentOnly - the boolean flag indicating content-only when set to true. |
setEnforce | public void setEnforce(boolean enforce)(Code) | | set the enforcement flag, used when verifying Security on an inbound message.
Parameters: enforce - if set to True indicates that this Target is a compulsary target under the Policy in whichit appears. |
setPolicyName | public void setPolicyName(QName policyQName)(Code) | | |
setQName | public void setQName(QName qname)(Code) | | Set the Target QName.
|
setType | public void setType(String type)(Code) | | set the type of the Target
Parameters: type - the type of the Target |
setValue | public void setValue(String value)(Code) | | set the value of the Target
Parameters: value - the value of the Target |
setXPathVersion | public void setXPathVersion(String version)(Code) | | sets xpath version to be used if the Target Type is XPATH.
|
|
|