|
||||||||||
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.MOAConnector
public class MOAConnector
Connector to access the MOA service.
Field Summary | |
---|---|
static ConnectorInformation |
CONNECTOR_INFORMATION
ConnectorInformation that identifies this Connector to the system. |
static String |
DESCRIPTION
The connector description. |
static String |
SERVICE_SIGN
MOA siganture creation mode |
static String |
SERVICE_VERIFY
MOA siganture verification mode |
Constructor Summary | |
---|---|
MOAConnector()
The empty constructor |
Method Summary | |
---|---|
static String |
connectMOA(String requestString,
String serviceMode,
String endpointURL)
This method connects the moa server getting the requestString, the given serviseMode and the endpointUrl. |
SignatureObject |
doSign(String sigType,
String userName,
String signText)
This method calls the MOA signing a given text. |
SignatureResponse |
doVerify(String normalizedText,
SignatureObject sigObject)
This method generates the MOA verify prozess. |
protected String |
getConnectorValueFromProfile(String profile,
String key)
|
protected String |
getSignKeyIdentifier(String profile)
|
protected String |
getSignRequestTemplateFileName(String profile)
|
String |
getSignURL(String profile)
|
protected String |
getSigPropFileName(String profile)
|
protected String |
getVerifyRequestTemplateFileName(String profile)
|
String |
getVerifyTemplate(String normalizedText,
SignatureObject sigObject)
This method reads the verify template from the file system and fills out the template with the SignatureObject values. |
protected String |
getVerifyTemplateFileName(String profile)
|
protected String |
getVerifyTrustProfileID(String profile)
|
String |
getVerifyURL(String profile)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ConnectorInformation CONNECTOR_INFORMATION
ConnectorFactory
,
ConnectorInformation
public static final String DESCRIPTION
public static final String SERVICE_VERIFY
public static final String SERVICE_SIGN
Constructor Detail |
---|
public MOAConnector() throws SignatureException
SignatureException
Method Detail |
---|
public SignatureObject doSign(String sigType, String userName, String signText) throws SignatureException
doSign
in interface Connector
sigType
- the type of the SignatureObject that should be returneduserName
- the name of the user calling this methodsignText
- the text that shoulf be signed from MOA
SignatureException
- ErrorCode 300SignatureObject
public String getVerifyTemplate(String normalizedText, SignatureObject sigObject) throws SignatureException
normalizedText
- the normalized text to veryfiedsigObject
- the SignatureObject holding the singature values
SignatureException
- ErrorCode (311, 312, 313)SignatureObject
,
CodingHelper
public SignatureResponse doVerify(String normalizedText, SignatureObject sigObject) throws SignatureException
doVerify
in interface Connector
normalizedText
- the normalized text to verifysigObject
- the SignatureObject holding the singature values
SignatureException
SignatureResponse
protected String getConnectorValueFromProfile(String profile, String key)
public String getSignURL(String profile)
protected String getSignRequestTemplateFileName(String profile)
protected String getSignKeyIdentifier(String profile)
public String getVerifyURL(String profile)
protected String getVerifyRequestTemplateFileName(String profile)
protected String getVerifyTemplateFileName(String profile)
protected String getSigPropFileName(String profile)
protected String getVerifyTrustProfileID(String profile)
public static String connectMOA(String requestString, String serviceMode, String endpointURL) throws WebException
requestString
- the request string (XML) to send.serviceMode
- the mode which connect to MOAendpointURL
- the URL which the MOA server is running
WebException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |