Modifier and Type | Method | Description |
---|---|---|
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,
SecureRandom secureRandom) |
Proxy method for
Signature.initSign(java.security.PrivateKey,
java.security.SecureRandom)
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.engineInitVerify(Key verificationKey) |
Method engineInitVerify
|
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,
SecureRandom secureRandom) |
Proxy method for
Signature.initSign(java.security.PrivateKey,
java.security.SecureRandom)
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.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 | Description |
---|---|---|
protected void |
IntegrityHmac.engineInitSign(Key secretKey) |
Method engineInitSign
|
protected void |
IntegrityHmac.engineInitSign(Key secretKey,
SecureRandom secureRandom) |
Method engineInitSign
|
protected void |
IntegrityHmac.engineInitSign(Key secretKey,
AlgorithmParameterSpec algorithmParameterSpec) |
Method engineInitSign
|
protected void |
SignatureBaseRSA.engineInitSign(Key privateKey) |
|
protected void |
SignatureBaseRSA.engineInitSign(Key privateKey,
SecureRandom secureRandom) |
|
protected void |
SignatureBaseRSA.engineInitSign(Key signingKey,
AlgorithmParameterSpec algorithmParameterSpec) |
|
protected void |
SignatureDSA.engineInitSign(Key privateKey) |
|
protected void |
SignatureDSA.engineInitSign(Key privateKey,
SecureRandom secureRandom) |
|
protected void |
SignatureDSA.engineInitSign(Key signingKey,
AlgorithmParameterSpec algorithmParameterSpec) |
Method engineInitSign
|
protected void |
SignatureECDSA.engineInitSign(Key privateKey) |
|
protected void |
SignatureECDSA.engineInitSign(Key privateKey,
SecureRandom secureRandom) |
|
protected void |
SignatureECDSA.engineInitSign(Key signingKey,
AlgorithmParameterSpec algorithmParameterSpec) |
|
protected void |
IntegrityHmac.engineInitVerify(Key secretKey) |
Proxy method for
Signature.initVerify(java.security.PublicKey)
which is executed on the internal Signature object. |
protected void |
SignatureBaseRSA.engineInitVerify(Key publicKey) |
|
protected void |
SignatureDSA.engineInitVerify(Key publicKey) |
|
protected void |
SignatureECDSA.engineInitVerify(Key publicKey) |
|
protected void |
SignatureBaseRSA.engineSetHMACOutputLength(int HMACOutputLength) |
|
protected void |
SignatureDSA.engineSetHMACOutputLength(int HMACOutputLength) |
Method engineSetHMACOutputLength
|
protected void |
SignatureECDSA.engineSetHMACOutputLength(int HMACOutputLength) |
|
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 |
SignatureBaseRSA.engineSetParameter(AlgorithmParameterSpec params) |
|
protected void |
SignatureDSA.engineSetParameter(AlgorithmParameterSpec params) |
|
protected void |
SignatureECDSA.engineSetParameter(AlgorithmParameterSpec params) |
|
protected byte[] |
IntegrityHmac.engineSign() |
Proxy method for
Signature.sign()
which is executed on the internal Signature object. |
protected byte[] |
SignatureBaseRSA.engineSign() |
|
protected byte[] |
SignatureDSA.engineSign() |
|
protected byte[] |
SignatureECDSA.engineSign() |
|
protected void |
IntegrityHmac.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 |
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 |
SignatureBaseRSA.engineUpdate(byte input) |
|
protected void |
SignatureBaseRSA.engineUpdate(byte[] input) |
|
protected void |
SignatureBaseRSA.engineUpdate(byte[] buf,
int offset,
int len) |
|
protected void |
SignatureDSA.engineUpdate(byte input) |
|
protected void |
SignatureDSA.engineUpdate(byte[] input) |
|
protected void |
SignatureDSA.engineUpdate(byte[] buf,
int offset,
int len) |
|
protected void |
SignatureECDSA.engineUpdate(byte input) |
|
protected void |
SignatureECDSA.engineUpdate(byte[] input) |
|
protected void |
SignatureECDSA.engineUpdate(byte[] buf,
int offset,
int len) |
|
protected boolean |
IntegrityHmac.engineVerify(byte[] signature) |
Proxy method for
Signature.verify(byte[])
which is executed on the internal Signature object. |
protected boolean |
SignatureBaseRSA.engineVerify(byte[] signature) |
|
protected boolean |
SignatureDSA.engineVerify(byte[] signature) |
|
protected boolean |
SignatureECDSA.engineVerify(byte[] signature) |
Constructor | Description |
---|---|
IntegrityHmac() |
Method IntegrityHmac
|
IntegrityHmacMD5() |
Constructor IntegrityHmacMD5
|
IntegrityHmacRIPEMD160() |
Constructor IntegrityHmacRIPEMD160
|
IntegrityHmacSHA1() |
Constructor IntegrityHmacSHA1
|
IntegrityHmacSHA224() |
Constructor IntegrityHmacSHA224
|
IntegrityHmacSHA256() |
Constructor IntegrityHmacSHA256
|
IntegrityHmacSHA384() |
Constructor IntegrityHmacSHA384
|
IntegrityHmacSHA512() |
Constructor IntegrityHmacSHA512
|
SHA256() |
|
SignatureBaseRSA() |
Constructor SignatureRSA
|
SignatureDSA() |
Constructor SignatureDSA
|
SignatureECDSA() |
Constructor SignatureRSA
|
SignatureECDSARIPEMD160() |
Constructor SignatureECDSARIPEMD160
|
SignatureECDSASHA1() |
Constructor SignatureECDSASHA1
|
SignatureECDSASHA224() |
Constructor SignatureECDSASHA224
|
SignatureECDSASHA256() |
Constructor SignatureECDSASHA256
|
SignatureECDSASHA384() |
Constructor SignatureECDSASHA384
|
SignatureECDSASHA512() |
Constructor SignatureECDSASHA512
|
SignatureRSAMD5() |
Constructor SignatureRSAMD5
|
SignatureRSARIPEMD160() |
Constructor SignatureRSARIPEMD160
|
SignatureRSASHA1() |
Constructor SignatureRSASHA1
|
SignatureRSASHA1MGF1() |
Constructor SignatureRSASHA1MGF1
|
SignatureRSASHA224() |
Constructor SignatureRSASHA224
|
SignatureRSASHA224MGF1() |
Constructor SignatureRSASHA224MGF1
|
SignatureRSASHA256() |
Constructor SignatureRSASHA256
|
SignatureRSASHA256MGF1() |
Constructor SignatureRSASHA256MGF1
|
SignatureRSASHA3_224MGF1() |
Constructor SignatureRSASHA3_224MGF1
|
SignatureRSASHA3_256MGF1() |
Constructor SignatureRSASHA3_256MGF1
|
SignatureRSASHA3_384MGF1() |
Constructor SignatureRSASHA3_384MGF1
|
SignatureRSASHA3_512MGF1() |
Constructor SignatureRSASHA3_512MGF1
|
SignatureRSASHA384() |
Constructor SignatureRSASHA384
|
SignatureRSASHA384MGF1() |
Constructor SignatureRSASHA384MGF1
|
SignatureRSASHA512() |
Constructor SignatureRSASHA512
|
SignatureRSASHA512MGF1() |
Constructor SignatureRSASHA512MGF1
|
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 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 | Description |
---|---|---|
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) |
Add a Reference with just this URI.
|
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(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(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(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 |
Reference.getHTMLRepresentation() |
Method getHTMLRepresentation
|
String |
XMLSignatureInput.getHTMLRepresentation() |
Method getHTMLRepresentation
|
String |
XMLSignatureInput.getHTMLRepresentation(Set<String> inclusiveNamespaces) |
Method getHTMLRepresentation
|
String |
XMLSignatureInputDebugger.getHTMLRepresentation() |
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
|
void |
XMLSignature.sign(Key signingKey) |
Digests all References in the SignedInfo, calculates the signature value
and sets it in the SignatureValue Element.
|
Constructor | 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.
|
Constructor | Description |
---|---|
Transforms(Element element,
String baseURI) |
Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.