Class UtilsResourcesSignOperations


  • 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@.

    Version:
    1.3, 18/04/2022.
    Author:
    Gobierno de España.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UtilsResourcesSignOperations

        public UtilsResourcesSignOperations()
    • Method Detail

      • getMimeType

        public static java.lang.String getMimeType​(byte[] data)
        Method that detects the media type of the given document. The type detection is based on the content of the given document stream.
        Parameters:
        data - Parameter that represents the data to check.
        Returns:
        the detected media type.
      • getCanonicalizer

        public static java.lang.Object getCanonicalizer​(java.lang.String canonicalizationMethod)
                                                 throws org.apache.xml.security.c14n.InvalidCanonicalizerException
        Method that obtains the canonicalizer associated to the URI of the canonicalization method to use.
        Parameters:
        canonicalizationMethod - Parameter that represents the URI of the canonicalization algorithm to use.
        Returns:
        an object that represents the canonializer. The canonicalizer will be:
        Throws:
        org.apache.xml.security.c14n.InvalidCanonicalizerException - If the canonicalization algorithm is unsupported.