Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* ====================================================================
  2. Licensed to the Apache Software Foundation (ASF) under one or more
  3. contributor license agreements. See the NOTICE file distributed with
  4. this work for additional information regarding copyright ownership.
  5. The ASF licenses this file to You under the Apache License, Version 2.0
  6. (the "License"); you may not use this file except in compliance with
  7. the License. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. ==================================================================== */
  15. /*
  16. * Based on the eID Applet Project code.
  17. * Original Copyright (C) 2008-2009 FedICT.
  18. */
  19. package org.apache.poi.ooxml.signature.service.signer;
  20. import java.security.InvalidAlgorithmParameterException;
  21. import java.security.NoSuchAlgorithmException;
  22. import java.util.List;
  23. import javax.xml.crypto.dsig.Reference;
  24. import javax.xml.crypto.dsig.XMLObject;
  25. import javax.xml.crypto.dsig.XMLSignatureFactory;
  26. import org.w3c.dom.Document;
  27. /**
  28. * JSR105 Signature Aspect interface.
  29. */
  30. public interface SignatureAspect {
  31. /**
  32. * This method is being invoked by the XML signature service engine during
  33. * pre-sign phase. Via this method a signature aspect implementation can add
  34. * signature aspects to an XML signature.
  35. *
  36. * @param signatureFactory
  37. * @param document
  38. * @param signatureId
  39. * @param references
  40. * @param objects
  41. * @throws InvalidAlgorithmParameterException
  42. * @throws NoSuchAlgorithmException
  43. */
  44. void preSign(XMLSignatureFactory signatureFactory, Document document, String signatureId, List<Reference> references, List<XMLObject> objects)
  45. throws NoSuchAlgorithmException, InvalidAlgorithmParameterException;
  46. }