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 CiphertextHeader
CiphertextHeader.decode
(byte[] data) Deprecated.Creates a header from encrypted data containing a cleartext header prepended to the start.static CiphertextHeader
CiphertextHeader.decode
(InputStream input) Deprecated.Creates a header from encrypted data containing a cleartext header prepended to the start.static CiphertextHeaderV2
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 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 TypeMethodDescriptionboolean
Compares a known hash value with the hash of the given data.byte[]
AbstractCipherBean.decrypt
(byte[] input) void
AbstractCipherBean.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 TypeMethodDescriptionvoid
AbstractBaseNDecoder.decode
(CharBuffer input, ByteBuffer output) void
Decoder.decode
(CharBuffer input, ByteBuffer output) Decodes characters in input buffer into bytes placed in the output buffer.void
HexDecoder.decode
(CharBuffer input, ByteBuffer output) void
AbstractBaseNEncoder.encode
(ByteBuffer input, CharBuffer output) void
Encoder.encode
(ByteBuffer input, CharBuffer output) Encodes bytes in input buffer into characters placed in the output buffer.void
HexEncoder.encode
(ByteBuffer input, CharBuffer output) void
AbstractBaseNDecoder.finalize
(ByteBuffer output) void
AbstractBaseNEncoder.finalize
(CharBuffer output) void
Decoder.finalize
(ByteBuffer output) Performs final output decoding (e.g.void
Encoder.finalize
(CharBuffer output) Performs final output encoding (e.g.void
HexDecoder.finalize
(ByteBuffer output) void
HexEncoder.finalize
(CharBuffer output) -
Uses of EncodingException in org.cryptacular.util
Methods in org.cryptacular.util that throw EncodingExceptionModifier and TypeMethodDescriptionstatic boolean
CertUtil.allowsUsage
(X509Certificate cert, org.bouncycastle.asn1.x509.KeyPurposeId... purposes) Determines whether the certificate allows the given extended key usages.static boolean
CertUtil.allowsUsage
(X509Certificate cert, KeyUsageBits... bits) Determines whether the certificate allows the given basic key usages.static String
CertUtil.authorityKeyId
(X509Certificate cert) Gets the authority key identifier of the given certificate in delimited hexadecimal format, e.g.static String
CodecUtil.b32
(byte[] raw) Encodes bytes into base 32-encoded string.static String
CodecUtil.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 String
CodecUtil.b64
(byte[] raw) Encodes bytes into base 64-encoded string.static String
CodecUtil.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 X509Certificate
CertUtil.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 PrivateKey
KeyPairUtil.decodePrivateKey
(byte[] encodedKey) Decodes an encoded private key in either PKCS#8 or OpenSSL "traditional" format in either DER or PEM encoding.static PrivateKey
KeyPairUtil.decodePrivateKey
(byte[] encryptedKey, char[] password) Decodes an encrypted private key.static PublicKey
KeyPairUtil.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 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 byte[]
CipherUtil.decrypt
(org.bouncycastle.crypto.modes.AEADBlockCipher cipher, SecretKey key, byte[] data) Decrypts data using an AEAD cipher.static void
CipherUtil.decrypt
(org.bouncycastle.crypto.modes.AEADBlockCipher cipher, SecretKey key, InputStream input, OutputStream output) Decrypts data using an AEAD cipher.static String
Encodes raw bytes using the given encoder.static X509Certificate
CertUtil.findEntityCertificate
(PrivateKey key, X509Certificate... candidates) Finds a certificate whose public key is paired with the given private key.static X509Certificate
CertUtil.findEntityCertificate
(PrivateKey key, Collection<X509Certificate> candidates) Finds a certificate whose public key is paired with the given private key.static boolean
CertUtil.hasPolicies
(X509Certificate cert, String... policyOidsToCheck) Determines whether the certificate defines all of the given certificate policies.static String
CodecUtil.hex
(byte[] raw) Encodes raw bytes to the equivalent hexadecimal encoded string.static String
CodecUtil.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 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 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.static org.bouncycastle.asn1.x509.GeneralNames
CertUtil.subjectAltNames
(X509Certificate cert) Gets all subject alternative names defined on the given certificate.static org.bouncycastle.asn1.x509.GeneralNames
CertUtil.subjectAltNames
(X509Certificate cert, GeneralNameType... types) Gets all subject alternative names of the given type(s) on the given cert.static String
CertUtil.subjectCN
(X509Certificate cert) Gets the common name attribute (CN) of the certificate subject distinguished name.static String
CertUtil.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.ASN1Encodable
Reads 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 theAuthorityInformationAccess
extension field of the certificate.org.bouncycastle.asn1.x509.AuthorityKeyIdentifier
ExtensionReader.readAuthorityKeyIdentifier()
Reads the value of theAuthorityKeyIdentifier
extension field of the certificate.org.bouncycastle.asn1.x509.BasicConstraints
ExtensionReader.readBasicConstraints()
Reads the value of theBasicConstraints
extension field of the certificate.List<org.bouncycastle.asn1.x509.PolicyInformation>
ExtensionReader.readCertificatePolicies()
Reads the value of theCertificatePolicies
extension field of the certificate.List<org.bouncycastle.asn1.x509.DistributionPoint>
ExtensionReader.readCRLDistributionPoints()
Reads the value of theCRLDistributionPoints
extension field of the certificate.List<org.bouncycastle.asn1.x509.KeyPurposeId>
ExtensionReader.readExtendedKeyUsage()
Reads the value of theExtendedKeyUsage
extension field of the certificate.org.bouncycastle.asn1.x509.GeneralNames
ExtensionReader.readIssuerAlternativeName()
Reads the value of theIssuerAlternativeName
extension field of the certificate.org.bouncycastle.asn1.x509.KeyUsage
ExtensionReader.readKeyUsage()
Reads the value of theKeyUsage
extension field of the certificate.org.bouncycastle.asn1.x509.GeneralNames
ExtensionReader.readSubjectAlternativeName()
Reads the value of the SubjectAlternativeName extension field of the certificate.org.bouncycastle.asn1.x509.SubjectKeyIdentifier
ExtensionReader.readSubjectKeyIdentifier()
Reads the value of theSubjectKeyIdentifier
extension field of the certificate.