Class BasicXAdES
- java.lang.Object
-
- net.java.xades.security.xml.XMLSignatureDocument
-
- net.java.xades.security.xml.XAdES.BasicXAdES
-
public class BasicXAdES extends XMLSignatureDocument
- Author:
- miro
-
-
Constructor Summary
Constructors Constructor Description BasicXAdES(org.w3c.dom.Element baseElement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QualifyingPropertiesgetQualifyingProperties(java.lang.String signatureIdPrefix)java.util.List<QualifyingPropertiesReference>getQualifyingPropertiesReferences()SignergetSigner()WrappedKeyStorePlacegetWrappedKeyStorePlace()javax.xml.crypto.dsig.XMLObjectgetXAdESObject(QualifyingProperties qualifyingProperties)XmlWrappedKeyInfogetXmlWrappedKeyInfo()voidsetQualifyingProperties(QualifyingProperties qualifyingProperties)voidsetQualifyingPropertiesReferences(java.util.List<QualifyingPropertiesReference> qpr)voidsetSigner(Signer signer)voidsetWrappedKeyStorePlace(WrappedKeyStorePlace wrappedKeyStorePlace)voidsetXmlWrappedKeyInfo(XmlWrappedKeyInfo wrappedKeyInfo)voidsign(java.security.cert.X509Certificate certificate, java.security.PrivateKey privateKey, java.lang.String signatureMethod, java.util.List refsIdList, java.lang.String signatureIdPrefix, java.lang.String xadesPrefix, java.lang.String xadesNamespace, java.lang.String xmlSignaturePrefix)-
Methods inherited from class net.java.xades.security.xml.XMLSignatureDocument
addSignatureProperty, addSignatureProperty, addXMLObject, addXMLObject, addXMLObjectItem, getBaseElement, getDefaultSignatureProperties, getDefaultSignaturePropertiesId, getDefaultXMLObject, getDefaultXMLObjectEncoding, getDefaultXMLObjectId, getDefaultXMLObjectMimeType, getDigestMethod, getListOfSignatureProperties, getXMLObjectItems, getXMLObjects, getXMLSignatureElements, newKeyInfo, newXMLObject, newXMLObject, newXMLObject, newXMLObject, printDocument, setDefaultSignaturePropertiesId, setDefaultXMLObjectEncoding, setDefaultXMLObjectId, setDefaultXMLObjectMimeType, setDigestMethod, setListOfSignatureProperties, validate
-
-
-
-
Method Detail
-
getQualifyingProperties
public QualifyingProperties getQualifyingProperties(java.lang.String signatureIdPrefix)
-
setQualifyingProperties
public void setQualifyingProperties(QualifyingProperties qualifyingProperties)
-
getQualifyingPropertiesReferences
public java.util.List<QualifyingPropertiesReference> getQualifyingPropertiesReferences()
-
setQualifyingPropertiesReferences
public void setQualifyingPropertiesReferences(java.util.List<QualifyingPropertiesReference> qpr)
-
getXAdESObject
public javax.xml.crypto.dsig.XMLObject getXAdESObject(QualifyingProperties qualifyingProperties)
-
getXmlWrappedKeyInfo
public final XmlWrappedKeyInfo getXmlWrappedKeyInfo()
- Overrides:
getXmlWrappedKeyInfoin classXMLSignatureDocument
-
setXmlWrappedKeyInfo
public final void setXmlWrappedKeyInfo(XmlWrappedKeyInfo wrappedKeyInfo)
- Overrides:
setXmlWrappedKeyInfoin classXMLSignatureDocument
-
getWrappedKeyStorePlace
public WrappedKeyStorePlace getWrappedKeyStorePlace()
- Overrides:
getWrappedKeyStorePlacein classXMLSignatureDocument
-
setWrappedKeyStorePlace
public void setWrappedKeyStorePlace(WrappedKeyStorePlace wrappedKeyStorePlace)
- Overrides:
setWrappedKeyStorePlacein classXMLSignatureDocument
-
sign
public void sign(java.security.cert.X509Certificate certificate, java.security.PrivateKey privateKey, java.lang.String signatureMethod, java.util.List refsIdList, java.lang.String signatureIdPrefix, java.lang.String xadesPrefix, java.lang.String xadesNamespace, java.lang.String xmlSignaturePrefix) throws javax.xml.crypto.MarshalException, javax.xml.crypto.dsig.XMLSignatureException, java.security.GeneralSecurityException- Overrides:
signin classXMLSignatureDocument- Throws:
javax.xml.crypto.MarshalExceptionjavax.xml.crypto.dsig.XMLSignatureExceptionjava.security.GeneralSecurityException
-
getSigner
public Signer getSigner()
-
setSigner
public void setSigner(Signer signer)
-
-