public final class ThreadSHA256 extends ThreadLocal<MessageDigest>
Modifier and Type | Method and Description |
---|---|
static MessageDigest |
getInstance()
Returns a SHA-256 MessageDigest instance local to current Thread.
|
protected MessageDigest |
initialValue()
Returns the current thread's "initial value" for this thread-local
variable.
|
get, remove, set, withInitial
protected MessageDigest initialValue()
ThreadLocal.get()
method, unless the thread previously
invoked the ThreadLocal.set(T)
method, in which case the initialValue
method will not be invoked for the thread. Normally, this method is
invoked at most once per thread, but it may be invoked again in case of
subsequent invocations of ThreadLocal.remove()
followed by ThreadLocal.get()
.initialValue
in class ThreadLocal<MessageDigest>
InternalError
- if an error occurs creating the initial value-public static MessageDigest getInstance()
Copyright © OBCOM INGENIERIA S.A. (Chile). All Rights Reserved.