• Constructor Summary

    Constructors

    protected

    Creates 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.

    int

    digest(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 int

    Returns 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 MessageDigest object that implements the specified digest algorithm.

    Returns a MessageDigest object that implements the specified digest algorithm.

    Returns a MessageDigest object that implements the specified digest algorithm.

    Returns the provider of this message digest object.

    static boolean

    isEqual(byte[] digesta, byte[] digestb)

    Compares two digests for equality.

    void

    reset()

    Resets the digest for further use.

    toString()

    Returns a string representation of this message digest object.

    void

    update(byte input)

    Updates the digest using the specified byte.

    void

    update(byte[] input)

    Updates the digest using the specified array of bytes.

    void

    update(byte[] input, int offset, int len)

    Updates the digest using the specified array of bytes, starting at the specified offset.

    final void

    Update the digest using the specified ByteBuffer.

    Methods declared in class MessageDigestSpi

    engineDigest, engineDigest, engineGetDigestLength, engineReset, engineUpdate, engineUpdate, engineUpdate

    protected abstract byte[]

    Completes the hash computation by performing final operations such as padding.

    protected int

    Completes the hash computation by performing final operations such as padding.

    protected int

    Returns the digest length in bytes.

    protected abstract void

    Resets the digest for further use.

    protected abstract void

    Updates the digest using the specified byte.

    protected abstract void

    Updates the digest using the specified array of bytes, starting at the specified offset.

    protected void

    Update the digest using the specified ByteBuffer.

    Methods declared in class Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    boolean

    Indicates whether some other object is "equal to" this one.

    protected void

    Deprecated, for removal: This API element is subject to removal in a future version.

    Returns the runtime class of this Object.

    int

    Returns a hash code value for this object.

    final void

    Wakes up a single thread that is waiting on this object's monitor.

    final void

    Wakes up all threads that are waiting on this object's monitor.

    final void

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

    final void

    wait(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 void

    wait(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