Documentation
¶
Index ¶
Constants ¶
View Source
const DOCUMENT_NAME = "RemoteDocument"
View Source
const TOKEN_EXTRACTION_STRATEGY = "NONE"
Variables ¶
View Source
var ErrorBadResponse = errors.New("bad_response_from_validation_endpoint")
View Source
var ErrorEmptyBodyResponse = errors.New("empty_body_response_from_validation_endpoint")
View Source
var ErrorValidationServiceNotReady = errors.New("validation_service_not_ready")
Functions ¶
This section is empty.
Types ¶
type ExternalJAdESValidator ¶
type ExternalJAdESValidator struct {
HttpClient common.HttpClient
ValidationAddress string
HealthAddress string
}
Validator implementation, that uses an external validation service(based on https://github.com/esig/dss)
func (*ExternalJAdESValidator) IsReady ¶
func (v *ExternalJAdESValidator) IsReady() error
health check function, to signal the external service beeing ready
func (*ExternalJAdESValidator) ValidateSignature ¶
func (v *ExternalJAdESValidator) ValidateSignature(signature string) (success bool, err error)
type JAdESValidator ¶
Validator for JAdES(https://www.etsi.org/deliver/etsi_ts/119100_119199/11918201/01.01.01_60/ts_11918201v010101p.pdf) signatures
type SignedDocument ¶
type SimpleReport ¶
type ValidationRequest ¶
type ValidationRequest struct {
SignedDocument SignedDocument `json:"signedDocument"`
TokenExtractionStrategy string `json:"tokenExtractionStrategy"`
}
type ValidationResponse ¶
type ValidationResponse struct {
SimpleReport SimpleReport `json:"simpleReport"`
}
Click to show internal directories.
Click to hide internal directories.