Liking cljdoc? Tell your friends :D

jdk.security.DigestOutputStream

A transparent stream that updates the associated message digest using the bits going through the stream.

To complete the message digest computation, call one of the digest methods on the associated message digest after your calls to one of this digest output stream's write methods.

It is possible to turn this stream on or off (see on). When it is on, a call to one of the write methods results in an update on the message digest. But when it is off, the message digest is not updated. The default is for the stream to be on.

A transparent stream that updates the associated message digest using
the bits going through the stream.

To complete the message digest computation, call one of the
digest methods on the associated message
digest after your calls to one of this digest output stream's
write methods.

It is possible to turn this stream on or off (see
on). When it is on, a call to one of the
write methods results in
an update on the message digest.  But when it is off, the message
digest is not updated. The default is for the stream to be on.
raw docstring

->digest-output-streamclj

(->digest-output-stream stream digest)

Constructor.

Creates a digest output stream, using the specified output stream and message digest.

stream - the output stream. - java.io.OutputStream digest - the message digest to associate with this stream. - java.security.MessageDigest

Constructor.

Creates a digest output stream, using the specified output stream
 and message digest.

stream - the output stream. - `java.io.OutputStream`
digest - the message digest to associate with this stream. - `java.security.MessageDigest`
raw docstring

get-message-digestclj

(get-message-digest this)

Returns the message digest associated with this stream.

returns: the message digest associated with this stream. - java.security.MessageDigest

Returns the message digest associated with this stream.

returns: the message digest associated with this stream. - `java.security.MessageDigest`
raw docstring

onclj

(on this on)

Turns the digest function on or off. The default is on. When it is on, a call to one of the write methods results in an update on the message digest. But when it is off, the message digest is not updated.

on - true to turn the digest function on, false to turn it off. - boolean

Turns the digest function on or off. The default is on.  When
 it is on, a call to one of the write methods results in an
 update on the message digest.  But when it is off, the message
 digest is not updated.

on - true to turn the digest function on, false to turn it off. - `boolean`
raw docstring

set-message-digestclj

(set-message-digest this digest)

Associates the specified message digest with this stream.

digest - the message digest to be associated with this stream. - java.security.MessageDigest

Associates the specified message digest with this stream.

digest - the message digest to be associated with this stream. - `java.security.MessageDigest`
raw docstring

to-stringclj

(to-string this)

Prints a string representation of this digest output stream and its associated message digest object.

returns: a string representation of the object. - java.lang.String

Prints a string representation of this digest output stream and
 its associated message digest object.

returns: a string representation of the object. - `java.lang.String`
raw docstring

writeclj

(write this b)
(write this b off len)

Updates the message digest (if the digest function is on) using the specified subarray, and in any case writes the subarray to the output stream. That is, if the digest function is on (see on), this method calls update on the message digest associated with this stream, passing it the subarray specifications. This method then writes the subarray bytes to the output stream, blocking until the bytes are actually written.

b - the array containing the subarray to be used for updating and writing to the output stream. - byte[] off - the offset into b of the first byte to be updated and written. - int len - the number of bytes of data to be updated and written from b, starting at offset off. - int

throws: java.io.IOException - if an I/O error occurs.

Updates the message digest (if the digest function is on) using
 the specified subarray, and in any case writes the subarray to
 the output stream. That is, if the digest function is on (see
 on), this method calls update
 on the message digest associated with this stream, passing it
 the subarray specifications. This method then writes the subarray
 bytes to the output stream, blocking until the bytes are actually
 written.

b - the array containing the subarray to be used for updating and writing to the output stream. - `byte[]`
off - the offset into b of the first byte to be updated and written. - `int`
len - the number of bytes of data to be updated and written from b, starting at offset off. - `int`

throws: java.io.IOException - if an I/O error occurs.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close