|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectat.knowcenter.wag.egov.egiz.sig.connectors.bku.DetachedBKUConnector
Connects to the BKU using the detached multipart/formdata requests.
This feature is available since BKU version 2.7.4.
| Nested Class Summary | |
static class |
DetachedBKUConnector.Environment
Holds environment configuration information like templates. |
| Field Summary | |
protected DetachedBKUConnector.Environment |
environment
The environemnt configuration of this connector containing templates and other configurable elements. |
protected ConnectorParameters |
params
The connector parameters. |
| Constructor Summary | |
DetachedBKUConnector(ConnectorParameters connectorParameters,
String loc_ref_content)
Constructor that builds the configuration environment for this connector according to the given profile. |
|
| Method Summary | |
SignSignatureObject |
analyzeSignResponse(Properties response_properties)
Analyzes the sign response xml and extracts the signature data. |
SignatureResponse |
analyzeVerifyResponse(Properties response_properties)
Analyzes the verify response string. |
SignSignatureObject |
doSign(SignatureData data)
Performs a sign. |
SignatureResponse |
doVerify(SignatureData data,
SignSignatureObject so)
Performs a verification. |
static String[] |
parseSigIds(String sig_ids)
|
String |
prepareSignRequest(SignatureData data)
Prepares the sign request xml to be sent using the sign request template. |
String |
prepareVerifyRequest(SignatureData data,
SignSignatureObject so)
Prepares the verify request xml to be sent using the verify request template. |
String |
prepareXMLContent(SignatureData data,
SignSignatureObject so)
Prepares the XML content the holds the actual signature data. |
protected Properties |
sendRequest(String url,
String request_string,
SignatureData data)
Sends the request and data to the given URL. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ConnectorParameters params
protected DetachedBKUConnector.Environment environment
| Constructor Detail |
public DetachedBKUConnector(ConnectorParameters connectorParameters,
String loc_ref_content)
throws ConnectorException
If confuguration parameters are not defined on that profile, the default parameters defined in the configuration are used.
connectorParameters - The connectot parameters.
ConnectorException - f.e.| Method Detail |
public String prepareSignRequest(SignatureData data)
throws ConnectorException
prepareSignRequest in interface LocalConnectordata - The SignatureData.
ConnectorException - f.e.
public SignSignatureObject analyzeSignResponse(Properties response_properties)
throws ConnectorException
analyzeSignResponse in interface LocalConnectorresponse_properties - The response properties containing the response String and
transport related information.
ConnectorException - f.e.public static String[] parseSigIds(String sig_ids)
protected Properties sendRequest(String url,
String request_string,
SignatureData data)
throws ConnectorException
This method mainly handles communication exceptions. The actual send work is done by doPostRequestMultipart.
url - The URL to send the request to.request_string - The request XML.data - The data.
ConnectorException - f.e.BKUPostConnection.doPostRequestMultipart(String, String,
SignatureData)
public SignSignatureObject doSign(SignatureData data)
throws ConnectorException
doSign in interface Connectordata - The data to be signed.
ConnectorException - f.e.
public SignatureResponse doVerify(SignatureData data,
SignSignatureObject so)
throws ConnectorException
doVerify in interface Connectordata - The data to be verified.so - The signature object with the signature information.
ConnectorException - f.e.
public String prepareVerifyRequest(SignatureData data,
SignSignatureObject so)
throws ConnectorException
prepareVerifyRequest in interface LocalConnectordata - The SignatureData.so - The signature information object.
ConnectorException - f.e.
public String prepareXMLContent(SignatureData data,
SignSignatureObject so)
throws ConnectorException
This strongly rebuilds the XML content as retuned from a sign request.
data - The data.so - The signature object containing the signature information.
ConnectorException - f.e.
public SignatureResponse analyzeVerifyResponse(Properties response_properties)
throws ConnectorException
analyzeVerifyResponse in interface LocalConnectorresponse_properties - The response properties containing the response XML.
ConnectorException - f.e.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||