public class OOXMLSignatureVerifier extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DIGITAL_SIGNATURE_ORIGIN_REL_TYPE |
static String |
DIGITAL_SIGNATURE_REL_TYPE |
static String[] |
excludedStreams |
Constructor and Description |
---|
OOXMLSignatureVerifier() |
Modifier and Type | Method and Description |
---|---|
Document |
getSignatureDocument(InputStream documentInputStream,
String signatureResourceName) |
Document |
getSignatureDocument(URL url,
String signatureResourceName) |
List<String> |
getSignatureResourceNames(byte[] document) |
List<String> |
getSignatureResourceNames(URL url) |
List<X509Certificate> |
getSigners(URL url) |
static boolean |
isOOXML(URL url)
Checks whether the file referred by the given URL is an OOXML document.
|
boolean |
isValidOOXMLSignature(XMLSignature xmlSignature,
byte[] document) |
public static final String DIGITAL_SIGNATURE_ORIGIN_REL_TYPE
public static final String DIGITAL_SIGNATURE_REL_TYPE
public static String[] excludedStreams
public static boolean isOOXML(URL url) throws IOException
url
- IOException
public List<X509Certificate> getSigners(URL url) throws IOException, ParserConfigurationException, SAXException, TransformerException, MarshalException, XMLSignatureException, JAXBException
public Document getSignatureDocument(URL url, String signatureResourceName) throws IOException, ParserConfigurationException, SAXException
public Document getSignatureDocument(InputStream documentInputStream, String signatureResourceName) throws IOException, ParserConfigurationException, SAXException
public List<String> getSignatureResourceNames(byte[] document) throws IOException, JAXBException
IOException
JAXBException
public boolean isValidOOXMLSignature(XMLSignature xmlSignature, byte[] document) throws IOException, TransformerException, SAXException, ParserConfigurationException
public List<String> getSignatureResourceNames(URL url) throws IOException, ParserConfigurationException, SAXException, TransformerException, JAXBException
Copyright © 2008-2018 FedICT. All Rights Reserved.