Uses of Class
org.cryptacular.StreamException
Packages that use StreamException
-
Uses of StreamException in org.cryptacular
Methods in org.cryptacular that throw StreamExceptionModifier and TypeMethodDescriptionstatic CiphertextHeader
CiphertextHeader.decode
(InputStream input) Deprecated.Creates a header from encrypted data containing a cleartext header prepended to the start.static CiphertextHeaderV2
CiphertextHeaderV2.decode
(InputStream input, Function<String, SecretKey> keyLookup) Creates a header from encrypted data containing a cleartext header prepended to the start. -
Uses of StreamException in org.cryptacular.bean
Methods in org.cryptacular.bean that throw StreamExceptionModifier and TypeMethodDescriptionboolean
Compares a bcrypt hash of the form$2n$cost$xxxxxxxxxxxxxxxxxxxxxxxxyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
with the computed hash from the given password.boolean
Compares a known hash value with the hash of the given data.boolean
Compares a known hash value with the hash of the given data.boolean
Compares a known hash value with the hash of the given data.void
AbstractCipherBean.decrypt
(InputStream input, OutputStream output) void
CipherBean.decrypt
(InputStream input, OutputStream output) Decrypts the data from the input stream onto the output stream using a symmetric cipher.void
AbstractCipherBean.encrypt
(InputStream input, OutputStream output) void
CipherBean.encrypt
(InputStream input, OutputStream output) Encrypts the data from the input stream onto the output stream using a symmetric cipher.Hashes the given data.Hashes the given data.byte[]
ResourceBasedPrivateKeyFactoryBean.newInstance()
ResourceBasedPublicKeyFactoryBean.newInstance()
ResourceBasedSecretKeyFactoryBean.newInstance()
-
Uses of StreamException in org.cryptacular.util
Methods in org.cryptacular.util that throw StreamExceptionModifier and TypeMethodDescriptionstatic boolean
HashUtil.compareHash
(org.bouncycastle.crypto.Digest digest, byte[] hash, int iterations, Object... data) Determines whether the hash of the given input equals a known value.static boolean
HashUtil.compareHash
(org.bouncycastle.crypto.Digest digest, SaltedHash hash, int iterations, boolean saltAfterData, Object... data) Determines whether the salted hash of the given input equals a known hash value.static void
CipherUtil.decrypt
(org.bouncycastle.crypto.BlockCipher cipher, SecretKey key, InputStream input, OutputStream output) Decrypts data using the given block cipher with PKCS5 padding.static void
CipherUtil.decrypt
(org.bouncycastle.crypto.modes.AEADBlockCipher cipher, SecretKey key, InputStream input, OutputStream output) Decrypts data using an AEAD cipher.static void
CipherUtil.encrypt
(org.bouncycastle.crypto.BlockCipher cipher, SecretKey key, Nonce nonce, InputStream input, OutputStream output) Encrypts data using the given block cipher with PKCS5 padding.static void
CipherUtil.encrypt
(org.bouncycastle.crypto.modes.AEADBlockCipher cipher, SecretKey key, Nonce nonce, InputStream input, OutputStream output) Encrypts data using an AEAD cipher.static byte[]
Computes the iterated hash of the given data using the given algorithm.static byte[]
Computes the hash of the given data using the given algorithm.static Reader
StreamUtil.makeReader
(File file) Creates a reader around the given file that presumably contains character data.static InputStream
StreamUtil.makeStream
(File file) Creates an input stream around the given file.static void
StreamUtil.pipeAll
(InputStream in, OutputStream out, ChunkHandler handler) Pipes an input stream into an output stream with chunked processing.static byte[]
Reads all the data from the given file.static byte[]
StreamUtil.readAll
(InputStream input) Reads all the data from the given input stream.static byte[]
StreamUtil.readAll
(InputStream input, int sizeHint) Reads all the data from the given input stream.static String
Reads all data from the given reader.static String
Reads all data from the given reader.static byte[]
Reads all the data from the file at the given path.static X509Certificate
CertUtil.readCertificate
(File file) Reads an X.509 certificate from ASN.1 encoded format from the given file.static X509Certificate
CertUtil.readCertificate
(InputStream in) Reads an X.509 certificate from ASN.1 encoded data in the given stream.static X509Certificate
CertUtil.readCertificate
(String path) Reads an X.509 certificate from ASN.1 encoded format in the file at the given location.static X509Certificate[]
CertUtil.readCertificateChain
(File file) Reads an X.509 certificate chain from ASN.1 encoded format from the given file.static X509Certificate[]
CertUtil.readCertificateChain
(InputStream in) Reads an X.509 certificate chain from ASN.1 encoded data in the given stream.static X509Certificate[]
CertUtil.readCertificateChain
(String path) Reads an X.509 certificate chain from ASN.1 encoded format in the file at the given location.static int
ByteUtil.readInt
(InputStream in) Reads 4-bytes from the input stream and converts to a 32-bit integer.static long
ByteUtil.readLong
(InputStream in) Reads 8-bytes from the input stream and converts to a 64-bit long integer.static PrivateKey
KeyPairUtil.readPrivateKey
(File file) Reads an encoded private key from a file.static PrivateKey
KeyPairUtil.readPrivateKey
(File file, char[] password) Reads an encrypted private key from a file.static PrivateKey
KeyPairUtil.readPrivateKey
(InputStream in) Reads an encoded private key from an input stream.static PrivateKey
KeyPairUtil.readPrivateKey
(InputStream in, char[] password) Reads an encrypted private key from an input stream.static PrivateKey
KeyPairUtil.readPrivateKey
(String path) Reads an encoded private key from a file at the given path.static PrivateKey
KeyPairUtil.readPrivateKey
(String path, char[] password) Reads an encrypted private key from a file at the given path.static PublicKey
KeyPairUtil.readPublicKey
(File file) Reads a DER or PEM-encoded public key from a file.static PublicKey
KeyPairUtil.readPublicKey
(InputStream in) Reads a DER or PEM-encoded public key from data in the given stream.static PublicKey
KeyPairUtil.readPublicKey
(String path) Reads a DER or PEM-encoded public key from a file.