public final class MessageDigestAlgorithm extends Algorithm
MessageDigestAlgorithm.getInstance()
Modifier and Type | Field and Description |
---|---|
static String |
ALGO_ID_DIGEST_NOT_RECOMMENDED_MD5
Message Digest - NOT RECOMMENDED MD5
|
static String |
ALGO_ID_DIGEST_RIPEMD160
Message Digest - OPTIONAL RIPEMD-160
|
static String |
ALGO_ID_DIGEST_SHA1
Digest - Required SHA1
|
static String |
ALGO_ID_DIGEST_SHA224
Message Digest - OPTIONAL SHA224
|
static String |
ALGO_ID_DIGEST_SHA256
Message Digest - RECOMMENDED SHA256
|
static String |
ALGO_ID_DIGEST_SHA3_224 |
static String |
ALGO_ID_DIGEST_SHA3_256 |
static String |
ALGO_ID_DIGEST_SHA3_384 |
static String |
ALGO_ID_DIGEST_SHA3_512 |
static String |
ALGO_ID_DIGEST_SHA384
Message Digest - OPTIONAL SHA384
|
static String |
ALGO_ID_DIGEST_SHA512
Message Digest - OPTIONAL SHA512
|
static String |
ALGO_ID_DIGEST_WHIRLPOOL |
baseURI, LOG
Modifier and Type | Method and Description |
---|---|
byte[] |
digest()
Proxy method for
MessageDigest.digest()
which is executed on the internal MessageDigest object. |
byte[] |
digest(byte[] input)
Proxy method for
MessageDigest.digest(byte[])
which is executed on the internal MessageDigest object. |
int |
digest(byte[] buf,
int offset,
int len)
Proxy method for
MessageDigest.digest(byte[], int, int)
which is executed on the internal MessageDigest object. |
MessageDigest |
getAlgorithm()
Returns the actual
MessageDigest algorithm object |
String |
getBaseLocalName()
Returns the localname of the Elements of the sub-class.
|
String |
getBaseNamespace()
Returns the namespace of the Elements of the sub-class.
|
int |
getDigestLength()
Proxy method for
MessageDigest.getDigestLength()
which is executed on the internal MessageDigest object. |
static MessageDigestAlgorithm |
getInstance(Document doc,
String algorithmURI)
Factory method for constructing a message digest algorithm by name.
|
String |
getJCEAlgorithmString()
Proxy method for
MessageDigest.getAlgorithm()
which is executed on the internal MessageDigest object. |
Provider |
getJCEProvider()
Proxy method for
MessageDigest.getProvider()
which is executed on the internal MessageDigest object. |
static boolean |
isEqual(byte[] digesta,
byte[] digestb)
Proxy method for
MessageDigest.isEqual(byte[], byte[])
which is executed on the internal MessageDigest object. |
void |
reset()
Proxy method for
MessageDigest.reset()
which is executed on the internal MessageDigest object. |
void |
update(byte input)
Proxy method for
MessageDigest.update(byte)
which is executed on the internal MessageDigest object. |
void |
update(byte[] input)
Proxy method for
MessageDigest.update(byte[])
which is executed on the internal MessageDigest object. |
void |
update(byte[] buf,
int offset,
int len)
Proxy method for
MessageDigest.update(byte[], int, int)
which is executed on the internal MessageDigest object. |
getAlgorithmURI, setAlgorithmURI
addBase64Element, addBase64Text, addBigIntegerElement, addReturnToSelf, addText, addTextElement, appendOther, appendSelf, appendSelf, createElementForFamily, createElementForFamilyLocal, createText, getBaseURI, getBigIntegerFromChildElement, getBytesFromTextChild, getDefaultPrefix, getDocument, getElement, getElementPlusReturns, getFirstChild, getLocalAttribute, getTextFromChildElement, getTextFromTextChild, length, registerDefaultPrefixes, setDefaultPrefix, setDocument, setElement, setElement, setLocalAttribute, setLocalIdAttribute, setXPathNamespaceContext
public static final String ALGO_ID_DIGEST_NOT_RECOMMENDED_MD5
public static final String ALGO_ID_DIGEST_SHA1
public static final String ALGO_ID_DIGEST_SHA224
public static final String ALGO_ID_DIGEST_SHA256
public static final String ALGO_ID_DIGEST_SHA384
public static final String ALGO_ID_DIGEST_SHA512
public static final String ALGO_ID_DIGEST_RIPEMD160
public static final String ALGO_ID_DIGEST_WHIRLPOOL
public static final String ALGO_ID_DIGEST_SHA3_224
public static final String ALGO_ID_DIGEST_SHA3_256
public static final String ALGO_ID_DIGEST_SHA3_384
public static final String ALGO_ID_DIGEST_SHA3_512
public static MessageDigestAlgorithm getInstance(Document doc, String algorithmURI) throws XMLSignatureException
doc
- algorithmURI
- XMLSignatureException
public MessageDigest getAlgorithm()
MessageDigest
algorithm objectMessageDigest
algorithm objectpublic static boolean isEqual(byte[] digesta, byte[] digestb)
MessageDigest.isEqual(byte[], byte[])
which is executed on the internal MessageDigest
object.digesta
- digestb
- MessageDigest.isEqual(byte[], byte[])
methodpublic byte[] digest()
MessageDigest.digest()
which is executed on the internal MessageDigest
object.MessageDigest.digest()
methodpublic byte[] digest(byte[] input)
MessageDigest.digest(byte[])
which is executed on the internal MessageDigest
object.input
- MessageDigest.digest(byte[])
methodpublic int digest(byte[] buf, int offset, int len) throws DigestException
MessageDigest.digest(byte[], int, int)
which is executed on the internal MessageDigest
object.buf
- offset
- len
- MessageDigest.digest(byte[], int, int)
methodDigestException
public String getJCEAlgorithmString()
MessageDigest.getAlgorithm()
which is executed on the internal MessageDigest
object.MessageDigest.getAlgorithm()
methodpublic Provider getJCEProvider()
MessageDigest.getProvider()
which is executed on the internal MessageDigest
object.MessageDigest.getProvider()
methodpublic int getDigestLength()
MessageDigest.getDigestLength()
which is executed on the internal MessageDigest
object.MessageDigest.getDigestLength()
methodpublic void reset()
MessageDigest.reset()
which is executed on the internal MessageDigest
object.public void update(byte[] input)
MessageDigest.update(byte[])
which is executed on the internal MessageDigest
object.input
- public void update(byte input)
MessageDigest.update(byte)
which is executed on the internal MessageDigest
object.input
- public void update(byte[] buf, int offset, int len)
MessageDigest.update(byte[], int, int)
which is executed on the internal MessageDigest
object.buf
- offset
- len
- public String getBaseNamespace()
getBaseNamespace
in class SignatureElementProxy
public String getBaseLocalName()
getBaseLocalName
in class ElementProxy
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.