|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.gv.egiz.pdfas.impl.api.internal.PdfAsInternalObject
public class PdfAsInternalObject
PdfAsInternal| Constructor Summary | |
|---|---|
PdfAsInternalObject()
|
|
| Method Summary | |
|---|---|
AnalyzeResult |
analyzeFromRawText(String rawText,
Map sigValues)
Create an AnalyzeResult from raw text, instead of a PDF. |
SignResult |
finishLocalSign(PdfAs pdfAs,
SignParameters signParameters,
SignatureDetailInformation sdi,
LocalBKUParams bkuParams,
boolean multipart,
String xmlResponse)
Finish the sign process. |
VerifyResult |
finishLocalVerify(SignatureInformation sigInfo,
String connector,
String profile,
String loc_ref_url,
String xmlResponse)
Parse the given xml_response - must be a VerifyXMLSignatureResponse - from the BKU or Mocca and generates a VerifyResult from it. |
Map |
getConnectorsAvailableForWeb()
Get a map of all connectors available for web. |
String |
getLocalServiceAddress(String profile,
String device)
Get the security layer address for the given connector. |
SignatureEntry |
getSignatureEntryFromSignatureInformation(String key,
SignatureInformation sigInfo)
Get the SignatureEntry corresponding to a given SignatureInformation |
String |
getSignedText(SignatureInformation sigInfo)
Get the signed text for a given sigInfo. |
String |
prepareLocalSignRequest(SignParameters signParameters,
boolean multipart,
String loc_ref_url,
SignatureDetailInformation sdi)
Get the CreateXMLSignatureRequest for the given parameters. |
String |
prepareLocalVerifyRequest(SignatureInformation sigInfo,
String connector,
String profile,
String loc_ref_url)
Create the SecurityLayer VerifyXMLSignatureRequest for the given parameters. |
void |
verifyBKUSupport(LocalBKUParams bkuParams)
Check if a BKU with the given parameters is supported. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PdfAsInternalObject()
| Method Detail |
|---|
public void verifyBKUSupport(LocalBKUParams bkuParams)
throws ConnectorException,
SettingsException
PdfAsInternal
verifyBKUSupport in interface PdfAsInternalConnectorException - if the BKU is not supported
SettingsException - if the BKU is not supportedPdfAsInternal.verifyBKUSupport(LocalBKUParams)
public SignResult finishLocalSign(PdfAs pdfAs,
SignParameters signParameters,
SignatureDetailInformation sdi,
LocalBKUParams bkuParams,
boolean multipart,
String xmlResponse)
throws PdfAsException
PdfAsInternal
finishLocalSign in interface PdfAsInternalsdi - This info will most likely come from a PdfAs.prepareSign(SignParameters) callxmlResponse - the SecurityLayer response from the BKU
PdfAsExceptionPdfAsInternal#finishLocalSign(PdfAs, SignParameters, SignatureDetailInformation, LocalBKUParams, String)
public String getLocalServiceAddress(String profile,
String device)
throws SettingsException
PdfAsInternal
getLocalServiceAddress in interface PdfAsInternalSettingsExceptionPdfAsInternal.getLocalServiceAddress(String, String)
public String prepareLocalSignRequest(SignParameters signParameters,
boolean multipart,
String loc_ref_url,
SignatureDetailInformation sdi)
throws ConnectorException
PdfAsInternal
prepareLocalSignRequest in interface PdfAsInternalsignParameters - the sign parameters. SignParameters.getSignatureDevice() determines the connector to use.multipart - true to select a LocalConnector that uses multipart requestsloc_ref_url - the URL where to retrieve the PDF to signsdi - SignatureDetailInformation.getSignatureData() provides the data to be signed.
ConnectorExceptionPdfAsInternal#prepareLocalSignRequest(SignParameters, String, SignatureDetailInformation)
public AnalyzeResult analyzeFromRawText(String rawText,
Map sigValues)
throws SignatureException,
SettingsException,
SignatureTypesException,
NormalizeException
PdfAsInternal
analyzeFromRawText in interface PdfAsInternalsigValues - the signature values
SignatureException
SettingsException
SignatureTypesException
NormalizeExceptionPdfAsInternal.analyzeFromRawText(String, Map)
public String prepareLocalVerifyRequest(SignatureInformation sigInfo,
String connector,
String profile,
String loc_ref_url)
throws SignatureException,
ConnectorException
PdfAsInternal
prepareLocalVerifyRequest in interface PdfAsInternalSignatureException
ConnectorExceptionPdfAsInternal.prepareLocalVerifyRequest(SignatureInformation, String, String, String)
public VerifyResult finishLocalVerify(SignatureInformation sigInfo,
String connector,
String profile,
String loc_ref_url,
String xmlResponse)
throws SignatureException,
ConnectorException
PdfAsInternal
finishLocalVerify in interface PdfAsInternalSignatureException
ConnectorExceptionPdfAsInternal.finishLocalVerify(SignatureInformation, String, String, String, String)
public SignatureEntry getSignatureEntryFromSignatureInformation(String key,
SignatureInformation sigInfo)
PdfAsInternalSignatureEntry corresponding to a given SignatureInformation
getSignatureEntryFromSignatureInformation in interface PdfAsInternalPdfAsInternal.getSignatureEntryFromSignatureInformation(String, SignatureInformation)public String getSignedText(SignatureInformation sigInfo)
PdfAsInternal
getSignedText in interface PdfAsInternalPdfAsInternal.getSignedText(SignatureInformation)
public Map getConnectorsAvailableForWeb()
throws ConnectorFactoryException
PdfAsInternal
getConnectorsAvailableForWeb in interface PdfAsInternalConnectorFactoryExceptionPdfAsInternal.getConnectorsAvailableForWeb()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||