public interface IAssertion
extends java.io.Serializable
ISimpleAssertion
IMultiElementSimpleAssertion
INestedAssertion
ICompositeAssertion
IScenarioAssertion
com.cfluent.policymanager.sdk.policy.IStepScenarioAssertion
IPolicy
IPolicyReference
ISimpleOracleAssertion
for extensions defined
by Oracle. ISimpleOracleAssertion
for extensions defined
by Oracle. SimpleAssertion
and
ScenarioAssertion
NestedAssertion
class. oracle.wsm.policy.model.impl.security.RecipientTokenAssertion
class defines additional methods like NestedAssertion
ICloneable
interface and implement the ICloneable.clone()
method to clone its state.ICloneable.clone()
Modifier and Type | Interface and Description |
---|---|
static interface |
IAssertion.AssertionTypes
AssertionTypes Definition
|
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(javax.xml.namespace.QName qname,
java.lang.String value) |
IAssertion |
createInstance(javax.xml.namespace.QName qname)
Creates the appropriate assertion instance NOTE: The base implementation
must be overriden by the subclasses!
|
int |
getAssertionType()
Returns the type of the assertion.
|
java.lang.String |
getAttribute(javax.xml.namespace.QName qname) |
java.util.Map<javax.xml.namespace.QName,java.lang.String> |
getAttributes() |
java.lang.String |
getDigest()
Create a unique string representation that identifies this policy
uniquely independent of the order of the assertions to enable a fast path
intersection with another policy
|
java.lang.String |
getDigest(java.util.List<java.lang.String> namespaces,
java.util.List<javax.xml.namespace.QName> qnames,
boolean inclusionOrExclusionCriteria)
Create a unique string representation that identifies this policy
uniquely independent of the order of the assertions to enable a fast path
intersection with another policy.
|
IAssertion |
getParent()
Returns the parent of self or null if a parent non-exists
|
javax.xml.namespace.QName |
getQName() |
java.lang.String |
getStringForMatching()
The String to be used in the matching algorithim (used for intersection,
merge, etc).
|
boolean |
hasParent()
Returns ture if the assertion has a parent
|
IAssertion |
intersect(IAssertion assertion,
oracle.wsm.policy.model.IIntersectionContext context)
Returns an assertion which is the equivalent of intersect of self and
argument.
|
IAssertion |
intersect(IAssertion assertion,
oracle.wsm.policy.util.IPolicyRegistry reg,
oracle.wsm.policy.model.IIntersectionContext context)
Returns an assertion which is equivalent of intersect of self and
argument.
|
boolean |
isIdentical(java.lang.Object obj) |
boolean |
isNormalized()
Returns true if the Assertion has been normalized.
|
boolean |
isOptional()
Returns true if the Assertion is optional.
|
IAssertion |
merge(IAssertion assertion)
Returns the equivalent of merge of self and argument.
|
IAssertion |
merge(IAssertion assertion,
oracle.wsm.policy.util.IPolicyRegistry reg)
Returns the equivalent of merge of self and argument.
|
IAssertion |
normalize()
Normalizes the assertion and returns the normalized Assertion
|
IAssertion |
normalize(oracle.wsm.policy.util.IPolicyRegistry reg) |
void |
removeAttribute(javax.xml.namespace.QName qname) |
void |
setAttributes(java.util.Map<javax.xml.namespace.QName,java.lang.String> attributeMap) |
void |
setNormalized(boolean flag)
WARNING: Do not call this method.
|
void |
setOptional(boolean isOptional)
Specifies if the Assertion is optional.
|
void |
setParent(IAssertion parent)
Set the parent to argument
|
void |
validate(oracle.wsm.policy.validation.IValidationContext context)
Validate this assertion If any errors are found, they are added to the
passed Validation Context object
|
void addAttribute(javax.xml.namespace.QName qname, java.lang.String value)
IAssertion createInstance(javax.xml.namespace.QName qname)
qname
- int getAssertionType()
java.lang.String getAttribute(javax.xml.namespace.QName qname)
java.util.Map<javax.xml.namespace.QName,java.lang.String> getAttributes()
java.lang.String getDigest()
java.lang.String getDigest(java.util.List<java.lang.String> namespaces, java.util.List<javax.xml.namespace.QName> qnames, boolean inclusionOrExclusionCriteria)
inclusionOrExclusionCriteria
is true then: namespaces
is empty and
qnames
is empty then it is equivalent to calling
getDigest()
if inclusionOrExclusionCriteria
is
false then: namespaces
- - list of strings that define the namespaces to be
include or excluded in digest calculationqnames
- - list of qnames that define the qnames to be included or
excluded in digest calculationinclusionOrExclusionCriteria
- - whether the list of namespaces or
qnames should be included or excluded in the digest
calculationIAssertion getParent()
javax.xml.namespace.QName getQName()
java.lang.String getStringForMatching()
boolean hasParent()
IAssertion intersect(IAssertion assertion, oracle.wsm.policy.model.IIntersectionContext context) throws java.lang.UnsupportedOperationException
assertion
- the assertion to intersect withcontext
- - The intersection context is passed to capture the
running context of the intersection and to accumulate
intersection failuresjava.lang.UnsupportedOperationException
IAssertion intersect(IAssertion assertion, oracle.wsm.policy.util.IPolicyRegistry reg, oracle.wsm.policy.model.IIntersectionContext context) throws java.lang.UnsupportedOperationException
assertion
- the assertion to intersect withcache
- the policy registry which is used to resolve external policy
referencescontext
- - The intersection context is passed to capture the
running context of the intersection and to accumulate
intersection failuresjava.lang.UnsupportedOperationException
- if the operation is not meaningfulboolean isIdentical(java.lang.Object obj)
boolean isNormalized()
boolean isOptional()
isOptional
- IAssertion merge(IAssertion assertion) throws java.lang.UnsupportedOperationException
assertion
- the argument to merge withjava.lang.UnsupportedOperationException
IAssertion merge(IAssertion assertion, oracle.wsm.policy.util.IPolicyRegistry reg) throws java.lang.UnsupportedOperationException
assertion
- the assertion to merge withreg
- the policy registry that should be used to resolve external
policy referencesjava.lang.UnsupportedOperationException
- if the merge is not meaningfulIAssertion normalize() throws java.lang.UnsupportedOperationException
java.lang.UnsupportedOperationException
IAssertion normalize(oracle.wsm.policy.util.IPolicyRegistry reg) throws java.lang.UnsupportedOperationException
reg
- java.lang.UnsupportedOperationException
void removeAttribute(javax.xml.namespace.QName qname)
void setAttributes(java.util.Map<javax.xml.namespace.QName,java.lang.String> attributeMap)
void setNormalized(boolean flag)
flag
- void setOptional(boolean isOptional)
isOptional
- void setParent(IAssertion parent)
parent
- the parent that should be parent of selfvoid validate(oracle.wsm.policy.validation.IValidationContext context)
context
-