diff options
Diffstat (limited to 'src/main/java/at/gv/egiz/pdfas/impl/api')
-rw-r--r-- | src/main/java/at/gv/egiz/pdfas/impl/api/internal/PdfAsInternalObject.java | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/src/main/java/at/gv/egiz/pdfas/impl/api/internal/PdfAsInternalObject.java b/src/main/java/at/gv/egiz/pdfas/impl/api/internal/PdfAsInternalObject.java index c457bd3..4e36c24 100644 --- a/src/main/java/at/gv/egiz/pdfas/impl/api/internal/PdfAsInternalObject.java +++ b/src/main/java/at/gv/egiz/pdfas/impl/api/internal/PdfAsInternalObject.java @@ -64,6 +64,7 @@ import at.knowcenter.wag.egov.egiz.sig.signaturelayout.SignatureLayoutHandlerFac import at.knowcenter.wag.egov.egiz.sig.signatureobject.SignatureObjectHelper;
/**
+ * @see PdfAsInternal
*
* @author mmocnik
*
@@ -74,11 +75,17 @@ public class PdfAsInternalObject implements PdfAsInternal { */
private static Log log = LogFactory.getLog(CheckHelper.class);
+ /**
+ * @see PdfAsInternal#verifyBKUSupport(LocalBKUParams)
+ */
public void verifyBKUSupport(LocalBKUParams bkuParams) throws ConnectorException, SettingsException {
String bkuIdentifier = BKUHelper.getBKUIdentifier(bkuParams);
SignatureLayoutHandlerFactory.verifyBKUSupport(bkuIdentifier);
}
+ /**
+ * @see PdfAsInternal#finishLocalSign(PdfAs, SignParameters, SignatureDetailInformation, LocalBKUParams, String)
+ */
public SignResult finishLocalSign(PdfAs pdfAs, SignParameters signParameters, SignatureDetailInformation sdi, LocalBKUParams bkuParams, String xmlResponse) throws PdfAsException {
LocalConnector c = chooseLocalConnectorForSign(signParameters.getSignatureDevice(), signParameters.getSignatureProfileId(), "not needed");
SignSignatureObject sso = c.analyzeSignResponse(buildResponseProperties(bkuParams, xmlResponse));
@@ -179,7 +186,9 @@ public class PdfAsInternalObject implements PdfAsInternal { throw new ConnectorException(ErrorCode.UNSUPPORTED_SIGNATURE, "The SIG_KZ version '" + sig_kz.getVersion() + "' is unknown.");
}
-
+ /**
+ * @see PdfAsInternal#getLocalServiceAddress(String, String)
+ */
public String getLocalServiceAddress(String profile, String device) throws SettingsException {
SettingsReader settings = SettingsReader.getInstance();
@@ -192,6 +201,9 @@ public class PdfAsInternalObject implements PdfAsInternal { return value;
}
+ /**
+ * @see PdfAsInternal#prepareLocalSignRequest(SignParameters, String, SignatureDetailInformation)
+ */
public String prepareLocalSignRequest(SignParameters signParameters, String loc_ref_url,
SignatureDetailInformation sdi) throws ConnectorException {
LocalConnector c = chooseLocalConnectorForSign(signParameters.getSignatureDevice(), signParameters.getSignatureProfileId(), loc_ref_url);
@@ -200,6 +212,9 @@ public class PdfAsInternalObject implements PdfAsInternal { return sign_request;
}
+ /**
+ * @see PdfAsInternal#analyzeFromRawText(String, Map)
+ */
public AnalyzeResult analyzeFromRawText(String rawText, Map sigValues) throws SignatureException, SettingsException, SignatureTypesException, NormalizeException {
String normalizedText = PdfAS.normalizeText(rawText);
@@ -225,6 +240,9 @@ public class PdfAsInternalObject implements PdfAsInternal { return ret;
}
+ /**
+ * @see PdfAsInternal#prepareLocalVerifyRequest(SignatureInformation, String, String, String)
+ */
public String prepareLocalVerifyRequest(SignatureInformation sigInfo, String connector, String profile, String loc_ref_url) throws SignatureException, ConnectorException {
SignatureHolder holder = (SignatureHolder)sigInfo.getInternalSignatureInformation();
@@ -240,6 +258,9 @@ public class PdfAsInternalObject implements PdfAsInternal { return request_string;
}
+ /**
+ * @see PdfAsInternal#finishLocalVerify(SignatureInformation, String, String, String, String)
+ */
public VerifyResult finishLocalVerify(SignatureInformation sigInfo, String connector, String profile, String loc_ref_url, String xmlResponse) throws SignatureException, ConnectorException {
SignatureHolder holder = (SignatureHolder)sigInfo.getInternalSignatureInformation();
SignatureObject s = holder.getSignatureObject();
@@ -254,6 +275,9 @@ public class PdfAsInternalObject implements PdfAsInternal { return new VerifyResultAdapter(sigResponse, holder, null);
}
+ /**
+ * @see PdfAsInternal#getSignatureEntryFromSignatureInformation(String, SignatureInformation)
+ */
public SignatureEntry getSignatureEntryFromSignatureInformation(String key,
SignatureInformation sigInfo) {
@@ -268,6 +292,9 @@ public class PdfAsInternalObject implements PdfAsInternal { return ret;
}
+ /**
+ * @see PdfAsInternal#getSignedText(SignatureInformation)
+ */
public String getSignedText(SignatureInformation sigInfo) {
SignatureHolder holder = (SignatureHolder)sigInfo.getInternalSignatureInformation();
if (holder instanceof TextualSignatureHolder)
@@ -275,6 +302,9 @@ public class PdfAsInternalObject implements PdfAsInternal { return null;
}
+ /**
+ * @see PdfAsInternal#getConnectorsAvailableForWeb()
+ */
public Map getConnectorsAvailableForWeb() throws ConnectorFactoryException {
ConnectorInformation ci[] = ConnectorFactory.getConnectorInformationArray();
|