|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.xml.wss.impl.policy.mls.Target
public class Target
Field Summary | |
---|---|
static java.lang.String |
BODY
|
static java.lang.String |
BODY1_2
|
static java.lang.String |
TARGET_TYPE_VALUE_QNAME
type-identifier for qname Target Type |
static java.lang.String |
TARGET_TYPE_VALUE_URI
type-identifier for uri Target Type |
static java.lang.String |
TARGET_TYPE_VALUE_XPATH
type-identifier for xpath Target Type |
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(java.lang.String type,
java.lang.String value)
Constructor |
|
Target(java.lang.String type,
java.lang.String value,
boolean contentOnly)
Constructor |
|
Target(java.lang.String type,
java.lang.String value,
boolean contentOnly,
boolean enforce)
Constructor |
Method Summary | |
---|---|
java.lang.String |
convertToXPATH()
|
boolean |
getContentOnly()
|
boolean |
getEnforce()
|
javax.xml.namespace.QName |
getQName()
|
java.lang.String |
getType()
|
java.lang.String |
getValue()
|
boolean |
isAttachment()
|
boolean |
isBSP()
|
void |
isBSP(boolean flag)
|
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 |
setType(java.lang.String type)
set the type of the Target |
void |
setValue(java.lang.String value)
set the value of the Target |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TARGET_TYPE_VALUE_QNAME
public static final java.lang.String TARGET_TYPE_VALUE_XPATH
public static final java.lang.String TARGET_TYPE_VALUE_URI
public static final java.lang.String BODY
public static final java.lang.String BODY1_2
Constructor Detail |
---|
public Target()
qname
and a value of
{http://schemas.xmlsoap.org/soap/envelope/}Body
public Target(java.lang.String type, java.lang.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 Targetpublic Target(java.lang.String type, java.lang.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(java.lang.String type, java.lang.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 isBSP(boolean flag)
public boolean isBSP()
public java.lang.String getType()
public void setType(java.lang.String type)
type
- the type of the Targetpublic java.lang.String getValue()
public void setValue(java.lang.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 java.lang.String convertToXPATH()
public javax.xml.namespace.QName getQName()
public boolean isAttachment()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |