Package org.apache.ws.secpolicy.model
Class AbstractSecurityAssertion
java.lang.Object
org.apache.ws.secpolicy.model.AbstractSecurityAssertion
- All Implemented Interfaces:
org.apache.neethi.Assertion
,org.apache.neethi.PolicyComponent
- Direct Known Subclasses:
AbstractConfigurableSecurityAssertion
,Binding
,ContentEncryptedElements
,EncryptionToken
,InitiatorToken
,Layout
,ProtectionToken
,RecipientToken
,RequiredElements
,RequiredParts
,SignatureToken
,SignedEncryptedElements
,SignedEncryptedParts
,SupportingToken
,Token
,TransportToken
,Trust10
,Trust13
,Wss10
public abstract class AbstractSecurityAssertion
extends Object
implements org.apache.neethi.Assertion
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
equal
(org.apache.neethi.PolicyComponent policyComponent) short
getType()
int
boolean
boolean
boolean
org.apache.neethi.PolicyComponent
void
setIgnorable
(boolean isIgnorable) void
setNormalized
(boolean normalized) void
setOptional
(boolean isOptional) void
setVersion
(int version) protected static void
writeAttribute
(XMLStreamWriter writer, String defaultPrefix, String uri, String localPart, String value) protected static void
writeEmptyElement
(XMLStreamWriter writer, String defaultPrefix, String localPart, String uri) protected static void
writeStartElement
(XMLStreamWriter writer, String defaultPrefix, String localPart, String uri) protected static void
writeStartElement
(XMLStreamWriter writer, QName name) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.neethi.Assertion
getName, serialize
-
Field Details
-
version
protected int version
-
-
Constructor Details
-
AbstractSecurityAssertion
public AbstractSecurityAssertion()
-
-
Method Details
-
isOptional
public boolean isOptional()- Specified by:
isOptional
in interfaceorg.apache.neethi.Assertion
-
setOptional
public void setOptional(boolean isOptional) -
isIgnorable
public boolean isIgnorable()- Specified by:
isIgnorable
in interfaceorg.apache.neethi.Assertion
-
setIgnorable
public void setIgnorable(boolean isIgnorable) -
getType
public short getType()- Specified by:
getType
in interfaceorg.apache.neethi.PolicyComponent
-
equal
public boolean equal(org.apache.neethi.PolicyComponent policyComponent) - Specified by:
equal
in interfaceorg.apache.neethi.PolicyComponent
-
setNormalized
public void setNormalized(boolean normalized) -
isNormalized
public boolean isNormalized() -
normalize
public org.apache.neethi.PolicyComponent normalize()- Specified by:
normalize
in interfaceorg.apache.neethi.Assertion
-
setVersion
public void setVersion(int version) -
getVersion
public int getVersion() -
writeStartElement
protected static void writeStartElement(XMLStreamWriter writer, String defaultPrefix, String localPart, String uri) throws XMLStreamException - Throws:
XMLStreamException
-
writeStartElement
protected static void writeStartElement(XMLStreamWriter writer, QName name) throws XMLStreamException - Throws:
XMLStreamException
-
writeEmptyElement
protected static void writeEmptyElement(XMLStreamWriter writer, String defaultPrefix, String localPart, String uri) throws XMLStreamException - Throws:
XMLStreamException
-
writeAttribute
protected static void writeAttribute(XMLStreamWriter writer, String defaultPrefix, String uri, String localPart, String value) throws XMLStreamException - Throws:
XMLStreamException
-