Package com.sun.xml.wss.impl.policy.mls
Class Target
java.lang.Object
com.sun.xml.wss.impl.policy.mls.Target
- Direct Known Subclasses:
EncryptionTarget,SignatureTarget
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAll Message Headers targeted at ultimate receiver role should be integrity protected.static final Stringstatic final QNamestatic final Stringstatic final QNamestatic final Stringtype-identifier for qname Target Typestatic final Stringtype-identifier for uri Target Typestatic final Stringtype-identifier for xpath Target Typeprotected static final String -
Constructor Summary
ConstructorsConstructorDescriptionTarget()Default constructor When used, it creates a default Target of typeqnameand a value of {http://schemas.xmlsoap.org/soap/envelope/}BodyConstructorConstructorConstructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleangetQName()getType()getValue()returns xpath version to be used if the Target Type is XPATH.booleanbooleanisBSP()voidisBSP(boolean flag) booleanvoidisSOAPHeadersOnly(boolean headersOnly) voidsetContentOnly(boolean contentOnly) set the contentOnly flag on the TargetvoidsetEnforce(boolean enforce) set the enforcement flag, used when verifying Security on an inbound message.voidsetPolicyQName(QName policyQName) voidSet the Target QName.voidset the type of the Targetvoidset the value of the TargetvoidsetXPathVersion(String version) sets xpath version to be used if the Target Type is XPATH.
-
Field Details
-
TARGET_VALUE_SOAP_BODY
- See Also:
-
TARGET_TYPE_VALUE_QNAME
type-identifier for qname Target Type- See Also:
-
TARGET_TYPE_VALUE_XPATH
type-identifier for xpath Target Type- See Also:
-
TARGET_TYPE_VALUE_URI
type-identifier for uri Target Type- See Also:
-
ALL_MESSAGE_HEADERS
All Message Headers targeted at ultimate receiver role should be integrity protected.- See Also:
-
BODY
- See Also:
-
BODY1_2
- See Also:
-
BODY_QNAME
-
SIGNATURE_CONFIRMATION
-
-
Constructor Details
-
Target
public Target()Default constructor When used, it creates a default Target of typeqnameand a value of {http://schemas.xmlsoap.org/soap/envelope/}Body -
Target
Constructor- Parameters:
type- the type of the Target (should be one of TARGET_TYPE_VALUE_QNAME, TARGET_TYPE_VALUE_XPATH, TARGET_TYPE_VALUE_URI)value- the value of the Target
-
Target
Constructor- Parameters:
type- the type of the Target (should be one of TARGET_TYPE_VALUE_QNAME, TARGET_TYPE_VALUE_XPATH, TARGET_TYPE_VALUE_URI)value- the value of the TargetcontentOnly- the content-only flag. This flag is used to decide whether the whole Target or only its Markup(content) should be Encrypted.
-
Target
Constructor- Parameters:
type- the type of the Target (should be one of TARGET_TYPE_VALUE_QNAME, TARGET_TYPE_VALUE_XPATH, TARGET_TYPE_VALUE_URI)value- the value of the TargetcontentOnly- the content-only flag. This flag is used to decide whether the whole Target or only its Markup(content) should be Encrypted.enforce- when set to false, will cause the enclosing policy (SignaturePolicy/EncryptionPolicy) to consider the presence of this Target reference as optional, while verifying the Policy on the Receiver side.
-
-
Method Details
-
setEnforce
public void setEnforce(boolean enforce) 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 which it appears.
-
getEnforce
public boolean getEnforce()- Returns:
- true if this Target appearing under a Policy should be enforced, false if it is optional.
-
isSOAPHeadersOnly
public void isSOAPHeadersOnly(boolean headersOnly) - Parameters:
headersOnly- is set to true, indicates only headers should be processed by this target To be set by Policy
-
isSOAPHeadersOnly
public boolean isSOAPHeadersOnly()- Returns:
- true if only the headers should be processed, false otherwise default is false
-
isBSP
public void isBSP(boolean flag) -
isBSP
public boolean isBSP() -
getType
- Returns:
- the type of the Target
-
setType
set the type of the Target- Parameters:
type- the type of the Target
-
getValue
- Returns:
- the value of the Target
-
setValue
set the value of the Target- Parameters:
value- the value of the Target
-
setContentOnly
public void setContentOnly(boolean contentOnly) set the contentOnly flag on the Target- Parameters:
contentOnly- the boolean flag indicating content-only when set to true.
-
getContentOnly
public boolean getContentOnly()- Returns:
- true if the contentOnly flag on the Target was set, false otherwise
-
convertToXPATH
- Returns:
- the Target value as a String representing an XPath expression
-
setQName
Set the Target QName. -
getQName
- Returns:
- the QName for the Target
-
isAttachment
public boolean isAttachment()- Returns:
- true if this Target represents an Attachment
-
getXPathVersion
returns xpath version to be used if the Target Type is XPATH. -
setXPathVersion
sets xpath version to be used if the Target Type is XPATH. -
setPolicyQName
-
getPolicyQName
-