|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.xml.security.encryption.AbstractSerializer
public abstract class AbstractSerializer
Converts Strings into Nodes and visa versa.
An abstract class for common Serializer functionality
| Field Summary | |
|---|---|
protected Canonicalizer |
canon
|
protected boolean |
secureValidation
|
| Constructor Summary | |
|---|---|
AbstractSerializer()
|
|
| Method Summary | |
|---|---|
java.lang.String |
canonSerialize(org.w3c.dom.Node node)
Deprecated. |
byte[] |
canonSerializeToByteArray(org.w3c.dom.Node node)
Use the Canonicalizer to serialize the node |
protected static byte[] |
createContext(byte[] source,
org.w3c.dom.Node ctx)
|
protected static java.lang.String |
createContext(java.lang.String source,
org.w3c.dom.Node ctx)
|
abstract org.w3c.dom.Node |
deserialize(byte[] source,
org.w3c.dom.Node ctx)
|
abstract org.w3c.dom.Node |
deserialize(java.lang.String source,
org.w3c.dom.Node ctx)
Deprecated. |
boolean |
isSecureValidation()
|
java.lang.String |
serialize(org.w3c.dom.Element element)
Deprecated. |
java.lang.String |
serialize(org.w3c.dom.NodeList content)
Deprecated. |
byte[] |
serializeToByteArray(org.w3c.dom.Element element)
Returns a byte[] representation of the specified
Element. |
byte[] |
serializeToByteArray(org.w3c.dom.NodeList content)
Returns a byte[] representation of the specified
NodeList. |
void |
setCanonicalizer(Canonicalizer canon)
Set the Canonicalizer object to use. |
void |
setSecureValidation(boolean secureValidation)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Canonicalizer canon
protected boolean secureValidation
| Constructor Detail |
|---|
public AbstractSerializer()
| Method Detail |
|---|
public void setCanonicalizer(Canonicalizer canon)
Serializer
setCanonicalizer in interface Serializer
@Deprecated
public java.lang.String serialize(org.w3c.dom.Element element)
throws java.lang.Exception
String representation of the specified
Element.
Refer also to comments about setup of format.
serialize in interface Serializerelement - the Element to serialize.
String representation of the serilaized
Element.
java.lang.Exception
public byte[] serializeToByteArray(org.w3c.dom.Element element)
throws java.lang.Exception
byte[] representation of the specified
Element.
serializeToByteArray in interface Serializerelement - the Element to serialize.
byte[] representation of the serilaized
Element.
java.lang.Exception
@Deprecated
public java.lang.String serialize(org.w3c.dom.NodeList content)
throws java.lang.Exception
String representation of the specified
NodeList.
This is a special case because the NodeList may represent a
DocumentFragment. A document fragment may be a
non-valid XML document (refer to appropriate description of
W3C) because it my start with a non-element node, e.g. a text
node.
The methods first converts the node list into a document fragment.
Special care is taken to not destroy the current document, thus
the method clones the nodes (deep cloning) before it appends
them to the document fragment.
Refer also to comments about setup of format.
serialize in interface Serializercontent - the NodeList to serialize.
String representation of the serialized
NodeList.
java.lang.Exception
public byte[] serializeToByteArray(org.w3c.dom.NodeList content)
throws java.lang.Exception
byte[] representation of the specified
NodeList.
serializeToByteArray in interface Serializercontent - the NodeList to serialize.
byte[] representation of the serialized
NodeList.
java.lang.Exception
@Deprecated
public java.lang.String canonSerialize(org.w3c.dom.Node node)
throws java.lang.Exception
canonSerialize in interface Serializernode -
java.lang.Exception
public byte[] canonSerializeToByteArray(org.w3c.dom.Node node)
throws java.lang.Exception
canonSerializeToByteArray in interface Serializernode -
java.lang.Exception
@Deprecated
public abstract org.w3c.dom.Node deserialize(java.lang.String source,
org.w3c.dom.Node ctx)
throws XMLEncryptionException
deserialize in interface Serializersource - ctx -
XMLEncryptionException
public abstract org.w3c.dom.Node deserialize(byte[] source,
org.w3c.dom.Node ctx)
throws XMLEncryptionException
deserialize in interface Serializersource - ctx -
XMLEncryptionException
protected static byte[] createContext(byte[] source,
org.w3c.dom.Node ctx)
throws XMLEncryptionException
XMLEncryptionException
protected static java.lang.String createContext(java.lang.String source,
org.w3c.dom.Node ctx)
public boolean isSecureValidation()
public void setSecureValidation(boolean secureValidation)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||