public class UtilsResourcesSignOperations
extends java.lang.Object
Class that provides functionality to control the resources for sign-operations module.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
| Constructor and Description |
|---|
UtilsResourcesSignOperations() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
getCanonicalizer(java.lang.String canonicalizationMethod)
Method that obtains the canonicalizer associated to the URI of the canonicalization method to use.
|
static java.lang.String |
getMimeType(byte[] data)
Method that detects the media type of the given document.
|
public static java.lang.String getMimeType(byte[] data)
data - Parameter that represents the data to check.public static java.lang.Object getCanonicalizer(java.lang.String canonicalizationMethod)
throws org.apache.xml.security.c14n.InvalidCanonicalizerException
canonicalizationMethod - Parameter that represents the URI of the canonicalization algorithm to use.Canonicalizer11_OmitComments if the canonicalization algorithm to use is CanonicalizationProperties#ALGO_ID_C14N11_OMIT_COMMENTS.Canonicalizer11_WithComments if the canonicalization algorithm to use is CanonicalizationProperties#ALGO_ID_C14N11_WITH_COMMENTS.Canonicalizer on another case.org.apache.xml.security.c14n.InvalidCanonicalizerException - If the canonicalization algorithm is unsupported.