Package se.digg.dgc.signatures
Interface DGCSignatureVerifier
-
- All Known Implementing Classes:
DefaultDGCSignatureVerifier
public interface DGCSignatureVerifier
An interface for a DCC signature verifier.- Author:
- Martin Lindström (martin@idsec.se), Henrik Bengtsson (extern.henrik.bengtsson@digg.se), Henric Norlander (extern.henric.norlander@digg.se)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DGCSignatureVerifier.Result
Represents the successful result of a HCERT signature verification.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DGCSignatureVerifier.Result
verify(byte[] signedCwt, CertificateProvider certificateProvider)
Verifies the signature and validity of the supplied signed DCC.
-
-
-
Method Detail
-
verify
DGCSignatureVerifier.Result verify(byte[] signedCwt, CertificateProvider certificateProvider) throws SignatureException, CertificateExpiredException
Verifies the signature and validity of the supplied signed DCC.Note: This method only checks the signature and the validity of the DCC. Any other checks must be done after this method has completed successfully.
- Parameters:
signedCwt
- the signed CWT holding the DCCcertificateProvider
- the provider that is used to find the certificate(s) to use when validating the signature- Returns:
- if signature verification a Result object containing the DCC payload along with its metadata is returned
- Throws:
SignatureException
- for signature validation errorsCertificateExpiredException
- if the DCC has expired
-
-