Uses of Class
org.cryptacular.EncodingException
Packages that use EncodingException
Package
Description
-
Uses of EncodingException in org.cryptacular
Methods in org.cryptacular that throw EncodingExceptionModifier and TypeMethodDescriptionstatic CiphertextHeaderCreates a header from encrypted data containing a cleartext header prepended to the start.static CiphertextHeaderCiphertextHeader.decode(InputStream input, Function<String, SecretKey> keyLookup) Creates a header from encrypted data containing a cleartext header prepended to the start. -
Uses of EncodingException in org.cryptacular.asn
Methods in org.cryptacular.asn that throw EncodingException -
Uses of EncodingException in org.cryptacular.bean
Methods in org.cryptacular.bean that throw EncodingExceptionModifier and TypeMethodDescriptionbooleanEncodingHashBean.compare(CharSequence hash, Object... data) Compares a known hash value with the hash of the given data.byte[]AbstractCipherBean.decrypt(byte[] input) voidAbstractCipherBean.decrypt(InputStream input, OutputStream output) Hashes the given data.PemBasedPrivateKeyFactoryBean.newInstance()PemBasedPublicKeyFactoryBean.newInstance()ResourceBasedPrivateKeyFactoryBean.newInstance()ResourceBasedPublicKeyFactoryBean.newInstance() -
Uses of EncodingException in org.cryptacular.codec
Methods in org.cryptacular.codec that throw EncodingExceptionModifier and TypeMethodDescriptionvoidAbstractBaseNDecoder.decode(CharBuffer input, ByteBuffer output) voidDecoder.decode(CharBuffer input, ByteBuffer output) Decodes characters in input buffer into bytes placed in the output buffer.voidHexDecoder.decode(CharBuffer input, ByteBuffer output) voidAbstractBaseNEncoder.encode(ByteBuffer input, CharBuffer output) voidEncoder.encode(ByteBuffer input, CharBuffer output) Encodes bytes in input buffer into characters placed in the output buffer.voidHexEncoder.encode(ByteBuffer input, CharBuffer output) voidAbstractBaseNDecoder.finalize(ByteBuffer output) voidAbstractBaseNEncoder.finalize(CharBuffer output) voidDecoder.finalize(ByteBuffer output) Performs final output decoding (e.g. padding) after all input characters have been provided.voidEncoder.finalize(CharBuffer output) Performs final output encoding (e.g. padding) after all input bytes have been provided.voidHexDecoder.finalize(ByteBuffer output) voidHexEncoder.finalize(CharBuffer output) -
Uses of EncodingException in org.cryptacular.pem
Methods in org.cryptacular.pem that throw EncodingException -
Uses of EncodingException in org.cryptacular.util
Methods in org.cryptacular.util that throw EncodingExceptionModifier and TypeMethodDescriptionstatic booleanCertUtil.allowsUsage(X509Certificate cert, org.bouncycastle.asn1.x509.KeyPurposeId... purposes) Determines whether the certificate allows the given extended key usages.static booleanCertUtil.allowsUsage(X509Certificate cert, KeyUsageBits... bits) Determines whether the certificate allows the given basic key usages.static StringCertUtil.authorityKeyId(X509Certificate cert) Gets the authority key identifier of the given certificate in delimited hexadecimal format, e.g.static StringCodecUtil.b32(byte[] raw) Encodes bytes into base 32-encoded string.static StringCodecUtil.b32(byte[] raw, int lineLength) Encodes bytes into base32-encoded string.static byte[]CodecUtil.b32(CharSequence encoded) Decodes a base32-encoded string into raw bytes.static StringCodecUtil.b64(byte[] raw) Encodes bytes into base 64-encoded string.static StringCodecUtil.b64(byte[] raw, int lineLength) Encodes bytes into base64-encoded string.static byte[]CodecUtil.b64(CharSequence encoded) Decodes a base64-encoded string into raw bytes.static byte[]CodecUtil.decode(Decoder decoder, CharSequence encoded) Decodes the given encoded data using the given char-to-byte decoder.static X509CertificateCertUtil.decodeCertificate(byte[] encoded) Creates an X.509 certificate from its ASN.1 encoded form.static X509Certificate[]CertUtil.decodeCertificateChain(byte[] encoded) Creates an X.509 certificate chain from its ASN.1 encoded form.static PrivateKeyKeyPairUtil.decodePrivateKey(byte[] encodedKey) Decodes an encoded private key in either PKCS#8 or OpenSSL "traditional" format in either DER or PEM encoding.static PrivateKeyKeyPairUtil.decodePrivateKey(byte[] encryptedKey, char[] password) Decodes an encrypted private key.static PublicKeyKeyPairUtil.decodePublicKey(byte[] encoded) Decodes public keys formatted in an X.509 SubjectPublicKeyInfo structure in either PEM or DER encoding.static byte[]Decrypts data using the given block cipher with PKCS5 padding.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 byte[]CipherUtil.decrypt(org.bouncycastle.crypto.modes.AEADBlockCipher cipher, SecretKey key, byte[] data) Decrypts data using an AEAD cipher.static voidCipherUtil.decrypt(org.bouncycastle.crypto.modes.AEADBlockCipher cipher, SecretKey key, InputStream input, OutputStream output) Decrypts data using an AEAD cipher.static StringEncodes raw bytes using the given encoder.static X509CertificateCertUtil.findEntityCertificate(PrivateKey key, X509Certificate... candidates) Finds a certificate whose public key is paired with the given private key.static X509CertificateCertUtil.findEntityCertificate(PrivateKey key, Collection<X509Certificate> candidates) Finds a certificate whose public key is paired with the given private key.static booleanCertUtil.hasPolicies(X509Certificate cert, String... policyOidsToCheck) Determines whether the certificate defines all the given certificate policies.static StringCodecUtil.hex(byte[] raw) Encodes raw bytes to the equivalent hexadecimal encoded string.static StringCodecUtil.hex(byte[] raw, boolean delimit) Encodes raw bytes to the equivalent hexadecimal encoded string with optional delimiting of output.static byte[]CodecUtil.hex(CharSequence encoded) Decodes a hexadecimal encoded string to raw bytes.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 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.static org.bouncycastle.asn1.x509.GeneralNamesCertUtil.subjectAltNames(X509Certificate cert) Gets all subject alternative names defined on the given certificate.static org.bouncycastle.asn1.x509.GeneralNamesCertUtil.subjectAltNames(X509Certificate cert, GeneralNameType... types) Gets all subject alternative names of the given type(s) on the given cert.static StringCertUtil.subjectCN(X509Certificate cert) Gets the common name attribute (CN) of the certificate subject distinguished name.static StringCertUtil.subjectKeyId(X509Certificate cert) Gets the subject key identifier of the given certificate in delimited hexadecimal format, e.g.CertUtil.subjectNames(X509Certificate cert) Gets a list of all subject names defined for the given certificate.CertUtil.subjectNames(X509Certificate cert, GeneralNameType... types) Gets a list of subject names defined for the given certificate. -
Uses of EncodingException in org.cryptacular.x509
Methods in org.cryptacular.x509 that throw EncodingExceptionModifier and TypeMethodDescriptionorg.bouncycastle.asn1.ASN1EncodableReads the value of the extension given by OID or name as defined in section 4.2 of RFC 2459.List<org.bouncycastle.asn1.x509.AccessDescription>ExtensionReader.readAuthorityInformationAccess()Reads the value of theAuthorityInformationAccessextension field of the certificate.org.bouncycastle.asn1.x509.AuthorityKeyIdentifierExtensionReader.readAuthorityKeyIdentifier()Reads the value of theAuthorityKeyIdentifierextension field of the certificate.org.bouncycastle.asn1.x509.BasicConstraintsExtensionReader.readBasicConstraints()Reads the value of theBasicConstraintsextension field of the certificate.List<org.bouncycastle.asn1.x509.PolicyInformation>ExtensionReader.readCertificatePolicies()Reads the value of theCertificatePoliciesextension field of the certificate.List<org.bouncycastle.asn1.x509.DistributionPoint>ExtensionReader.readCRLDistributionPoints()Reads the value of theCRLDistributionPointsextension field of the certificate.List<org.bouncycastle.asn1.x509.KeyPurposeId>ExtensionReader.readExtendedKeyUsage()Reads the value of theExtendedKeyUsageextension field of the certificate.org.bouncycastle.asn1.x509.GeneralNamesExtensionReader.readIssuerAlternativeName()Reads the value of theIssuerAlternativeNameextension field of the certificate.org.bouncycastle.asn1.x509.KeyUsageExtensionReader.readKeyUsage()Reads the value of theKeyUsageextension field of the certificate.org.bouncycastle.asn1.x509.GeneralNamesExtensionReader.readSubjectAlternativeName()Reads the value of the SubjectAlternativeName extension field of the certificate.org.bouncycastle.asn1.x509.SubjectKeyIdentifierExtensionReader.readSubjectKeyIdentifier()Reads the value of theSubjectKeyIdentifierextension field of the certificate.