Package google.registry.tmch
Class TmchXmlSignature
java.lang.Object
google.registry.tmch.TmchXmlSignature
Helper class for verifying TMCH certificates and XML signatures.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
CertificateException wrapper. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
verify
(byte[] smdXml) Verifies that signed mark data contains a valid signature.
-
Constructor Details
-
TmchXmlSignature
-
-
Method Details
-
verify
public void verify(byte[] smdXml) throws GeneralSecurityException, IOException, MarshalException, ParserConfigurationException, SAXException, XMLSignatureException Verifies that signed mark data contains a valid signature.This method DOES NOT check if the SMD ID is revoked. It's only concerned with the cryptographic stuff.
- Throws:
GeneralSecurityException
- for unsupported protocols, certs not signed by the TMCH, incorrect keys, and for invalid, old, not-yet-valid or revoked certificates.IOException
MarshalException
ParserConfigurationException
SAXException
XMLSignatureException
-