Modifier and Type | Method and Description |
---|---|
protected void |
SignatureAlgorithmSpi.engineAddContextToElement(Element element) |
protected void |
SignatureAlgorithmSpi.engineGetContextFromElement(Element element)
Method engineGetContextFromElement
|
protected abstract void |
SignatureAlgorithmSpi.engineInitSign(Key signingKey)
Proxy method for
Signature.initSign(java.security.PrivateKey)
which is executed on the internal Signature object. |
protected abstract void |
SignatureAlgorithmSpi.engineInitSign(Key signingKey,
AlgorithmParameterSpec algorithmParameterSpec)
Proxy method for
Mac
which is executed on the internal Mac.init(Key) object. |
protected abstract void |
SignatureAlgorithmSpi.engineInitSign(Key signingKey,
SecureRandom secureRandom)
Proxy method for
Signature.initSign(java.security.PrivateKey,
java.security.SecureRandom)
which is executed on the internal Signature object. |
protected static void |
SignatureAlgorithmSpi.engineInitSign(Key privateKey,
SecureRandom secureRandom,
Signature signatureAlgorithm) |
protected abstract void |
SignatureAlgorithmSpi.engineInitVerify(Key verificationKey)
Method engineInitVerify
|
protected static void |
SignatureAlgorithmSpi.engineInitVerify(Key publicKey,
Signature signatureAlgorithm) |
protected abstract void |
SignatureAlgorithmSpi.engineSetHMACOutputLength(int HMACOutputLength)
Method engineSetHMACOutputLength
|
protected abstract void |
SignatureAlgorithmSpi.engineSetParameter(AlgorithmParameterSpec params)
Proxy method for
Signature.setParameter(
java.security.spec.AlgorithmParameterSpec)
which is executed on the internal Signature object. |
protected abstract byte[] |
SignatureAlgorithmSpi.engineSign()
Proxy method for
Signature.sign()
which is executed on the internal Signature object. |
protected abstract void |
SignatureAlgorithmSpi.engineUpdate(byte input)
Proxy method for
Signature.update(byte[])
which is executed on the internal Signature object. |
protected abstract void |
SignatureAlgorithmSpi.engineUpdate(byte[] input)
Proxy method for
Signature.update(byte[])
which is executed on the internal Signature object. |
protected abstract void |
SignatureAlgorithmSpi.engineUpdate(byte[] buf,
int offset,
int len)
Proxy method for
Signature.update(byte[], int, int)
which is executed on the internal Signature object. |
protected abstract boolean |
SignatureAlgorithmSpi.engineVerify(byte[] signature)
Proxy method for
Signature.verify(byte[])
which is executed on the internal Signature object. |
static MessageDigestAlgorithm |
MessageDigestAlgorithm.getInstance(Document doc,
String algorithmURI)
Factory method for constructing a message digest algorithm by name.
|
void |
SignatureAlgorithm.initSign(Key signingKey)
Proxy method for
Signature.initSign(java.security.PrivateKey)
which is executed on the internal Signature object. |
void |
SignatureAlgorithm.initSign(Key signingKey,
AlgorithmParameterSpec algorithmParameterSpec)
Proxy method for
Signature.initSign(java.security.PrivateKey)
which is executed on the internal Signature object. |
void |
SignatureAlgorithm.initSign(Key signingKey,
SecureRandom secureRandom)
Proxy method for
Signature.initSign(java.security.PrivateKey,
java.security.SecureRandom)
which is executed on the internal Signature object. |
void |
SignatureAlgorithm.initVerify(Key verificationKey)
Proxy method for
Signature.initVerify(java.security.PublicKey)
which is executed on the internal Signature object. |
static void |
SignatureAlgorithm.register(String algorithmURI,
Class<? extends SignatureAlgorithmSpi> implementingClass)
Registers implementing class of the SignatureAlgorithm with algorithmURI
|
static void |
SignatureAlgorithm.register(String algorithmURI,
String implementingClass)
Registers implementing class of the SignatureAlgorithm with algorithmURI
|
void |
SignatureAlgorithm.setParameter(AlgorithmParameterSpec params)
Proxy method for
Signature.setParameter(
java.security.spec.AlgorithmParameterSpec)
which is executed on the internal Signature object. |
byte[] |
SignatureAlgorithm.sign()
Proxy method for
Signature.sign()
which is executed on the internal Signature object. |
void |
SignatureAlgorithm.update(byte input)
Proxy method for
Signature.update(byte)
which is executed on the internal Signature object. |
void |
SignatureAlgorithm.update(byte[] input)
Proxy method for
Signature.update(byte[])
which is executed on the internal Signature object. |
void |
SignatureAlgorithm.update(byte[] buf,
int offset,
int len)
Proxy method for
Signature.update(byte[], int, int)
which is executed on the internal Signature object. |
boolean |
SignatureAlgorithm.verify(byte[] signature)
Proxy method for
Signature.verify(byte[])
which is executed on the internal Signature object. |
Modifier and Type | Method and Description |
---|---|
protected void |
IntegrityHmac.engineAddContextToElement(Element element)
Method engineAddContextToElement
|
protected void |
SignatureBaseRSA.SignatureRSASSAPSS.engineAddContextToElement(Element element) |
protected void |
IntegrityHmac.engineGetContextFromElement(Element element)
Method engineGetContextFromElement
|
protected void |
SignatureBaseRSA.SignatureRSASSAPSS.engineGetContextFromElement(Element element) |
protected void |
SignatureECDSA.engineInitSign(Key privateKey)
Proxy method for
Signature.initSign(java.security.PrivateKey)
which is executed on the internal Signature object. |
protected void |
IntegrityHmac.engineInitSign(Key secretKey)
Method engineInitSign
|
protected void |
SignatureDSA.engineInitSign(Key privateKey)
Proxy method for
Signature.initSign(java.security.PrivateKey)
which is executed on the internal Signature object. |
protected void |
SignatureBaseRSA.engineInitSign(Key privateKey)
Proxy method for
Signature.initSign(java.security.PrivateKey)
which is executed on the internal Signature object. |
protected void |
SignatureECDSA.engineInitSign(Key signingKey,
AlgorithmParameterSpec algorithmParameterSpec)
Proxy method for
Mac
which is executed on the internal Mac.init(Key) object. |
protected void |
IntegrityHmac.engineInitSign(Key secretKey,
AlgorithmParameterSpec algorithmParameterSpec)
Method engineInitSign
|
protected void |
SignatureDSA.engineInitSign(Key signingKey,
AlgorithmParameterSpec algorithmParameterSpec)
Method engineInitSign
|
protected void |
SignatureBaseRSA.engineInitSign(Key signingKey,
AlgorithmParameterSpec algorithmParameterSpec)
Proxy method for
Mac
which is executed on the internal Mac.init(Key) object. |
protected void |
SignatureECDSA.engineInitSign(Key privateKey,
SecureRandom secureRandom)
Proxy method for
Signature.initSign(java.security.PrivateKey,
java.security.SecureRandom)
which is executed on the internal Signature object. |
protected void |
IntegrityHmac.engineInitSign(Key secretKey,
SecureRandom secureRandom)
Method engineInitSign
|
protected void |
SignatureDSA.engineInitSign(Key privateKey,
SecureRandom secureRandom)
Proxy method for
Signature.initSign(java.security.PrivateKey,
java.security.SecureRandom)
which is executed on the internal Signature object. |
protected void |
SignatureBaseRSA.engineInitSign(Key privateKey,
SecureRandom secureRandom)
Proxy method for
Signature.initSign(java.security.PrivateKey,
java.security.SecureRandom)
which is executed on the internal Signature object. |
protected void |
SignatureECDSA.engineInitVerify(Key publicKey)
Method engineInitVerify
|
protected void |
IntegrityHmac.engineInitVerify(Key secretKey)
Proxy method for
Signature.initVerify(java.security.PublicKey)
which is executed on the internal Signature object. |
protected void |
SignatureDSA.engineInitVerify(Key publicKey)
Method engineInitVerify
|
protected void |
SignatureBaseRSA.engineInitVerify(Key publicKey)
Method engineInitVerify
|
protected void |
SignatureECDSA.engineSetHMACOutputLength(int HMACOutputLength)
Method engineSetHMACOutputLength
|
protected void |
IntegrityHmac.engineSetHMACOutputLength(int length)
Method engineSetHMACOutputLength
|
protected void |
SignatureDSA.engineSetHMACOutputLength(int HMACOutputLength)
Method engineSetHMACOutputLength
|
protected void |
SignatureBaseRSA.engineSetHMACOutputLength(int HMACOutputLength)
Method engineSetHMACOutputLength
|
protected void |
SignatureECDSA.engineSetParameter(AlgorithmParameterSpec params)
Proxy method for
Signature.setParameter(
java.security.spec.AlgorithmParameterSpec)
which is executed on the internal Signature object. |
protected void |
IntegrityHmac.engineSetParameter(AlgorithmParameterSpec params)
Proxy method for
Signature.setParameter(
java.security.spec.AlgorithmParameterSpec)
which is executed on the internal Signature object. |
protected void |
SignatureDSA.engineSetParameter(AlgorithmParameterSpec params)
Proxy method for
Signature.setParameter(
java.security.spec.AlgorithmParameterSpec)
which is executed on the internal Signature object. |
protected void |
SignatureBaseRSA.engineSetParameter(AlgorithmParameterSpec params)
Proxy method for
Signature.setParameter(
java.security.spec.AlgorithmParameterSpec)
which is executed on the internal Signature object. |
protected void |
SignatureBaseRSA.SignatureRSASSAPSS.engineSetParameter(AlgorithmParameterSpec params) |
protected byte[] |
SignatureECDSA.engineSign()
Proxy method for
Signature.sign()
which is executed on the internal Signature object. |
protected byte[] |
IntegrityHmac.engineSign()
Proxy method for
Signature.sign()
which is executed on the internal Signature object. |
protected byte[] |
SignatureDSA.engineSign()
Proxy method for
Signature.sign()
which is executed on the internal Signature object. |
protected byte[] |
SignatureBaseRSA.engineSign()
Proxy method for
Signature.sign()
which is executed on the internal Signature object. |
protected void |
SignatureECDSA.engineUpdate(byte input)
Proxy method for
Signature.update(byte[])
which is executed on the internal Signature object. |
protected void |
IntegrityHmac.engineUpdate(byte input)
Proxy method for
Signature.update(byte)
which is executed on the internal Signature object. |
protected void |
SignatureDSA.engineUpdate(byte input)
Proxy method for
Signature.update(byte[])
which is executed on the internal Signature object. |
protected void |
SignatureBaseRSA.engineUpdate(byte input)
Proxy method for
Signature.update(byte[])
which is executed on the internal Signature object. |
protected void |
SignatureECDSA.engineUpdate(byte[] input)
Proxy method for
Signature.update(byte[])
which is executed on the internal Signature object. |
protected void |
IntegrityHmac.engineUpdate(byte[] input)
Proxy method for
Signature.update(byte[])
which is executed on the internal Signature object. |
protected void |
SignatureDSA.engineUpdate(byte[] input)
Proxy method for
Signature.update(byte[])
which is executed on the internal Signature object. |
protected void |
SignatureBaseRSA.engineUpdate(byte[] input)
Proxy method for
Signature.update(byte[])
which is executed on the internal Signature object. |
protected void |
SignatureECDSA.engineUpdate(byte[] buf,
int offset,
int len)
Proxy method for
Signature.update(byte[], int, int)
which is executed on the internal Signature object. |
protected void |
IntegrityHmac.engineUpdate(byte[] buf,
int offset,
int len)
Proxy method for
Signature.update(byte[], int, int)
which is executed on the internal Signature object. |
protected void |
SignatureDSA.engineUpdate(byte[] buf,
int offset,
int len)
Proxy method for
Signature.update(byte[], int, int)
which is executed on the internal Signature object. |
protected void |
SignatureBaseRSA.engineUpdate(byte[] buf,
int offset,
int len)
Proxy method for
Signature.update(byte[], int, int)
which is executed on the internal Signature object. |
protected boolean |
SignatureECDSA.engineVerify(byte[] signature)
Proxy method for
Signature.verify(byte[])
which is executed on the internal Signature object. |
protected boolean |
IntegrityHmac.engineVerify(byte[] signature)
Proxy method for
Signature.verify(byte[])
which is executed on the internal Signature object. |
protected boolean |
SignatureDSA.engineVerify(byte[] signature)
Proxy method for
Signature.verify(byte[])
which is executed on the internal Signature object. |
protected boolean |
SignatureBaseRSA.engineVerify(byte[] signature)
Proxy method for
Signature.verify(byte[])
which is executed on the internal Signature object. |
static SignatureBaseRSA.SignatureRSASSAPSS.DigestAlgorithm |
SignatureBaseRSA.SignatureRSASSAPSS.DigestAlgorithm.fromDigestAlgorithm(String digestAlgorithm) |
static SignatureBaseRSA.SignatureRSASSAPSS.DigestAlgorithm |
SignatureBaseRSA.SignatureRSASSAPSS.DigestAlgorithm.fromXmlDigestAlgorithm(String xmlDigestAlgorithm) |
Modifier and Type | Class and 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 by
SignedInfo.verify() when
testing the signature fails because of uninitialized
Reference s. |
class |
ReferenceNotInitializedException
Raised if verifying a
Reference fails
because of an uninitialized XMLSignatureInput |
Modifier and Type | Method and Description |
---|---|
void |
XMLSignature.addDocument(String referenceURI)
Add a Reference with just this URI.
|
void |
Manifest.addDocument(String baseURI,
String referenceURI,
Transforms transforms,
String digestURI,
String referenceId,
String referenceType)
This
addDocument method is used to add a new resource to the
signed info. |
void |
XMLSignature.addDocument(String referenceURI,
Transforms trans)
Adds a Reference with just the URI and the transforms.
|
void |
XMLSignature.addDocument(String referenceURI,
Transforms trans,
String digestURI)
This method is a proxy method for the
Manifest.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(String referenceURI,
Transforms trans,
String digestURI,
String referenceId,
String referenceType)
Add a Reference with full parameters to this Signature
|
void |
XMLSignature.appendObject(ObjectContainer object)
Appends an Object (not a
java.lang.Object but an Object
element) to the Signature. |
boolean |
XMLSignature.checkSignatureValue(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.
|
boolean |
XMLSignature.checkSignatureValue(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.
|
protected XMLSignatureInput |
Reference.dereferenceURIandPerformTransforms(OutputStream os)
This method returns the
XMLSignatureInput which is referenced by the
URI Attribute. |
void |
Reference.generateDigestValue()
Method generateDigestValue
|
void |
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.
|
String |
XMLSignatureInput.getHTMLRepresentation()
Method getHTMLRepresentation
|
String |
XMLSignatureInputDebugger.getHTMLRepresentation()
Method getHTMLRepresentation
|
String |
Reference.getHTMLRepresentation()
Method getHTMLRepresentation
|
String |
XMLSignatureInput.getHTMLRepresentation(Set<String> inclusiveNamespaces)
Method getHTMLRepresentation
|
MessageDigestAlgorithm |
Reference.getMessageDigestAlgorithm()
Returns
MessageDigestAlgorithm |
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 getReferencedBytes
|
byte[] |
XMLSignature.getSignatureValue()
Returns the octet value of the SignatureValue element.
|
byte[] |
Manifest.getSignedContentItem(int i)
Method getSignedContentItem
|
Transforms |
Reference.getTransforms()
Method getTransforms
|
SignatureProperty |
SignatureProperties.item(int i)
Return the ith SignatureProperty.
|
void |
XMLSignature.sign(Key signingKey)
Digests all References in the SignedInfo, calculates the signature value
and sets it in the SignatureValue Element.
|
Constructor and Description |
---|
Reference(Document doc,
String baseURI,
String referenceURI,
Manifest manifest,
Transforms transforms,
String messageDigestAlgorithm)
Constructor Reference
|
XMLSignature(Element element,
String baseURI)
This will parse the element and construct the Java Objects.
|
XMLSignature(Element element,
String baseURI,
boolean secureValidation)
This will parse the element and construct the Java Objects.
|
XMLSignature(Element element,
String baseURI,
boolean secureValidation,
Provider provider)
This will parse the element and construct the Java Objects.
|
XMLSignature(Element element,
String baseURI,
Provider provider)
This will parse the element and construct the Java Objects.
|
Constructor and Description |
---|
Transforms(Element element,
String baseURI)
|
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.