Example usage for javax.xml.crypto URIDereferencer getClass

List of usage examples for javax.xml.crypto URIDereferencer getClass

Introduction

In this page you can find the example usage for javax.xml.crypto URIDereferencer getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:org.apache.jcp.xml.dsig.internal.dom.DOMReference.java

private Data dereference(XMLCryptoContext context) throws XMLSignatureException {
    Data data = null;//  w w w .j a  v a  2s.c om

    // use user-specified URIDereferencer if specified; otherwise use deflt
    URIDereferencer deref = context.getURIDereferencer();
    if (deref == null) {
        deref = DOMURIDereferencer.INSTANCE;
    }
    try {
        data = deref.dereference(this, context);
        if (log.isDebugEnabled()) {
            log.debug("URIDereferencer class name: " + deref.getClass().getName());
            log.debug("Data class name: " + data.getClass().getName());
        }
    } catch (URIReferenceException ure) {
        throw new XMLSignatureException(ure);
    }

    return data;
}