Uses of Class
org.apache.xml.security.signature.XMLSignatureException
-
-
Uses of XMLSignatureException in org.apache.xml.security.algorithms
Methods in org.apache.xml.security.algorithms that throw XMLSignatureException Modifier and Type Method Description protected abstract void
SignatureAlgorithmSpi. engineInitSign(java.security.Key signingKey)
Proxy method forSignature.initSign(java.security.PrivateKey)
which is executed on the internalSignature
object.protected abstract void
SignatureAlgorithmSpi. engineInitSign(java.security.Key signingKey, java.security.SecureRandom secureRandom)
Proxy method forSignature.initSign(java.security.PrivateKey, java.security.SecureRandom)
which is executed on the internalSignature
object.protected abstract void
SignatureAlgorithmSpi. engineInitSign(java.security.Key signingKey, java.security.spec.AlgorithmParameterSpec algorithmParameterSpec)
Proxy method forMac
which is executed on the internalMac.init(Key)
object.protected abstract void
SignatureAlgorithmSpi. engineInitVerify(java.security.Key verificationKey)
Method engineInitVerifyprotected abstract void
SignatureAlgorithmSpi. engineSetHMACOutputLength(int HMACOutputLength)
Method engineSetHMACOutputLengthprotected abstract void
SignatureAlgorithmSpi. engineSetParameter(java.security.spec.AlgorithmParameterSpec params)
Proxy method forSignature.setParameter( java.security.spec.AlgorithmParameterSpec)
which is executed on the internalSignature
object.protected abstract byte[]
SignatureAlgorithmSpi. engineSign()
Proxy method forSignature.sign()
which is executed on the internalSignature
object.protected abstract void
SignatureAlgorithmSpi. engineUpdate(byte input)
Proxy method forSignature.update(byte[])
which is executed on the internalSignature
object.protected abstract void
SignatureAlgorithmSpi. engineUpdate(byte[] input)
Proxy method forSignature.update(byte[])
which is executed on the internalSignature
object.protected abstract void
SignatureAlgorithmSpi. engineUpdate(byte[] buf, int offset, int len)
Proxy method forSignature.update(byte[], int, int)
which is executed on the internalSignature
object.protected abstract boolean
SignatureAlgorithmSpi. engineVerify(byte[] signature)
Proxy method forSignature.verify(byte[])
which is executed on the internalSignature
object.private static java.security.MessageDigest
MessageDigestAlgorithm. getDigestInstance(java.lang.String algorithmURI)
static MessageDigestAlgorithm
MessageDigestAlgorithm. getInstance(org.w3c.dom.Document doc, java.lang.String algorithmURI)
Factory method for constructing a message digest algorithm by name.private static SignatureAlgorithmSpi
SignatureAlgorithm. getSignatureAlgorithmSpi(java.lang.String algorithmURI)
Get a SignatureAlgorithmSpi object corresponding to the algorithmURI argumentvoid
SignatureAlgorithm. initSign(java.security.Key signingKey)
Proxy method forSignature.initSign(java.security.PrivateKey)
which is executed on the internalSignature
object.void
SignatureAlgorithm. initSign(java.security.Key signingKey, java.security.SecureRandom secureRandom)
Proxy method forSignature.initSign(java.security.PrivateKey, java.security.SecureRandom)
which is executed on the internalSignature
object.void
SignatureAlgorithm. initSign(java.security.Key signingKey, java.security.spec.AlgorithmParameterSpec algorithmParameterSpec)
Proxy method forSignature.initSign(java.security.PrivateKey)
which is executed on the internalSignature
object.void
SignatureAlgorithm. initVerify(java.security.Key verificationKey)
Proxy method forSignature.initVerify(java.security.PublicKey)
which is executed on the internalSignature
object.static void
SignatureAlgorithm. register(java.lang.String algorithmURI, java.lang.Class<? extends SignatureAlgorithmSpi> implementingClass)
Registers implementing class of the SignatureAlgorithm with algorithmURIstatic void
SignatureAlgorithm. register(java.lang.String algorithmURI, java.lang.String implementingClass)
Registers implementing class of the SignatureAlgorithm with algorithmURIvoid
SignatureAlgorithm. setParameter(java.security.spec.AlgorithmParameterSpec params)
Proxy method forSignature.setParameter( java.security.spec.AlgorithmParameterSpec)
which is executed on the internalSignature
object.byte[]
SignatureAlgorithm. sign()
Proxy method forSignature.sign()
which is executed on the internalSignature
object.void
SignatureAlgorithm. update(byte input)
Proxy method forSignature.update(byte)
which is executed on the internalSignature
object.void
SignatureAlgorithm. update(byte[] input)
Proxy method forSignature.update(byte[])
which is executed on the internalSignature
object.void
SignatureAlgorithm. update(byte[] buf, int offset, int len)
Proxy method forSignature.update(byte[], int, int)
which is executed on the internalSignature
object.boolean
SignatureAlgorithm. verify(byte[] signature)
Proxy method forSignature.verify(byte[])
which is executed on the internalSignature
object.Constructors in org.apache.xml.security.algorithms that throw XMLSignatureException Constructor Description MessageDigestAlgorithm(org.w3c.dom.Document doc, java.lang.String algorithmURI)
Constructor for the brave who pass their own message digest algorithms and the corresponding URI. -
Uses of XMLSignatureException in org.apache.xml.security.algorithms.implementations
Methods in org.apache.xml.security.algorithms.implementations that throw XMLSignatureException Modifier and Type Method Description protected void
IntegrityHmac. engineInitSign(java.security.Key secretKey)
Method engineInitSignprotected void
IntegrityHmac. engineInitSign(java.security.Key secretKey, java.security.SecureRandom secureRandom)
Method engineInitSignprotected void
IntegrityHmac. engineInitSign(java.security.Key secretKey, java.security.spec.AlgorithmParameterSpec algorithmParameterSpec)
Method engineInitSignprotected void
SignatureBaseRSA. engineInitSign(java.security.Key privateKey)
Proxy method forSignature.initSign(java.security.PrivateKey)
which is executed on the internalSignature
object.protected void
SignatureBaseRSA. engineInitSign(java.security.Key privateKey, java.security.SecureRandom secureRandom)
Proxy method forSignature.initSign(java.security.PrivateKey, java.security.SecureRandom)
which is executed on the internalSignature
object.protected void
SignatureBaseRSA. engineInitSign(java.security.Key signingKey, java.security.spec.AlgorithmParameterSpec algorithmParameterSpec)
Proxy method forMac
which is executed on the internalMac.init(Key)
object.protected void
SignatureDSA. engineInitSign(java.security.Key privateKey)
Proxy method forSignature.initSign(java.security.PrivateKey)
which is executed on the internalSignature
object.protected void
SignatureDSA. engineInitSign(java.security.Key privateKey, java.security.SecureRandom secureRandom)
Proxy method forSignature.initSign(java.security.PrivateKey, java.security.SecureRandom)
which is executed on the internalSignature
object.protected void
SignatureDSA. engineInitSign(java.security.Key signingKey, java.security.spec.AlgorithmParameterSpec algorithmParameterSpec)
Method engineInitSignprotected void
SignatureECDSA. engineInitSign(java.security.Key privateKey)
Proxy method forSignature.initSign(java.security.PrivateKey)
which is executed on the internalSignature
object.protected void
SignatureECDSA. engineInitSign(java.security.Key privateKey, java.security.SecureRandom secureRandom)
Proxy method forSignature.initSign(java.security.PrivateKey, java.security.SecureRandom)
which is executed on the internalSignature
object.protected void
SignatureECDSA. engineInitSign(java.security.Key signingKey, java.security.spec.AlgorithmParameterSpec algorithmParameterSpec)
Proxy method forMac
which is executed on the internalMac.init(Key)
object.protected void
IntegrityHmac. engineInitVerify(java.security.Key secretKey)
Proxy method forSignature.initVerify(java.security.PublicKey)
which is executed on the internalSignature
object.protected void
SignatureBaseRSA. engineInitVerify(java.security.Key publicKey)
Method engineInitVerifyprotected void
SignatureDSA. engineInitVerify(java.security.Key publicKey)
Method engineInitVerifyprotected void
SignatureECDSA. engineInitVerify(java.security.Key publicKey)
Method engineInitVerifyprotected void
SignatureBaseRSA. engineSetHMACOutputLength(int HMACOutputLength)
Method engineSetHMACOutputLengthprotected void
SignatureDSA. engineSetHMACOutputLength(int HMACOutputLength)
Method engineSetHMACOutputLengthprotected void
SignatureECDSA. engineSetHMACOutputLength(int HMACOutputLength)
Method engineSetHMACOutputLengthprotected void
IntegrityHmac. engineSetParameter(java.security.spec.AlgorithmParameterSpec params)
Proxy method forSignature.setParameter( java.security.spec.AlgorithmParameterSpec)
which is executed on the internalSignature
object.protected void
SignatureBaseRSA. engineSetParameter(java.security.spec.AlgorithmParameterSpec params)
Proxy method forSignature.setParameter( java.security.spec.AlgorithmParameterSpec)
which is executed on the internalSignature
object.protected void
SignatureDSA. engineSetParameter(java.security.spec.AlgorithmParameterSpec params)
Proxy method forSignature.setParameter( java.security.spec.AlgorithmParameterSpec)
which is executed on the internalSignature
object.protected void
SignatureECDSA. engineSetParameter(java.security.spec.AlgorithmParameterSpec params)
Proxy method forSignature.setParameter( java.security.spec.AlgorithmParameterSpec)
which is executed on the internalSignature
object.protected byte[]
IntegrityHmac. engineSign()
Proxy method forSignature.sign()
which is executed on the internalSignature
object.protected byte[]
SignatureBaseRSA. engineSign()
Proxy method forSignature.sign()
which is executed on the internalSignature
object.protected byte[]
SignatureDSA. engineSign()
Proxy method forSignature.sign()
which is executed on the internalSignature
object.protected byte[]
SignatureECDSA. engineSign()
Proxy method forSignature.sign()
which is executed on the internalSignature
object.protected void
IntegrityHmac. engineUpdate(byte input)
Proxy method forSignature.update(byte)
which is executed on the internalSignature
object.protected void
IntegrityHmac. engineUpdate(byte[] input)
Proxy method forSignature.update(byte[])
which is executed on the internalSignature
object.protected void
IntegrityHmac. engineUpdate(byte[] buf, int offset, int len)
Proxy method forSignature.update(byte[], int, int)
which is executed on the internalSignature
object.protected void
SignatureBaseRSA. engineUpdate(byte input)
Proxy method forSignature.update(byte[])
which is executed on the internalSignature
object.protected void
SignatureBaseRSA. engineUpdate(byte[] input)
Proxy method forSignature.update(byte[])
which is executed on the internalSignature
object.protected void
SignatureBaseRSA. engineUpdate(byte[] buf, int offset, int len)
Proxy method forSignature.update(byte[], int, int)
which is executed on the internalSignature
object.protected void
SignatureDSA. engineUpdate(byte input)
Proxy method forSignature.update(byte[])
which is executed on the internalSignature
object.protected void
SignatureDSA. engineUpdate(byte[] input)
Proxy method forSignature.update(byte[])
which is executed on the internalSignature
object.protected void
SignatureDSA. engineUpdate(byte[] buf, int offset, int len)
Proxy method forSignature.update(byte[], int, int)
which is executed on the internalSignature
object.protected void
SignatureECDSA. engineUpdate(byte input)
Proxy method forSignature.update(byte[])
which is executed on the internalSignature
object.protected void
SignatureECDSA. engineUpdate(byte[] input)
Proxy method forSignature.update(byte[])
which is executed on the internalSignature
object.protected void
SignatureECDSA. engineUpdate(byte[] buf, int offset, int len)
Proxy method forSignature.update(byte[], int, int)
which is executed on the internalSignature
object.protected boolean
IntegrityHmac. engineVerify(byte[] signature)
Proxy method forSignature.verify(byte[])
which is executed on the internalSignature
object.protected boolean
SignatureBaseRSA. engineVerify(byte[] signature)
Proxy method forSignature.verify(byte[])
which is executed on the internalSignature
object.protected boolean
SignatureDSA. engineVerify(byte[] signature)
Proxy method forSignature.verify(byte[])
which is executed on the internalSignature
object.protected boolean
SignatureECDSA. engineVerify(byte[] signature)
Proxy method forSignature.verify(byte[])
which is executed on the internalSignature
object.Constructors in org.apache.xml.security.algorithms.implementations that throw XMLSignatureException Constructor Description IntegrityHmac()
Method IntegrityHmacIntegrityHmacMD5()
Constructor IntegrityHmacMD5IntegrityHmacRIPEMD160()
Constructor IntegrityHmacRIPEMD160IntegrityHmacSHA1()
Constructor IntegrityHmacSHA1IntegrityHmacSHA224()
Constructor IntegrityHmacSHA224IntegrityHmacSHA256()
Constructor IntegrityHmacSHA256IntegrityHmacSHA384()
Constructor IntegrityHmacSHA384IntegrityHmacSHA512()
Constructor IntegrityHmacSHA512SHA256()
SignatureBaseRSA()
Constructor SignatureRSASignatureDSA()
Constructor SignatureDSASignatureECDSA()
Constructor SignatureRSASignatureECDSARIPEMD160()
Constructor SignatureECDSARIPEMD160SignatureECDSASHA1()
Constructor SignatureECDSASHA1SignatureECDSASHA224()
Constructor SignatureECDSASHA224SignatureECDSASHA256()
Constructor SignatureECDSASHA256SignatureECDSASHA384()
Constructor SignatureECDSASHA384SignatureECDSASHA512()
Constructor SignatureECDSASHA512SignatureRSAMD5()
Constructor SignatureRSAMD5SignatureRSARIPEMD160()
Constructor SignatureRSARIPEMD160SignatureRSASHA1()
Constructor SignatureRSASHA1SignatureRSASHA1MGF1()
Constructor SignatureRSASHA1MGF1SignatureRSASHA224()
Constructor SignatureRSASHA224SignatureRSASHA224MGF1()
Constructor SignatureRSASHA224MGF1SignatureRSASHA256()
Constructor SignatureRSASHA256SignatureRSASHA256MGF1()
Constructor SignatureRSASHA256MGF1SignatureRSASHA3_224MGF1()
Constructor SignatureRSASHA3_224MGF1SignatureRSASHA3_256MGF1()
Constructor SignatureRSASHA3_256MGF1SignatureRSASHA3_384MGF1()
Constructor SignatureRSASHA3_384MGF1SignatureRSASHA3_512MGF1()
Constructor SignatureRSASHA3_512MGF1SignatureRSASHA384()
Constructor SignatureRSASHA384SignatureRSASHA384MGF1()
Constructor SignatureRSASHA384MGF1SignatureRSASHA512()
Constructor SignatureRSASHA512SignatureRSASHA512MGF1()
Constructor SignatureRSASHA512MGF1 -
Uses of XMLSignatureException in org.apache.xml.security.encryption
Constructors in org.apache.xml.security.encryption that throw XMLSignatureException Constructor Description TransformsImpl(org.w3c.dom.Element element)
-
Uses of XMLSignatureException in org.apache.xml.security.signature
Subclasses of XMLSignatureException in org.apache.xml.security.signature Modifier and Type Class Description class
InvalidDigestValueException
Raised when the computed hash value doesn't match the given DigestValue.class
InvalidSignatureValueException
Raised if testing the signature value over DigestValue fails because of invalid signature.class
MissingResourceFailureException
Thrown bySignedInfo.verify()
when testing the signature fails because of uninitializedReference
s.class
ReferenceNotInitializedException
Raised if verifying aReference
fails because of an uninitializedXMLSignatureInput
Methods in org.apache.xml.security.signature that throw XMLSignatureException Modifier and Type Method Description void
Manifest. addDocument(java.lang.String baseURI, java.lang.String referenceURI, Transforms transforms, java.lang.String digestURI, java.lang.String referenceId, java.lang.String referenceType)
ThisaddDocument
method is used to add a new resource to the signed info.void
XMLSignature. addDocument(java.lang.String referenceURI)
Add a Reference with just this URI.void
XMLSignature. addDocument(java.lang.String referenceURI, Transforms trans)
Adds a Reference with just the URI and the transforms.void
XMLSignature. addDocument(java.lang.String referenceURI, Transforms trans, java.lang.String digestURI)
This method is a proxy method for theManifest.addDocument(java.lang.String, java.lang.String, org.apache.xml.security.transforms.Transforms, java.lang.String, java.lang.String, java.lang.String)
method.void
XMLSignature. addDocument(java.lang.String referenceURI, Transforms trans, java.lang.String digestURI, java.lang.String referenceId, java.lang.String referenceType)
Add a Reference with full parameters to this Signaturevoid
XMLSignature. appendObject(ObjectContainer object)
Appends an Object (not ajava.lang.Object
but an Object element) to the Signature.private byte[]
Reference. calculateDigest(boolean validating)
Method calculateDigestprivate void
XMLSignatureInputDebugger. canonicalizeXPathNodeSet(org.w3c.dom.Node currentNode)
Method canonicalizeXPathNodeSetboolean
XMLSignature. checkSignatureValue(java.security.cert.X509Certificate cert)
Extracts the public key from the certificate and verifies if the signature is valid by re-digesting all References, comparing those against the stored DigestValues and then checking to see if the Signatures match on the SignedInfo.boolean
XMLSignature. checkSignatureValue(java.security.Key pk)
Verifies if the signature is valid by redigesting all References, comparing those against the stored DigestValues and then checking to see if the Signatures match on the SignedInfo.protected XMLSignatureInput
Reference. dereferenceURIandPerformTransforms(java.io.OutputStream os)
This method returns theXMLSignatureInput
which is referenced by theURI
Attribute.void
Reference. generateDigestValue()
Method generateDigestValuevoid
Manifest. generateDigestValues()
The calculation of the DigestValues in the References must be after the References are already added to the document and during the signing process.XMLSignatureInput
Reference. getContentsAfterTransformation()
Returns the XMLSignatureInput which is the result of the Transforms.private XMLSignatureInput
Reference. getContentsAfterTransformation(XMLSignatureInput input, java.io.OutputStream os)
java.lang.String
Reference. getHTMLRepresentation()
Method getHTMLRepresentationjava.lang.String
XMLSignatureInput. getHTMLRepresentation()
Method getHTMLRepresentationjava.lang.String
XMLSignatureInput. getHTMLRepresentation(java.util.Set<java.lang.String> inclusiveNamespaces)
Method getHTMLRepresentationjava.lang.String
XMLSignatureInputDebugger. getHTMLRepresentation()
Method getHTMLRepresentationMessageDigestAlgorithm
Reference. getMessageDigestAlgorithm()
ReturnsMessageDigestAlgorithm
XMLSignatureInput
Reference. getNodesetBeforeFirstCanonicalization()
This method returns the XMLSignatureInput which represents the node set before some kind of canonicalization is applied for the first time.byte[]
Reference. getReferencedBytes()
Method getReferencedBytesbyte[]
XMLSignature. getSignatureValue()
Returns the octet value of the SignatureValue element.byte[]
Manifest. getSignedContentItem(int i)
Method getSignedContentItemTransforms
Reference. getTransforms()
Method getTransformsSignatureProperty
SignatureProperties. item(int i)
Return the ith SignatureProperty.void
XMLSignature. sign(java.security.Key signingKey)
Digests all References in the SignedInfo, calculates the signature value and sets it in the SignatureValue Element.Constructors in org.apache.xml.security.signature that throw XMLSignatureException Constructor Description Reference(org.w3c.dom.Document doc, java.lang.String baseURI, java.lang.String referenceURI, Manifest manifest, Transforms transforms, java.lang.String messageDigestAlgorithm)
Constructor ReferenceXMLSignature(org.w3c.dom.Element element, java.lang.String baseURI)
This will parse the element and construct the Java Objects.XMLSignature(org.w3c.dom.Element element, java.lang.String baseURI, boolean secureValidation)
This will parse the element and construct the Java Objects. -
Uses of XMLSignatureException in org.apache.xml.security.transforms
Constructors in org.apache.xml.security.transforms that throw XMLSignatureException Constructor Description Transforms(org.w3c.dom.Element element, java.lang.String baseURI)
-