APIdia Launch Partner
Top Description Fields Constructors Methods
org.jcp.xml.dsig.internal.dom

public final Class Utils

extends Object
Class Inheritance
Imports
java.io.ByteArrayOutputStream, .InputStream, .IOException, java.security.AccessController, .PrivilegedAction, java.util.HashSet, .Iterator, .Set, javax.xml.crypto.XMLCryptoContext, org.w3c.dom.NamedNodeMap, .Node

Miscellaneous static utility methods for use in JSR 105 RI.

Field Summary

Modifier and TypeField and Description
private static final Logger
private static final String
private static final boolean
private static final boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static boolean
public static String
parseIdFromSameDocumentURI(String uri)

Returns the ID from a same-document URI (ex: "#id")

private static String
public static byte[]
public static boolean
sameDocumentURI(String uri)

Returns true if uri is a same-document URI, false otherwise.

pack-priv static boolean
pack-priv static Set<Node>

Returns:

the Set of Nodes
toNodeSet
(Iterator<?>
the Iterator
i
)

Converts an Iterator to a Set of Nodes, according to the XPath Data Model.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGback to summary
private static final Logger LOG
SECVAL_PROP_NAMEback to summary
private static final String SECVAL_PROP_NAME
SECVAL_SYSPROPback to summary
private static final boolean SECVAL_SYSPROP
SECVAL_SYSPROP_SETback to summary
private static final boolean SECVAL_SYSPROP_SET

Constructor Detail

Utilsback to summary
private Utils()

Method Detail

getBooleanback to summary
private static boolean getBoolean(XMLCryptoContext xc, String name)
parseIdFromSameDocumentURIback to summary
public static String parseIdFromSameDocumentURI(String uri)

Returns the ID from a same-document URI (ex: "#id")

privilegedGetPropertyback to summary
private static String privilegedGetProperty(String theProp)
Annotations
@SuppressWarnings:removal
readBytesFromStreamback to summary
public static byte[] readBytesFromStream(InputStream is) throws IOException
sameDocumentURIback to summary
public static boolean sameDocumentURI(String uri)

Returns true if uri is a same-document URI, false otherwise.

secureValidationback to summary
pack-priv static boolean secureValidation(XMLCryptoContext xc)
toNodeSetback to summary
pack-priv static Set<Node> toNodeSet(Iterator<?> i)

Converts an Iterator to a Set of Nodes, according to the XPath Data Model.

Parameters
i:Iterator<?>

the Iterator

Returns:Set<Node>

the Set of Nodes