|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.wss.impl.policy.mls.Target
public class Target
| Field Summary | |
|---|---|
static String |
ALL_MESSAGE_HEADERS
All Message Headers targeted at ultimate receiver role should be integrity protected. |
static String |
BODY
|
static QName |
BODY_QNAME
|
static String |
BODY1_2
|
static QName |
SIGNATURE_CONFIRMATION
|
static String |
TARGET_TYPE_VALUE_QNAME
type-identifier for qname Target Type |
static String |
TARGET_TYPE_VALUE_URI
type-identifier for uri Target Type |
static String |
TARGET_TYPE_VALUE_XPATH
type-identifier for xpath Target Type |
protected static String |
TARGET_VALUE_SOAP_BODY
|
| Constructor Summary | |
|---|---|
Target()
Default constructor When used, it creates a default Target of type qname and a value of
{http://schemas.xmlsoap.org/soap/envelope/}Body |
|
Target(String type,
String value)
Constructor |
|
Target(String type,
String value,
boolean contentOnly)
Constructor |
|
Target(String type,
String value,
boolean contentOnly,
boolean enforce)
Constructor |
|
| Method Summary | |
|---|---|
String |
convertToXPATH()
|
boolean |
getContentOnly()
|
boolean |
getEnforce()
|
QName |
getPolicyQName()
|
QName |
getQName()
|
String |
getType()
|
String |
getValue()
|
String |
getXPathVersion()
returns xpath version to be used if the Target Type is XPATH. |
boolean |
isAttachment()
|
boolean |
isBSP()
|
void |
isBSP(boolean flag)
|
boolean |
isSOAPHeadersOnly()
|
void |
isSOAPHeadersOnly(boolean headersOnly)
|
void |
setContentOnly(boolean contentOnly)
set the contentOnly flag on the Target |
void |
setEnforce(boolean enforce)
set the enforcement flag, used when verifying Security on an inbound message. |
void |
setPolicyQName(QName policyQName)
|
void |
setQName(QName qname)
Set the Target QName. |
void |
setType(String type)
set the type of the Target |
void |
setValue(String value)
set the value of the Target |
void |
setXPathVersion(String version)
sets xpath version to be used if the Target Type is XPATH. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String TARGET_VALUE_SOAP_BODY
public static final String TARGET_TYPE_VALUE_QNAME
public static final String TARGET_TYPE_VALUE_XPATH
public static final String TARGET_TYPE_VALUE_URI
public static final String ALL_MESSAGE_HEADERS
public static final String BODY
public static final String BODY1_2
public static final QName BODY_QNAME
public static final QName SIGNATURE_CONFIRMATION
| Constructor Detail |
|---|
public Target()
qname and a value of
{http://schemas.xmlsoap.org/soap/envelope/}Body
public Target(String type,
String value)
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
public Target(String type,
String value,
boolean contentOnly)
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.
public Target(String type,
String value,
boolean contentOnly,
boolean enforce)
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 Detail |
|---|
public void setEnforce(boolean enforce)
enforce - if set to True indicates that this Target is a compulsary target under the Policy in which
it appears.public boolean getEnforce()
public void isSOAPHeadersOnly(boolean headersOnly)
headersOnly - is set to true, indicates only headers should be processed by
this target
To be set by Policypublic boolean isSOAPHeadersOnly()
public void isBSP(boolean flag)
public boolean isBSP()
public String getType()
public void setType(String type)
type - the type of the Targetpublic String getValue()
public void setValue(String value)
value - the value of the Targetpublic void setContentOnly(boolean contentOnly)
contentOnly - the boolean flag indicating content-only when set to true.public boolean getContentOnly()
public String convertToXPATH()
public void setQName(QName qname)
public QName getQName()
public boolean isAttachment()
public String getXPathVersion()
public void setXPathVersion(String version)
public void setPolicyQName(QName policyQName)
public QName getPolicyQName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||