Package es.gob.afirma.integraFacade
Class ValidateRequest
- java.lang.Object
-
- es.gob.afirma.integraFacade.ValidateRequest
-
public final class ValidateRequest extends java.lang.ObjectClass that manages the verification of the requests for @Firma web services.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
- Version:
- 1.0, 16/12/2014.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringvalidateArchiveRequest(ArchiveRequest archiveRequest)Method that validates whether the attributes for the request message to invoke the archive signatures retrieve service are correct.static java.lang.StringvalidateBatchVerifyCertificateRequest(BatchVerifyCertificateRequest batVerCerReq)Method that validates whether the attributes for the request message to invoke the verify certificates on batch service are correct.static java.lang.StringvalidateBatchVerifySignatureRequest(BatchVerifySignatureRequest batVerSigReq)Method that validates whether the attributes for the request message to invoke the verify signatures on batch service are correct.static java.lang.StringvalidateContentRequest(ContentRequest conReq)Method that validates whether the attributes for the request message to invoke the services related to the content of a document are correct.static java.lang.StringvalidateCoSignRequest(CoSignRequest coSigReq)Method that validates whether the attributes for the request message to invoke the server co-signature service are correct.static java.lang.StringvalidateCounterSignRequest(CounterSignRequest couSigReq)Method that validates whether the attributes for the request message to invoke the server counter-signature service are correct.static java.lang.StringvalidateDocumentRequest(DocumentRequest docReq)Method that validates whether the attributes for the request message to invoke the services related to retrieve a document are correct.static java.lang.StringvalidatePendingRequest(PendingRequest pendingRequest)Method that validates whether the attributes for the request message to invoke the async processes of sign and verify service are correct.static java.lang.StringvalidateServerSignerRequest(ServerSignerRequest serSigReq)Method that validates whether the attributes for the request message to invoke the server signature service are correct.static java.lang.StringvalidateTimestampRequest(TimestampRequest timestampReq)Method that validates whether the attributes for the request message to invoke the server signature service are correct.static java.lang.StringvalidateUpgradeSignatureRequest(UpgradeSignatureRequest upgSigReq)Method that validates whether the attributes for the request message to invoke the upgrade signature service are correct.static java.lang.StringvalidateVerifyCertificateRequest(VerifyCertificateRequest verCerReq)Method that validates whether the attributes for the request message to invoke the verify certificate service are correct.static java.lang.StringvalidateVerifySignerRequest(VerifySignatureRequest verSigReq)Method that validates whether the attributes for the request message to invoke the verify signature service are correct.
-
-
-
Method Detail
-
validateServerSignerRequest
public static java.lang.String validateServerSignerRequest(ServerSignerRequest serSigReq)
Method that validates whether the attributes for the request message to invoke the server signature service are correct.- Parameters:
serSigReq- Parameter that represents the request message.- Returns:
- a message with the result of the validation.
-
validateCoSignRequest
public static java.lang.String validateCoSignRequest(CoSignRequest coSigReq)
Method that validates whether the attributes for the request message to invoke the server co-signature service are correct.- Parameters:
coSigReq- Parameter that represents the request message.- Returns:
- a message with the result of the validation.
-
validateCounterSignRequest
public static java.lang.String validateCounterSignRequest(CounterSignRequest couSigReq)
Method that validates whether the attributes for the request message to invoke the server counter-signature service are correct.- Parameters:
couSigReq- Parameter that represents the request message.- Returns:
- a message with the result of the validation.
-
validateVerifySignerRequest
public static java.lang.String validateVerifySignerRequest(VerifySignatureRequest verSigReq)
Method that validates whether the attributes for the request message to invoke the verify signature service are correct.- Parameters:
verSigReq- Parameter that represents the request message.- Returns:
- a message with the result of the validation.
-
validateUpgradeSignatureRequest
public static java.lang.String validateUpgradeSignatureRequest(UpgradeSignatureRequest upgSigReq)
Method that validates whether the attributes for the request message to invoke the upgrade signature service are correct.- Parameters:
upgSigReq- Parameter that represents the request message.- Returns:
- a message with the result of the validation.
-
validateVerifyCertificateRequest
public static java.lang.String validateVerifyCertificateRequest(VerifyCertificateRequest verCerReq)
Method that validates whether the attributes for the request message to invoke the verify certificate service are correct.- Parameters:
verCerReq- Parameter that represents the request message.- Returns:
- a message with the result of the validation.
-
validateBatchVerifySignatureRequest
public static java.lang.String validateBatchVerifySignatureRequest(BatchVerifySignatureRequest batVerSigReq)
Method that validates whether the attributes for the request message to invoke the verify signatures on batch service are correct.- Parameters:
batVerSigReq- Parameter that represents the request message.- Returns:
- a message with the result of the validation.
-
validateBatchVerifyCertificateRequest
public static java.lang.String validateBatchVerifyCertificateRequest(BatchVerifyCertificateRequest batVerCerReq)
Method that validates whether the attributes for the request message to invoke the verify certificates on batch service are correct.- Parameters:
batVerCerReq- Parameter that represents the request message.- Returns:
- a message with the result of the validation.
-
validatePendingRequest
public static java.lang.String validatePendingRequest(PendingRequest pendingRequest)
Method that validates whether the attributes for the request message to invoke the async processes of sign and verify service are correct.- Parameters:
pendingRequest- Parameter that represents the request message.- Returns:
- a message with the result of the validation.
-
validateArchiveRequest
public static java.lang.String validateArchiveRequest(ArchiveRequest archiveRequest)
Method that validates whether the attributes for the request message to invoke the archive signatures retrieve service are correct.- Parameters:
archiveRequest- Parameter that represents the request message.- Returns:
- a message with the result of the validation.
-
validateContentRequest
public static java.lang.String validateContentRequest(ContentRequest conReq)
Method that validates whether the attributes for the request message to invoke the services related to the content of a document are correct.- Parameters:
conReq- Parameter that represents the request message.- Returns:
- a message with the result of the validation.
-
validateDocumentRequest
public static java.lang.String validateDocumentRequest(DocumentRequest docReq)
Method that validates whether the attributes for the request message to invoke the services related to retrieve a document are correct.- Parameters:
docReq- Parameter that represents the request message.- Returns:
- a message with the result of the validation.
-
validateTimestampRequest
public static java.lang.String validateTimestampRequest(TimestampRequest timestampReq)
Method that validates whether the attributes for the request message to invoke the server signature service are correct.- Parameters:
timestampReq- Parameter that represents the request message.- Returns:
- a message with the result of the validation.
-
-