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 CiphertextHeaderCiphertextHeader.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 TypeMethodDescriptionbooleanBCryptHashBean.compare(CharSequence hash, Object... data) Compares a bcrypt hash of the form$2n$cost$xxxxxxxxxxxxxxxxxxxxxxxxyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyywith the computed hash from the given password.booleanEncodingHashBean.compare(CharSequence hash, Object... data) Compares a known hash value with the hash of the given data.booleanCompares a known hash value with the hash of the given data.booleanCompares a known hash value with the hash of the given data.voidAbstractCipherBean.decrypt(InputStream input, OutputStream output) voidCipherBean.decrypt(InputStream input, OutputStream output) Decrypts the data from the input stream onto the output stream using a symmetric cipher.voidAbstractCipherBean.encrypt(InputStream input, OutputStream output) voidCipherBean.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 booleanHashUtil.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 booleanHashUtil.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 voidCipherUtil.decrypt(org.bouncycastle.crypto.BlockCipher cipher, SecretKey key, InputStream input, OutputStream output) Decrypts data using the given block cipher with PKCS5 padding.static voidCipherUtil.decrypt(org.bouncycastle.crypto.modes.AEADBlockCipher cipher, SecretKey key, InputStream input, OutputStream output) Decrypts data using an AEAD cipher.static voidCipherUtil.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 voidCipherUtil.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 ReaderStreamUtil.makeReader(File file) Creates a reader around the given file that presumably contains character data.static InputStreamStreamUtil.makeStream(File file) Creates an input stream around the given file.static voidStreamUtil.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 StringReads all data from the given reader.static StringReads all data from the given reader.static byte[]Reads all the data from the file at the given path.static X509CertificateCertUtil.readCertificate(File file) Reads an X.509 certificate from ASN.1 encoded format from the given file.static X509CertificateCertUtil.readCertificate(InputStream in) Reads an X.509 certificate from ASN.1 encoded data in the given stream.static X509CertificateCertUtil.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 intByteUtil.readInt(InputStream in) Reads 4-bytes from the input stream and converts to a 32-bit integer.static longByteUtil.readLong(InputStream in) Reads 8-bytes from the input stream and converts to a 64-bit long integer.static PrivateKeyKeyPairUtil.readPrivateKey(File file) Reads an encoded private key from a file.static PrivateKeyKeyPairUtil.readPrivateKey(File file, char[] password) Reads an encrypted private key from a file.static PrivateKeyKeyPairUtil.readPrivateKey(InputStream in) Reads an encoded private key from an input stream.static PrivateKeyKeyPairUtil.readPrivateKey(InputStream in, char[] password) Reads an encrypted private key from an input stream.static PrivateKeyKeyPairUtil.readPrivateKey(String path) Reads an encoded private key from a file at the given path.static PrivateKeyKeyPairUtil.readPrivateKey(String path, char[] password) Reads an encrypted private key from a file at the given path.static PublicKeyKeyPairUtil.readPublicKey(File file) Reads a DER or PEM-encoded public key from a file.static PublicKeyKeyPairUtil.readPublicKey(InputStream in) Reads a DER or PEM-encoded public key from data in the given stream.static PublicKeyKeyPairUtil.readPublicKey(String path) Reads a DER or PEM-encoded public key from a file.