public class BlobUtil extends Object implements ConfigurationModuleBootstrap.ModuleBootstrapHook
Constructor and Description |
---|
BlobUtil() |
Modifier and Type | Method and Description |
---|---|
void |
bootstrap() |
static byte[] |
generateXades(Blob blob,
String projectName) |
static byte[] |
generateXades(Blob blob,
String projectName,
String platformName) |
static Base64Binary |
generateXades(BlobType inValue)
generates the xades based on the content of the blob.
|
static Base64Binary |
generateXades(BlobType inValue,
byte[] furnishedXades,
String projectName)
generates the xades based on the content of the blob.
|
static Base64Binary |
generateXades(BlobType inValue,
byte[] furnishedXades,
String projectName) |
static Base64Binary |
generateXades(BlobType inValue,
String projectName) |
static Base64Binary |
generateXades(BlobType inValue,
String projectName) |
static Base64Binary |
generateXades(BlobType inValue,
String projectName,
String platformName)
generates a xades value as defined for the project.
|
static Base64Binary |
generateXadesForBlob(Blob inValue)
generates the xades based on the content of the blob.
|
static Base64Binary |
generateXadesForBlob(Blob blob,
byte[] furnishedXades,
String projectName)
generates the xades based on the content of the blob.
|
static Base64Binary |
generateXadesForBlob(Blob blob,
String projectName)
generates the xades based on the content of the blob.
|
static Base64Binary |
generateXadesForBlob(Blob blob,
String projectName,
String platformName) |
public static Base64Binary generateXades(BlobType inValue, byte[] furnishedXades, String projectName) throws TechnicalConnectorException
transformers used : see documentation :
The reference must contain one or several of following transforms, in the below order: • “http://www.w3.org/2000/09/xmldsig#base64”: to base64 decode the content of the message (always needed). • “urn:nippin:xml:sig:transform:optional-deflate” to deflate the content of the message (needed if the content is deflated, i.e. for Async flows) • “http://www.w3.org/2001/10/xml-exc-c14n#” in case the content is XML and no other formats like text or pdf.
inValue
- blob to signfurnishedXades
- xades provided by the requesterprojectName
- : name of the project needed in the propertiesTechnicalConnectorException
public static Base64Binary generateXades(BlobType inValue, byte[] furnishedXades, String projectName) throws TechnicalConnectorException
TechnicalConnectorException
public static Base64Binary generateXadesForBlob(Blob blob, byte[] furnishedXades, String projectName) throws TechnicalConnectorException
transformers used : see documentation :
The reference must contain one or several of following transforms, in the below order: • “http://www.w3.org/2000/09/xmldsig#base64”: to base64 decode the content of the message (always needed). • “urn:nippin:xml:sig:transform:optional-deflate” to deflate the content of the message (needed if the content is deflated, i.e. for Async flows) • “http://www.w3.org/2001/10/xml-exc-c14n#” in case the content is XML and no other formats like text or pdf.
blob
- blob to signfurnishedXades
- xades provided by the requesterprojectName
- : name of the project needed in the propertiesTechnicalConnectorException
public static byte[] generateXades(Blob blob, String projectName, String platformName) throws TechnicalConnectorException
blob
- blob to signprojectName
- : name of the project needed in the propertiesplatformName
- : name of the platform (mycarenet, vsbnet, etc..., needed in the propertiesTechnicalConnectorException
generateXadesForBlob(Blob, byte[], String)
public static byte[] generateXades(Blob blob, String projectName) throws TechnicalConnectorException
TechnicalConnectorException
public static Base64Binary generateXades(BlobType inValue) throws TechnicalConnectorException
transformers used : see documentation :
The reference must contain one or several of following transforms, in the below order: • 'http://www.w3.org/2000/09/xmldsig#base64': to base64 decode the content of the message (always needed). • 'urn:nippin:xml:sig:transform:optional-deflate' to deflate the content of the message (needed if the content is deflated, i.e. for Async flows) • 'http://www.w3.org/2001/10/xml-exc-c14n#' in case the content is XML and no other formats like text or pdf.
inValue
- to signTechnicalConnectorException
public static Base64Binary generateXadesForBlob(Blob inValue) throws TechnicalConnectorException
transformers used : see documentation :
The reference must contain one or several of following transforms, in the below order: • 'http://www.w3.org/2000/09/xmldsig#base64': to base64 decode the content of the message (always needed). • 'urn:nippin:xml:sig:transform:optional-deflate' to deflate the content of the message (needed if the content is deflated, i.e. for Async flows) • 'http://www.w3.org/2001/10/xml-exc-c14n#' in case the content is XML and no other formats like text or pdf.
inValue
- to signTechnicalConnectorException
public static Base64Binary generateXadesForBlob(Blob blob, String projectName) throws TechnicalConnectorException
transformers used : see documentation :
The reference must contain one or several of following transforms, in the below order: • 'http://www.w3.org/2000/09/xmldsig#base64': to base64 decode the content of the message (always needed). • 'urn:nippin:xml:sig:transform:optional-deflate' to deflate the content of the message (needed if the content is deflated, i.e. for Async flows) • 'http://www.w3.org/2001/10/xml-exc-c14n#' in case the content is XML and no other formats like text or pdf.
blob
- Blob to signprojectName
- the name of the project ( needed to retrieve config properties )TechnicalConnectorException
public static Base64Binary generateXadesForBlob(Blob blob, String projectName, String platformName) throws TechnicalConnectorException
TechnicalConnectorException
public static Base64Binary generateXades(BlobType inValue, String projectName, String platformName) throws TechnicalConnectorException
inValue
- projectName
- TechnicalConnectorException
public static Base64Binary generateXades(BlobType inValue, String projectName) throws TechnicalConnectorException
TechnicalConnectorException
public static Base64Binary generateXades(BlobType inValue, String projectName) throws TechnicalConnectorException
TechnicalConnectorException
public void bootstrap()
bootstrap
in interface ConfigurationModuleBootstrap.ModuleBootstrapHook
Connector Packaging TRUSSMAKER 4.1.2 API
Copyright © {inceptionYear}-2022 eHealth. All Rights Reserved.