APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xml.internal.security.algorithms

public final Class MessageDigestAlgorithm

extends Algorithm
Class Inheritance
Imports
java.security.MessageDigest, .NoSuchAlgorithmException, .NoSuchProviderException, com.sun.org.apache.xml.internal.security.signature.XMLSignatureException, com.sun.org.apache.xml.internal.security.utils.Constants, .EncryptionConstants, org.w3c.dom.Document

Digest Message wrapper and selector class.
MessageDigestAlgorithm.getInstance()

Field Summary

Modifier and TypeField and Description
public static final String
ALGO_ID_DIGEST_RIPEMD160

Message Digest - OPTIONAL RIPEMD-160

public static final String
ALGO_ID_DIGEST_SHA1

Digest - Required SHA1

public static final String
ALGO_ID_DIGEST_SHA224

Message Digest - OPTIONAL SHA224

public static final String
ALGO_ID_DIGEST_SHA256

Message Digest - RECOMMENDED SHA256

public static final String
ALGO_ID_DIGEST_SHA384

Message Digest - OPTIONAL SHA384

public static final String
public static final String
public static final String
public static final String
public static final String
ALGO_ID_DIGEST_SHA512

Message Digest - OPTIONAL SHA512

public static final String
private final MessageDigest
algorithm

Field algorithm stores the actual java.security.MessageDigest

Constructor Summary

AccessConstructor and Description
private
MessageDigestAlgorithm(Document doc, String algorithmURI)

Constructor for the brave who pass their own message digest algorithms and the corresponding URI.

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

the result of the java.security.MessageDigest#digest() method
digest
()

Proxy method for java.security.MessageDigest#digest() which is executed on the internal java.security.MessageDigest object.

public byte[]

Returns:

the result of the java.security.MessageDigest#digest(byte[]) method
digest
(byte[] input)

Proxy method for java.security.MessageDigest#digest(byte[]) which is executed on the internal java.security.MessageDigest object.

public int
digest(byte[] buf, int offset, int len)

Proxy method for java.security.MessageDigest#digest(byte[], int, int) which is executed on the internal java.security.MessageDigest object.

public MessageDigest

Returns:

the actual java.security.MessageDigest algorithm object
getAlgorithm
()

Returns the actual java.security.MessageDigest algorithm object

public String
getBaseLocalName()

Implements abstract com.sun.org.apache.xml.internal.security.utils.ElementProxy.getBaseLocalName.

Returns the localname of the Elements of the sub-class.

public String
getBaseNamespace()

Overrides com.sun.org.apache.xml.internal.security.utils.SignatureElementProxy.getBaseNamespace.

Returns the namespace of the Elements of the sub-class.

public static MessageDigest
getDigestInstance(String algorithmURI)

public int

Returns:

the result of the java.security.MessageDigest#getDigestLength method
getDigestLength
()

Proxy method for java.security.MessageDigest#getDigestLength which is executed on the internal java.security.MessageDigest object.

public static MessageDigestAlgorithm

Returns:

The MessageDigestAlgorithm element to attach in document and to digest
getInstance
(Document doc, String algorithmURI)

Factory method for constructing a message digest algorithm by name.

public String

Returns:

the result of the java.security.MessageDigest#getAlgorithm method
getJCEAlgorithmString
()

Proxy method for java.security.MessageDigest#getAlgorithm which is executed on the internal java.security.MessageDigest object.

public Provider

Returns:

the result of the java.security.MessageDigest#getProvider method
getJCEProvider
()

Proxy method for java.security.MessageDigest#getProvider which is executed on the internal java.security.MessageDigest object.

public static boolean

Returns:

the result of the java.security.MessageDigest#isEqual method
isEqual
(byte[] digesta, byte[] digestb)

Proxy method for java.security.MessageDigest#isEqual which is executed on the internal java.security.MessageDigest object.

public void
reset()

Proxy method for java.security.MessageDigest#reset which is executed on the internal java.security.MessageDigest object.

public void
update(byte[] input)

Proxy method for java.security.MessageDigest#update(byte[]) which is executed on the internal java.security.MessageDigest object.

public void
update(byte input)

Proxy method for java.security.MessageDigest#update(byte) which is executed on the internal java.security.MessageDigest object.

public void
update(byte[] buf, int offset, int len)

Proxy method for java.security.MessageDigest#update(byte[], int, int) which is executed on the internal java.security.MessageDigest object.

Inherited from com.sun.org.apache.xml.internal.security.algorithms.Algorithm:
getAlgorithmURIsetAlgorithmURI

Field Detail

ALGO_ID_DIGEST_RIPEMD160back to summary
public static final String ALGO_ID_DIGEST_RIPEMD160

Message Digest - OPTIONAL RIPEMD-160

ALGO_ID_DIGEST_SHA1back to summary
public static final String ALGO_ID_DIGEST_SHA1

Digest - Required SHA1

ALGO_ID_DIGEST_SHA224back to summary
public static final String ALGO_ID_DIGEST_SHA224

Message Digest - OPTIONAL SHA224

ALGO_ID_DIGEST_SHA256back to summary
public static final String ALGO_ID_DIGEST_SHA256

