|
||||||||||
| 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.BKUConnector
public class BKUConnector
Connector for communicating with BKU.
| Field Summary | |
|---|---|
static ConnectorInformation |
CONNECTOR_INFORMATION
ConnectorInformation that identifies this Connector to the system. |
| Constructor Summary | |
|---|---|
BKUConnector()
The empty constructor |
|
| Method Summary | |
|---|---|
SignatureObject |
analyzeSignResponse(Properties response_properties,
String sigType)
Analyzes the sign response string. |
SignatureResponse |
analyzeVerifyResponse(Properties response_properties)
Analyzes the verify response string. |
SignatureObject |
doSign(String sigType,
String userName,
String signText)
This method calls the BKU signing a given text. |
SignatureResponse |
doVerify(String normalizedText,
SignatureObject sigObject)
This method generates the BKU verify prozess. |
protected String |
getConnectorValueFromProfile(String profile,
String key)
|
protected String |
getSignKeyboxIdentifier(String profile)
|
protected String |
getSignRequestTemplateFileName(String profile)
|
String |
getSignURL(String profile)
Returns the sign URL of the local service. |
protected String |
getSigPropFileName(String profile)
|
protected String |
getType()
Returns the type of this BKU-like connector. |
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)
|
String |
getVerifyURL(String profile)
Returns the verify URL of the local service. |
String |
prepareSignRequest(String userName,
String signText,
String signType)
Prepares the sign request string. |
String |
prepareVerifyRequest(String normalizedText,
SignatureObject sigObject)
Prepares the verify request string. |
protected Properties |
sendRequest(String url,
String request_string)
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 |
|---|
public static final ConnectorInformation CONNECTOR_INFORMATION
ConnectorFactory,
ConnectorInformation| Constructor Detail |
|---|
public BKUConnector()
throws SignatureException
SignatureException| Method Detail |
|---|
public SignatureObject doSign(String sigType,
String userName,
String signText)
throws SignatureException
doSign in interface ConnectorsigType - the type of the SignatureObject that should be returneduserName - the name of the user calling this methodsignText - the text that shoulf be signed from BKU
SignatureExceptionSignatureObject
public SignatureResponse doVerify(String normalizedText,
SignatureObject sigObject)
throws SignatureException
doVerify in interface ConnectornormalizedText - the normalized text to verifysigObject - the SignatureObject holding the singature values
SignatureExceptionSignatureResponse
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 String prepareSignRequest(String userName,
String signText,
String signType)
throws SignatureException
LocalConnector
prepareSignRequest in interface LocalConnectoruserName - The user name.signText - The text to be signed.signType - The type of the signature.
SignatureException - F.e.
public String prepareVerifyRequest(String normalizedText,
SignatureObject sigObject)
throws SignatureException
LocalConnector
prepareVerifyRequest in interface LocalConnectornormalizedText - The signed text to be verified.sigObject - The SignatureObject.
SignatureException - F.e.
protected Properties sendRequest(String url,
String request_string)
throws SignatureException
url - The URL.request_string - The request string.
SignatureException - F.e.
public SignatureObject analyzeSignResponse(Properties response_properties,
String sigType)
throws SignatureException
LocalConnector
analyzeSignResponse in interface LocalConnectorsigType - The type of the signature.
SignatureException - F.e.
public SignatureResponse analyzeVerifyResponse(Properties response_properties)
throws SignatureException
LocalConnector
analyzeVerifyResponse in interface LocalConnectorSignatureException - F.e.
protected String getConnectorValueFromProfile(String profile,
String key)
public String getSignURL(String profile)
LocalConnector
getSignURL in interface LocalConnectorprofile - The signature type the URL should be retrieved from.
protected String getSignRequestTemplateFileName(String profile)
protected String getSignKeyboxIdentifier(String profile)
public String getVerifyURL(String profile)
LocalConnector
getVerifyURL in interface LocalConnectorprofile - The signature type the URL should be retrieved from.
protected String getVerifyRequestTemplateFileName(String profile)
protected String getVerifyTemplateFileName(String profile)
protected String getSigPropFileName(String profile)
protected String getType()
All settings keys will be prefixed by this type. So to reuse the BKU connector, a deriving class has to implement this method specifying an own type.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||