|
|||||||||||
| 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.mocca.LocRefDetachedMOCCAConnector
Connector for MOCCA.
| Nested Class Summary | |
static class |
LocRefDetachedMOCCAConnector.Environment
Holds environment configuration information like templates. |
| Field Summary | |
protected LocRefDetachedMOCCAConnector.Environment |
environment
The environment of this connector containing templates. |
protected ConnectorParameters |
params
The connector parameters. |
| Constructor Summary | |
LocRefDetachedMOCCAConnector(ConnectorParameters connectorParameters,
String loc_ref_content)
Constructor that builds the configuration environment for this connector according to the given profile. |
|
LocRefDetachedMOCCAConnector(ConnectorParameters connectorParameters,
String loc_ref_content,
String algorithmId)
Constructor that builds the configuration environment for this connector according to the given profile. |
|
| Method Summary | |
SignSignatureObject |
analyzeSignResponse(Properties response_properties)
This method analyzes a signature response of the signature device. |
SignatureResponse |
analyzeVerifyResponse(Properties response_properties)
Verification is not supported by MOCCA. |
SignSignatureObject |
doSign(SignatureData data)
Starts a signature process. |
SignatureResponse |
doVerify(SignatureData data,
SignSignatureObject so)
Verification is not supported by MOCCA. |
protected String |
parseSigId(String sigIdString)
Parses the common part for all id attributes from a given signature parameter string. |
String |
prepareSignRequest(SignatureData data)
Prepares the signature request xml to be sent using the sign request template. |
String |
prepareVerifyRequest(SignatureData data,
SignSignatureObject so)
Verification is not supported by MOCCA. |
String |
prepareXMLContent(SignatureData data,
SignSignatureObject so)
Prepares the xml content of a signature creation request including the link to the signature data. |
protected Properties |
sendRequest(String url,
String request_string,
SignatureData data)
Sends the request 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 LocRefDetachedMOCCAConnector.Environment environment
| Constructor Detail |
public LocRefDetachedMOCCAConnector(ConnectorParameters connectorParameters,
String loc_ref_content)
throws ConnectorException
connectorParameters - The connectot parameters.
ConnectorException - Thrown in case of error.
public LocRefDetachedMOCCAConnector(ConnectorParameters connectorParameters,
String loc_ref_content,
String algorithmId)
throws ConnectorException
connectorParameters - The connectot parameters.algorithmId - The algorithm idenifier.
ConnectorException - Thrown in case of error.| Method Detail |
protected Properties sendRequest(String url,
String request_string,
SignatureData data)
throws ConnectorException
url - The URL to send the request to.request_string - The request XML.data - The data.
ConnectorException - Thrown in case of an error.BKUPostConnection.doPostRequestMultipart(String, String, SignatureData)
public SignSignatureObject doSign(SignatureData data)
throws ConnectorException
doSign in interface Connectordata - The data to be signed.
ConnectorException - Thrown in case of an error.
public SignatureResponse doVerify(SignatureData data,
SignSignatureObject so)
throws ConnectorException
ConnectorException with error code ErrorCode.SIGNATURE_VERIFICATION_NOT_SUPPORTED.
doVerify in interface Connectordata - The data to be verified.so - The signature object with the signature information.
ConnectorException - Thrown if something goes wrong.
public SignSignatureObject analyzeSignResponse(Properties response_properties)
throws ConnectorException
analyzeSignResponse in interface LocalConnectorresponse_properties - The response elements of the signature device.
ConnectorException - Thrown in case of an error.
public SignatureResponse analyzeVerifyResponse(Properties response_properties)
throws ConnectorException
ConnectorException with error code ErrorCode.SIGNATURE_VERIFICATION_NOT_SUPPORTED.
analyzeVerifyResponse in interface LocalConnectorresponse_properties - The response properties containing the response XML.
ConnectorException - f.e.
public String prepareSignRequest(SignatureData data)
throws ConnectorException
prepareSignRequest in interface LocalConnectordata - The signature data.
ConnectorException - Thrown in case of an error.
public String prepareVerifyRequest(SignatureData data,
SignSignatureObject so)
throws ConnectorException
ConnectorException with error code ErrorCode.SIGNATURE_VERIFICATION_NOT_SUPPORTED.
prepareVerifyRequest in interface LocalConnectordata - The SignatureData.so - The signature information object.
ConnectorException - f.e.
public String prepareXMLContent(SignatureData data,
SignSignatureObject so)
throws ConnectorException
data - The signature data.so - The signature object containing the signature information.
ConnectorException - Thrown in case of an error.protected String parseSigId(String sigIdString)
sigIdString - The given signature parameter string.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||