|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.ehealth.business.mycarenetcommons.builders.util.BlobUtil
public class BlobUtil
provide 2 methods to help the xades management of the content. a simple method to get a xades signature on a content a more complex method that take the content, a provided xades (can be null) and a mandatory projectName if you use this one and if you want a signature, you have to can retrieve a true value in properties file. in this case, if provided xades is not null, it's this value that will be use
| Constructor Summary | |
|---|---|
BlobUtil()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlobUtil()
| Method Detail |
|---|
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 properties
TechnicalConnectorException
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 properties
TechnicalConnectorException
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 properties
TechnicalConnectorExceptiongenerateXadesForBlob(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 sign
TechnicalConnectorException
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 sign
TechnicalConnectorException
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
TechnicalConnectorExceptionpublic void bootstrap()
bootstrap in interface ConfigurationModuleBootstrap.ModuleBootstrapHook
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||