Message Digest - RECOMMENDED SHA256

ALGO_ID_DIGEST_SHA384back to summary
public static final String ALGO_ID_DIGEST_SHA384

Message Digest - OPTIONAL SHA384

ALGO_ID_DIGEST_SHA3_224back to summary
public static final String ALGO_ID_DIGEST_SHA3_224
ALGO_ID_DIGEST_SHA3_256back to summary
public static final String ALGO_ID_DIGEST_SHA3_256
ALGO_ID_DIGEST_SHA3_384back to summary
public static final String ALGO_ID_DIGEST_SHA3_384
ALGO_ID_DIGEST_SHA3_512back to summary
public static final String ALGO_ID_DIGEST_SHA3_512
ALGO_ID_DIGEST_SHA512back to summary
public static final String ALGO_ID_DIGEST_SHA512

Message Digest - OPTIONAL SHA512

ALGO_ID_DIGEST_WHIRLPOOLback to summary
public static final String ALGO_ID_DIGEST_WHIRLPOOL
algorithmback to summary
private final MessageDigest algorithm

Field algorithm stores the actual java.security.MessageDigest

Constructor Detail

MessageDigestAlgorithmback to summary
private MessageDigestAlgorithm(Document doc, String algorithmURI) throws XMLSignatureException

Constructor for the brave who pass their own message digest algorithms and the corresponding URI.

Method Detail

digestback to summary
public byte[] digest()

Proxy method for java.security.MessageDigest#digest() which is executed on the internal java.security.MessageDigest object.

Returns:byte[]

the result of the java.security.MessageDigest#digest() method

digestback to summary
public byte[] digest(byte[] input)

Proxy method for java.security.MessageDigest#digest(byte[]) which is executed on the internal java.security.MessageDigest object.

Returns:byte[]

the result of the java.security.MessageDigest#digest(byte[]) method

digestback to summary
public int digest(byte[] buf, int offset, int len) throws DigestException

Proxy method for java.security.MessageDigest#digest(byte[], int, int) which is executed on the internal java.security.MessageDigest object.

Returns:int

the result of the java.security.MessageDigest#digest(byte[], int, int) method

getAlgorithmback to summary
public MessageDigest getAlgorithm()

Returns the actual java.security.MessageDigest algorithm object

Returns:MessageDigest

the actual java.security.MessageDigest algorithm object

getBaseLocalNameback to summary
public String getBaseLocalName()

Implements abstract com.sun.org.apache.xml.internal.security.utils.ElementProxy.getBaseLocalName.

Doc from com.sun.org.apache.xml.internal.security.utils.ElementProxy.getBaseLocalName.

Returns the localname of the Elements of the sub-class.

Annotations
@Override
getBaseNamespaceback to summary
public String getBaseNamespace()

Overrides com.sun.org.apache.xml.internal.security.utils.SignatureElementProxy.getBaseNamespace.

Doc from com.sun.org.apache.xml.internal.security.utils.SignatureElementProxy.getBaseNamespace.

Returns the namespace of the Elements of the sub-class.

Annotations
@Override
getDigestInstanceback to summary
public static MessageDigest getDigestInstance(String algorithmURI) throws XMLSignatureException
getDigestLengthback to summary
public int getDigestLength()

Proxy method for java.security.MessageDigest#getDigestLength which is executed on the internal java.security.MessageDigest object.

Returns:int

the result of the java.security.MessageDigest#getDigestLength method

getInstanceback to summary
public static MessageDigestAlgorithm getInstance(Document doc, String algorithmURI) throws XMLSignatureException

Factory method for constructing a message digest algorithm by name.

Returns:MessageDigestAlgorithm

The MessageDigestAlgorithm element to attach in document and to digest

getJCEAlgorithmStringback to summary
public String getJCEAlgorithmString()

Proxy method for java.security.MessageDigest#getAlgorithm which is executed on the internal java.security.MessageDigest object.

Returns:String

the result of the java.security.MessageDigest#getAlgorithm method

getJCEProviderback to summary
public Provider getJCEProvider()

Proxy method for java.security.MessageDigest#getProvider which is executed on the internal java.security.MessageDigest object.

Returns:Provider

the result of the java.security.MessageDigest#getProvider method

isEqualback to summary
public static boolean isEqual(byte[] digesta, byte[] digestb)

Proxy method for java.security.MessageDigest#isEqual which is executed on the internal java.security.MessageDigest object.

Returns:boolean

the result of the java.security.MessageDigest#isEqual method

resetback to summary
public void reset()

Proxy method for java.security.MessageDigest#reset which is executed on the internal java.security.MessageDigest object.

updateback to summary
public void update(byte[] input)

Proxy method for java.security.MessageDigest#update(byte[]) which is executed on the internal java.security.MessageDigest object.

updateback to summary
public void update(byte input)

Proxy method for java.security.MessageDigest#update(byte) which is executed on the internal java.security.MessageDigest object.

updateback to summary
public void update(byte[] buf, int offset, int len)

Proxy method for java.security.MessageDigest#update(byte[], int, int) which is executed on the internal java.security.MessageDigest object.