MessageDigest (Java SE 26 & JDK 26)
-
Constructor Summary
Constructors
protectedCreates a message digest with the specified algorithm name.
-
Method Summary
clone()Returns a clone if the implementation is cloneable.
byte[]digest()Completes the hash computation by performing final operations such as padding.
byte[]digest(byte[] input) Performs a final update on the digest using the specified array of bytes, then completes the digest computation.
intdigest(byte[] buf, int offset, int len) Completes the hash computation by performing final operations such as padding.
Returns a string that identifies the algorithm, independent of implementation details.
final intReturns the length of the digest in bytes, or 0 if this operation is not supported by the provider and the implementation is not cloneable.
Returns a
MessageDigestobject that implements the specified digest algorithm.Returns a
MessageDigestobject that implements the specified digest algorithm.Returns a
MessageDigestobject that implements the specified digest algorithm.Returns the provider of this message digest object.
static booleanisEqual(byte[] digesta, byte[] digestb) Compares two digests for equality.
voidreset()Resets the digest for further use.
toString()Returns a string representation of this message digest object.
voidupdate(byte input) Updates the digest using the specified byte.
voidupdate(byte[] input) Updates the digest using the specified array of bytes.
voidupdate(byte[] input, int offset, int len) Updates the digest using the specified array of bytes, starting at the specified offset.
final voidUpdate the digest using the specified ByteBuffer.
Methods declared in class MessageDigestSpi
engineDigest, engineDigest, engineGetDigestLength, engineReset, engineUpdate, engineUpdate, engineUpdateprotected abstract byte[]Completes the hash computation by performing final operations such as padding.
protected intCompletes the hash computation by performing final operations such as padding.
protected intReturns the digest length in bytes.
protected abstract voidResets the digest for further use.
protected abstract voidUpdates the digest using the specified byte.
protected abstract voidUpdates the digest using the specified array of bytes, starting at the specified offset.
protected voidUpdate the digest using the specified ByteBuffer.
Methods declared in class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbooleanIndicates whether some other object is "equal to" this one.
protected voidDeprecated, for removal: This API element is subject to removal in a future version.
Returns the runtime class of this
Object.intReturns a hash code value for this object.
final voidWakes up a single thread that is waiting on this object's monitor.
final voidWakes up all threads that are waiting on this object's monitor.
final voidCauses the current thread to wait until it is awakened, typically by being notified or interrupted.
final voidwait(long timeoutMillis) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
final voidwait(long timeoutMillis, int nanos) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
-
Constructor Details
-
MessageDigest
-
-
Method Details
-
getInstance
-
getInstance
-
getInstance
-
getProvider
-
update
-
update
-
update
-
update
-
digest
-
digest
-
digest
-
toString
-
isEqual
-
reset
-
getAlgorithm
-
getDigestLength
-
clone
-