Package se.digg.dgc.signatures
Class DGCSignatureVerifier.Result
- java.lang.Object
-
- se.digg.dgc.signatures.DGCSignatureVerifier.Result
-
- Enclosing interface:
- DGCSignatureVerifier
public static class DGCSignatureVerifier.Result extends Object
Represents the successful result of a HCERT signature verification.
-
-
Constructor Summary
Constructors Constructor Description Result(byte[] dgcPayload, X509Certificate signerCertificate, String country, Instant issuedAt, Instant expires)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCountry()
Gets the ISO-3166 code for the issuing country.byte[]
getDgcPayload()
Gets the CBOR encoded DGC payload.Instant
getExpires()
Gets the expiration time of the HCERT.Instant
getIssuedAt()
Gets the issuance time of the HCERT.X509Certificate
getSignerCertificate()
Gets the certificate that was used to verify the signature.
-
-
-
Constructor Detail
-
Result
public Result(byte[] dgcPayload, X509Certificate signerCertificate, String country, Instant issuedAt, Instant expires)
Constructor.- Parameters:
dgcPayload
- the CBOR encoded DGC payloadsignerCertificate
- the certificate that was used to verify the signaturecountry
- the ISO-3166 code for the issuing countryissuedAt
- the issuance time of the DGCexpires
- the expiration time of the DGC
-
-
Method Detail
-
getDgcPayload
public byte[] getDgcPayload()
Gets the CBOR encoded DGC payload.- Returns:
- the CBOR encoded DGC payload
-
getSignerCertificate
public X509Certificate getSignerCertificate()
Gets the certificate that was used to verify the signature.- Returns:
- the certificate used to verify the signature
-
getCountry
public String getCountry()
Gets the ISO-3166 code for the issuing country.- Returns:
- country code
-
getIssuedAt
public Instant getIssuedAt()
Gets the issuance time of the HCERT.- Returns:
- issuance time
-
getExpires
public Instant getExpires()
Gets the expiration time of the HCERT.- Returns:
- the expiration time
-
-