@Immutable public class XMLDSigCreator extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_NS_PREFIX |
| Constructor and Description |
|---|
XMLDSigCreator() |
public static final String DEFAULT_NS_PREFIX
@Nonnull public final XMLSignatureFactory getSignatureFactory()
@Nonnull @OverrideOnDemand protected String getDigestMethod() throws Exception
Exception@Nonnull @OverrideOnDemand protected DigestMethod createDigestMethod() throws Exception
Exception@Nonnull @OverrideOnDemand protected String getDefaultTransform() throws Exception
Exception@Nonnull @OverrideOnDemand protected Transform createDefaultTransform() throws Exception
Exception@Nonnull @OverrideOnDemand protected List<Transform> createTransformList() throws Exception
Exception@Nullable @OverrideOnDemand protected String getDefaultReferenceType() throws Exception
Exception@Nullable @OverrideOnDemand protected String getDefaultReferenceID() throws Exception
Exception@Nonnull @ReturnsMutableCopy protected Reference createDefaultReference() throws Exception
Exception@Nonnull @ReturnsMutableCopy protected com.helger.commons.collection.impl.ICommonsList<Reference> createReferenceList() throws Exception
Exception@Nonnull @OverrideOnDemand protected String getCanonicalizationMethod() throws Exception
Exception@Nonnull @OverrideOnDemand protected CanonicalizationMethod createCanonicalizationMethod() throws Exception
Exception@Nonnull @OverrideOnDemand protected String getSignatureMethod() throws Exception
Exception@Nonnull @OverrideOnDemand protected SignatureMethod createSignatureMethod() throws Exception
Exception@Nonnull public SignedInfo createSignedInfo() throws Exception
Exception@Nonnull public KeyInfo createKeyInfo(@Nonnull X509Certificate aCertificate) throws KeyException
KeyException@Nonnull @OverrideOnDemand public XMLSignature createXMLSignature(@Nonnull X509Certificate aCertificate) throws Exception
Exception@Nonnull @OverrideOnDemand public XMLSignature createXMLSignature(@Nonnull X509Certificate aCertificate, @Nullable List<? extends XMLObject> aObjects, @Nullable String sID, @Nullable String sSignatureValueID) throws Exception
Exceptionpublic void applyXMLDSigAsFirstChild(@Nonnull PrivateKey aPrivateKey, @Nonnull X509Certificate aCertificate, @Nonnull Document aDocument) throws Exception
aPrivateKey - The private key used for signing. May not be null.aCertificate - The certificate to be used. May not be null.aDocument - The document to be signed. The signature will always be the first
child element of the document element. The document may not contains
any disg:Signature element. This element is inserted manually.Exception - In case something goes wrongcreateXMLSignature(X509Certificate)Copyright © 2014–2021 Philip Helger. All rights reserved.