|
||||||||||
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 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,
String projectName)
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. |
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 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 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 generateXades(BlobType inValue, String projectName) throws TechnicalConnectorException
inValue
- projectName
-
TechnicalConnectorException
public void bootstrap()
bootstrap
in interface ConfigurationModuleBootstrap.ModuleBootstrapHook
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |