Package | Description |
---|---|
org.apache.xml.security.algorithms |
algorithm factories.
|
org.apache.xml.security.algorithms.implementations |
implementations of
SignatureAlgorithmSpi . |
org.apache.xml.security.signature |
XML Signature specific classes.
|
org.apache.xml.security.transforms |
the framework for XML Signature transforms.
|
Modifier and Type | Method and 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,
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 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,
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 Transform algorithm with algorithmURI
|
static void |
SignatureAlgorithm.register(String algorithmURI,
String implementingClass)
Registers implementing class of the Transform algorithm 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 |
SignatureECDSA.engineInitSign(Key privateKey) |
protected void |
SignatureBaseRSA.engineInitSign(Key privateKey) |
protected void |
SignatureDSA.engineInitSign(Key privateKey) |
protected void |
IntegrityHmac.engineInitSign(Key secretKey)
Method engineInitSign
|
protected void |
SignatureECDSA.engineInitSign(Key signingKey,
AlgorithmParameterSpec algorithmParameterSpec) |
protected void |
SignatureBaseRSA.engineInitSign(Key signingKey,
AlgorithmParameterSpec algorithmParameterSpec) |
protected void |
SignatureDSA.engineInitSign(Key signingKey,
AlgorithmParameterSpec algorithmParameterSpec)
Method engineInitSign
|
protected void |
IntegrityHmac.engineInitSign(Key secretKey,
AlgorithmParameterSpec algorithmParameterSpec)
Method engineInitSign
|
protected void |
SignatureECDSA.engineInitSign(Key privateKey,
SecureRandom secureRandom) |
protected void |
SignatureBaseRSA.engineInitSign(Key privateKey,
SecureRandom secureRandom) |
protected void |
SignatureDSA.engineInitSign(Key privateKey,
SecureRandom secureRandom) |
protected void |
IntegrityHmac.engineInitSign(Key secretKey,
SecureRandom secureRandom)
Method engineInitSign
|
protected void |
SignatureECDSA.engineInitVerify(Key publicKey) |
protected void |
SignatureBaseRSA.engineInitVerify(Key publicKey) |
protected void |
SignatureDSA.engineInitVerify(Key publicKey) |
protected void |
IntegrityHmac.engineInitVerify(Key secretKey)
Proxy method for
Signature.initVerify(java.security.PublicKey)
which is executed on the internal Signature object. |
protected void |
SignatureECDSA.engineSetHMACOutputLength(int HMACOutputLength) |
protected void |
SignatureBaseRSA.engineSetHMACOutputLength(int HMACOutputLength) |
protected void |
SignatureDSA.engineSetHMACOutputLength(int HMACOutputLength)
Method engineSetHMACOutputLength
|
protected void |
SignatureECDSA.engineSetParameter(AlgorithmParameterSpec params) |
protected void |
SignatureBaseRSA.engineSetParameter(AlgorithmParameterSpec params) |
protected void |
SignatureDSA.engineSetParameter(AlgorithmParameterSpec params) |
protected void |
IntegrityHmac.engineSetParameter(AlgorithmParameterSpec params)
Proxy method for
Signature.setParameter(
java.security.spec.AlgorithmParameterSpec)
which is executed on the internal Signature object. |
protected byte[] |
SignatureECDSA.engineSign() |
protected byte[] |
SignatureBaseRSA.engineSign() |
protected byte[] |
SignatureDSA.engineSign() |
protected byte[] |
IntegrityHmac.engineSign()
Proxy method for
Signature.sign()
which is executed on the internal Signature object. |
protected void |
SignatureECDSA.engineUpdate(byte input) |
protected void |
SignatureBaseRSA.engineUpdate(byte input) |
protected void |
SignatureDSA.engineUpdate(byte input) |
protected void |
IntegrityHmac.engineUpdate(byte input)
Proxy method for
Signature.update(byte)
which is executed on the internal Signature object. |
protected void |
SignatureECDSA.engineUpdate(byte[] input) |
protected void |
SignatureBaseRSA.engineUpdate(byte[] input) |
protected void |
SignatureDSA.engineUpdate(byte[] input) |
protected void |
IntegrityHmac.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) |
protected void |
SignatureBaseRSA.engineUpdate(byte[] buf,
int offset,
int len) |
protected void |
SignatureDSA.engineUpdate(byte[] buf,
int offset,
int len) |
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 boolean |
SignatureECDSA.engineVerify(byte[] signature) |
protected boolean |
SignatureBaseRSA.engineVerify(byte[] signature) |
protected boolean |
SignatureDSA.engineVerify(byte[] signature) |
protected boolean |
IntegrityHmac.engineVerify(byte[] signature)
Proxy method for
Signature.verify(byte[])
which is executed on the internal Signature object. |
Constructor and 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
|
SignatureECDSASHA1()
Constructor SignatureECDSASHA1
|
SignatureECDSASHA224()
Constructor SignatureECDSASHA224
|
SignatureECDSASHA256()
Constructor SignatureECDSASHA256
|
SignatureECDSASHA384()
Constructor SignatureECDSASHA384
|
SignatureECDSASHA512()
Constructor SignatureECDSASHA512
|
SignatureRSAMD5()
Constructor SignatureRSAMD5
|
SignatureRSARIPEMD160()
Constructor SignatureRSARIPEMD160
|
SignatureRSASHA1()
Constructor SignatureRSASHA1
|
SignatureRSASHA224()
Constructor SignatureRSASHA224
|
SignatureRSASHA256()
Constructor SignatureRSASHA256
|
SignatureRSASHA384()
Constructor SignatureRSASHA384
|
SignatureRSASHA512()
Constructor SignatureRSASHA512
|
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
|
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.
|
Constructor and Description |
---|
Transforms(Element element,
String BaseURI)
|
Copyright © 2000–2017 The Apache Software Foundation. All rights reserved.