org.apache.xml.security.algorithms
public class SignatureAlgorithm extends Algorithm
Modifier and Type | Field and Description |
---|---|
protected SignatureAlgorithmSpi |
_signatureAlgorithm
Field _signatureAlgorithm
|
_baseURI, _constructionElement, _doc
Constructor and Description |
---|
SignatureAlgorithm(org.w3c.dom.Document doc,
java.lang.String algorithmURI)
Constructor SignatureAlgorithm
|
SignatureAlgorithm(org.w3c.dom.Document doc,
java.lang.String algorithmURI,
int HMACOutputLength)
Constructor SignatureAlgorithm
|
SignatureAlgorithm(org.w3c.dom.Element element,
java.lang.String BaseURI)
Constructor SignatureAlgorithm
|
Modifier and Type | Method and Description |
---|---|
void |
clearSignatureCache()
Clear the signature caches keysSigning and instancesSigning.
|
void |
clearVerificationCache()
Clear the verification caches keysVerify and instancesVerify.
|
java.lang.String |
getBaseLocalName()
Method getBaseLocalName
|
java.lang.String |
getBaseNamespace()
Method getBaseNamespace
|
java.lang.String |
getJCEAlgorithmString()
Proxy method for
Signature.getAlgorithm()
which is executed on the internal Signature object. |
java.lang.String |
getJCEProviderName()
Method getJCEProviderName
|
java.lang.String |
getURI()
Returns the URI representation of Transformation algorithm
|
void |
initSign(java.security.Key signingKey)
Proxy method for
Signature.initSign(java.security.PrivateKey)
which is executed on the internal Signature object. |
void |
initSign(java.security.Key signingKey,
java.security.spec.AlgorithmParameterSpec algorithmParameterSpec)
Proxy method for
Signature.initSign(java.security.PrivateKey)
which is executed on the internal Signature object. |
void |
initSign(java.security.Key signingKey,
java.security.SecureRandom secureRandom)
Proxy method for
Signature.initSign(java.security.PrivateKey, java.security.SecureRandom)
which is executed on the internal Signature object. |
void |
initVerify(java.security.Key verificationKey)
Proxy method for
Signature.initVerify(java.security.PublicKey)
which is executed on the internal Signature object. |
static void |
providerInit()
Initalizes for this
Transform |
static void |
register(java.lang.String algorithmURI,
java.lang.String implementingClass)
Registers implementing class of the Transform algorithm with algorithmURI
|
void |
setParameter(java.security.spec.AlgorithmParameterSpec params)
Proxy method for
Signature.setParameter(java.security.spec.AlgorithmParameterSpec)
which is executed on the internal Signature object. |
byte[] |
sign()
Proxy method for
Signature.sign()
which is executed on the internal Signature object. |
void |
update(byte input)
Proxy method for
Signature.update(byte)
which is executed on the internal Signature object. |
void |
update(byte[] input)
Proxy method for
Signature.update(byte[])
which is executed on the internal Signature object. |
void |
update(byte[] buf,
int offset,
int len)
Proxy method for
Signature.update(byte[], int, int)
which is executed on the internal Signature object. |
boolean |
verify(byte[] signature)
Proxy method for
Signature.verify(byte[])
which is executed on the internal Signature object. |
getAlgorithmURI, setAlgorithmURI
addBase64Element, addBase64Text, addBigIntegerElement, addText, addTextElement, createElementForFamily, createElementForFamilyLocal, getBaseURI, getBigIntegerFromChildElement, getBytesFromChildElement, getBytesFromTextChild, getDefaultPrefix, getDefaultPrefixBindings, getDocument, getElement, getElementPlusReturns, getTextFromChildElement, getTextFromTextChild, length, setDefaultPrefix, setElement, setXPathNamespaceContext
protected SignatureAlgorithmSpi _signatureAlgorithm
public SignatureAlgorithm(org.w3c.dom.Document doc, java.lang.String algorithmURI) throws XMLSecurityException
doc
- algorithmURI
- XMLSecurityException
public SignatureAlgorithm(org.w3c.dom.Document doc, java.lang.String algorithmURI, int HMACOutputLength) throws XMLSecurityException
doc
- algorithmURI
- HMACOutputLength
- XMLSecurityException
public SignatureAlgorithm(org.w3c.dom.Element element, java.lang.String BaseURI) throws XMLSecurityException
element
- BaseURI
- XMLSecurityException
public byte[] sign() throws XMLSignatureException
Signature.sign()
which is executed on the internal Signature
object.Signature.sign()
methodXMLSignatureException
public java.lang.String getJCEAlgorithmString()
Signature.getAlgorithm()
which is executed on the internal Signature
object.Signature.getAlgorithm()
methodpublic java.lang.String getJCEProviderName()
public void update(byte[] input) throws XMLSignatureException
Signature.update(byte[])
which is executed on the internal Signature
object.input
- XMLSignatureException
public void update(byte input) throws XMLSignatureException
Signature.update(byte)
which is executed on the internal Signature
object.input
- XMLSignatureException
public void update(byte[] buf, int offset, int len) throws XMLSignatureException
Signature.update(byte[], int, int)
which is executed on the internal Signature
object.buf
- offset
- len
- XMLSignatureException
public void initSign(java.security.Key signingKey) throws XMLSignatureException
Signature.initSign(java.security.PrivateKey)
which is executed on the internal Signature
object.signingKey
- XMLSignatureException
public void initSign(java.security.Key signingKey, java.security.SecureRandom secureRandom) throws XMLSignatureException
Signature.initSign(java.security.PrivateKey, java.security.SecureRandom)
which is executed on the internal Signature
object.signingKey
- secureRandom
- XMLSignatureException
public void initSign(java.security.Key signingKey, java.security.spec.AlgorithmParameterSpec algorithmParameterSpec) throws XMLSignatureException
Signature.initSign(java.security.PrivateKey)
which is executed on the internal Signature
object.signingKey
- algorithmParameterSpec
- XMLSignatureException
public void setParameter(java.security.spec.AlgorithmParameterSpec params) throws XMLSignatureException
Signature.setParameter(java.security.spec.AlgorithmParameterSpec)
which is executed on the internal Signature
object.params
- XMLSignatureException
public void initVerify(java.security.Key verificationKey) throws XMLSignatureException
Signature.initVerify(java.security.PublicKey)
which is executed on the internal Signature
object.verificationKey
- XMLSignatureException
public void clearVerificationCache()
public void clearSignatureCache()
public boolean verify(byte[] signature) throws XMLSignatureException
Signature.verify(byte[])
which is executed on the internal Signature
object.signature
- XMLSignatureException
public final java.lang.String getURI()
public static void providerInit()
Transform
public static void register(java.lang.String algorithmURI, java.lang.String implementingClass) throws AlgorithmAlreadyRegisteredException, XMLSignatureException
algorithmURI
- algorithmURI URI representation of Transform algorithm
.implementingClass
- implementingClass
the implementing class of SignatureAlgorithmSpi
AlgorithmAlreadyRegisteredException
- if specified algorithmURI is already registeredXMLSignatureException
public java.lang.String getBaseNamespace()
getBaseNamespace
in class SignatureElementProxy
public java.lang.String getBaseLocalName()
getBaseLocalName
in class ElementProxy
Copyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.