Uses of Class
edu.vt.middleware.crypt.CryptException

Packages that use CryptException
edu.vt.middleware.crypt   
edu.vt.middleware.crypt.asymmetric   
edu.vt.middleware.crypt.digest   
edu.vt.middleware.crypt.io   
edu.vt.middleware.crypt.pbe   
edu.vt.middleware.crypt.signature   
edu.vt.middleware.crypt.symmetric   
edu.vt.middleware.crypt.tasks   
edu.vt.middleware.crypt.util   
edu.vt.middleware.crypt.x509   
 

Uses of CryptException in edu.vt.middleware.crypt
 

Methods in edu.vt.middleware.crypt that throw CryptException
protected  byte[] AbstractEncryptionAlgorithm.crypt(byte[] in)
          Based on current cipher mode, encrypts or decrypts the given input data.
protected  void AbstractEncryptionAlgorithm.crypt(InputStream in, OutputStream out)
          Based on current cipher mode, encrypts or decrypts the data in the given input stream into resulting data in the output stream.
 byte[] EncryptionAlgorithm.decrypt(byte[] ciphertext)
          Decrypts the given ciphertext bytes into a byte array of plaintext using the decryption key.
 byte[] AbstractEncryptionAlgorithm.decrypt(byte[] ciphertext)
          Decrypts the given ciphertext bytes into a byte array of plaintext using the decryption key.
 void EncryptionAlgorithm.decrypt(InputStream in, OutputStream out)
          Decrypts the data in the given ciphertext input stream into plaintext in the output stream.
 void AbstractEncryptionAlgorithm.decrypt(InputStream in, OutputStream out)
          Decrypts the data in the given ciphertext input stream into plaintext in the output stream.
 byte[] EncryptionAlgorithm.decrypt(String ciphertext, Converter converter)
          Decrypts a string representation of ciphertext bytes into a byte array of plaintext using the decryption key.
 byte[] AbstractEncryptionAlgorithm.decrypt(String ciphertext, Converter converter)
          Decrypts a string representation of ciphertext bytes into a byte array of plaintext using the decryption key.
 byte[] EncryptionAlgorithm.encrypt(byte[] plaintext)
          Encrypts the given plaintext bytes into a byte array of ciphertext using the encryption key.
 byte[] AbstractEncryptionAlgorithm.encrypt(byte[] plaintext)
          Encrypts the given plaintext bytes into a byte array of ciphertext using the encryption key.
 String EncryptionAlgorithm.encrypt(byte[] plaintext, Converter converter)
          Encrypts the given plaintext bytes into a ciphertext string using the conversion strategy provided by the given converter.
 String AbstractEncryptionAlgorithm.encrypt(byte[] plaintext, Converter converter)
          Encrypts the given plaintext bytes into a ciphertext string using the conversion strategy provided by the given converter.
 void EncryptionAlgorithm.encrypt(InputStream in, OutputStream out)
          Encrypts the data in the given plaintext input stream into ciphertext in the output stream.
 void AbstractEncryptionAlgorithm.encrypt(InputStream in, OutputStream out)
          Encrypts the data in the given plaintext input stream into ciphertext in the output stream.
static CertificateFactory CryptProvider.getCertificateFactory(String type)
          This creates a CertificateFactory using the supplied type name.
static Cipher CryptProvider.getCipher(String algorithm, String mode, String padding)
          This finds a Cipher using the known providers and the supplied parameters.
static KeyFactory CryptProvider.getKeyFactory(String algorithm)
          This finds a KeyFactory using the known providers and the supplied algorithm parameter.
static KeyGenerator CryptProvider.getKeyGenerator(String algorithm)
          This finds a KeyGenerator using the known providers and the supplied algorithm parameter.
static KeyPairGenerator CryptProvider.getKeyPairGenerator(String algorithm)
          This finds a KeyPairGenerator using the known providers and the supplied algorithm parameter.
static KeyStore CryptProvider.getKeyStore()
          This creates a KeyStore using the default keystore type.
static KeyStore CryptProvider.getKeyStore(String type)
          This creates a KeyStore using the supplied type name.
static MessageDigest CryptProvider.getMessageDigest(String algorithm)
          This creates a MessageDigest using the supplied algorithm name.
static SecretKeyFactory CryptProvider.getSecretKeyFactory(String algorithm)
          This finds a SecretKeyFactory using the known providers and the supplied algorithm parameter.
static Signature CryptProvider.getSignature(String digestAlgorithm, String algorithm, String padding)
          This finds a Signature using the known providers and the supplied parameters.
protected  void AbstractEncryptionAlgorithm.init(int encryptOrDecrypt)
          Initializes AbstractEncryptionAlgorithm.cipher for either encryption or decryption.
protected  void AbstractEncryptionAlgorithm.initCipher()
          Initializes the underlying Cipher object using AbstractAlgorithm.algorithm, AbstractEncryptionAlgorithm.mode, and AbstractEncryptionAlgorithm.padding.
 void EncryptionAlgorithm.initDecrypt()
          Initializes this instance for decryption operations.
 void AbstractEncryptionAlgorithm.initDecrypt()
          Initializes this instance for decryption operations.
 void EncryptionAlgorithm.initEncrypt()
          Initializes this instance for encryption operations.
 void AbstractEncryptionAlgorithm.initEncrypt()
          Initializes this instance for encryption operations.
 

Uses of CryptException in edu.vt.middleware.crypt.asymmetric
 

Methods in edu.vt.middleware.crypt.asymmetric that throw CryptException
static KeyPair PublicKeyUtils.generate(String algorithm, AlgorithmParameterSpec params)
          Generates a key pair with precise control over algorithm parameters.
static KeyPair PublicKeyUtils.generate(String algorithm, AlgorithmParameterSpec params, SecureRandom random)
          Generates a key pair with precise control over algorithm parameters.
static KeyPair PublicKeyUtils.generate(String algorithm, int bitLength)
          Generates a key pair of the given length with default algorithm parameters.
static KeyPair PublicKeyUtils.generate(String algorithm, int bitLength, SecureRandom random)
          Generates a key pair of the given length with default algorithm parameters.
protected  PrivateKey AsymmetricCli.readPrivateKey(org.apache.commons.cli.CommandLine line)
          Creates a private key from a file defined by CLI arguments.
 

Uses of CryptException in edu.vt.middleware.crypt.digest
 

Constructors in edu.vt.middleware.crypt.digest that throw CryptException
MD4(boolean randomize)
          Creates a new MD4 digest that may optionally be initialized with random data.
MD4(byte[] salt)
          Creates a new MD4 digest and initializes it with the given salt.
 

Uses of CryptException in edu.vt.middleware.crypt.io
 

Methods in edu.vt.middleware.crypt.io that throw CryptException
protected  PublicKey PublicKeyCredentialReader.decode(byte[] encoded)
          Decodes an encoded representation of a credential into a corresponding object.
protected  PrivateKey PrivateKeyCredentialReader.decode(byte[] encoded)
          Decodes an encoded representation of a credential into a corresponding object.
protected abstract  T AbstractEncodedCredentialReader.decode(byte[] encoded)
          Decodes an encoded representation of a credential into a corresponding object.
protected  CertificateFactory AbstractX509CredentialReader.getX509CertificateFactory()
          Gets a certificate factory for handling X.509 certificates and related objects.
 SecretKey SecretKeyCredentialReader.read(File file)
          Reads a credential, commonly in encoded format, from the given file.
 T CredentialReader.read(File file)
          Reads a credential, commonly in encoded format, from the given file.
 T AbstractX509CredentialReader.read(File file)
          Reads a credential, commonly in encoded format, from the given file.
 T AbstractEncodedCredentialReader.read(File file)
          Reads a credential, commonly in encoded format, from the given file.
 PrivateKey PrivateKeyCredentialReader.read(File file, char[] password)
          Reads an encrypted private key in PKCS#8 or OpenSSL "traditional" format from a file into a PrivateKey object.
 X509CRL X509CRLCredentialReader.read(InputStream in)
          Reads a credential, commonly in encoded format, from the given input stream.
 X509Certificate[] X509CertificatesCredentialReader.read(InputStream in)
          Reads a credential, commonly in encoded format, from the given input stream.
 X509Certificate X509CertificateCredentialReader.read(InputStream in)
          Reads a credential, commonly in encoded format, from the given input stream.
 SecretKey SecretKeyCredentialReader.read(InputStream in)
          Reads a credential, commonly in encoded format, from the given input stream.
 T CredentialReader.read(InputStream in)
          Reads a credential, commonly in encoded format, from the given input stream.
 T AbstractEncodedCredentialReader.read(InputStream in)
          Reads a credential, commonly in encoded format, from the given input stream.
 PrivateKey PrivateKeyCredentialReader.read(InputStream in, char[] password)
          Reads an encrypted private key in PKCS#8 or OpenSSL "traditional" format from a file into a PrivateKey object.
 

Uses of CryptException in edu.vt.middleware.crypt.pbe
 

Methods in edu.vt.middleware.crypt.pbe that throw CryptException
 byte[] EncryptionScheme.decrypt(char[] password, byte[] ciphertext)
          Decrypts the given ciphertext bytes into a byte array of plaintext using a decryption key based on the given password.
 byte[] AbstractEncryptionScheme.decrypt(char[] password, byte[] ciphertext)
          Decrypts the given ciphertext bytes into a byte array of plaintext using a decryption key based on the given password.
 void EncryptionScheme.decrypt(char[] password, InputStream in, OutputStream out)
          Decrypts the data in the given ciphertext input stream into plaintext in the output stream.
 void AbstractEncryptionScheme.decrypt(char[] password, InputStream in, OutputStream out)
          Decrypts the data in the given ciphertext input stream into plaintext in the output stream.
 byte[] EncryptionScheme.encrypt(char[] password, byte[] plaintext)
          Encrypts the given plaintext bytes into a byte array of ciphertext using an encryption key derived from the password.
 byte[] AbstractEncryptionScheme.encrypt(char[] password, byte[] plaintext)
          Encrypts the given plaintext bytes into a byte array of ciphertext using an encryption key derived from the password.
 void EncryptionScheme.encrypt(char[] password, InputStream in, OutputStream out)
          Encrypts the data in the given plaintext input stream into ciphertext in the output stream.
 void AbstractEncryptionScheme.encrypt(char[] password, InputStream in, OutputStream out)
          Encrypts the data in the given plaintext input stream into ciphertext in the output stream.
 

Uses of CryptException in edu.vt.middleware.crypt.signature
 

Methods in edu.vt.middleware.crypt.signature that throw CryptException
 void SignatureAlgorithm.initSign()
          Initialize the signature for the SignatureAlgorithm.sign(byte[]) operation.
 void SignatureAlgorithm.initVerify()
          Initialize the signature for the SignatureAlgorithm.verify(byte[], byte[]) operation.
protected  PrivateKey SignatureCli.readPrivateKey(org.apache.commons.cli.CommandLine line)
          Creates a private key from a file defined by CLI arguments.
 byte[] SignatureAlgorithm.sign(byte[] data)
          Signs the given data and returns the signature as a byte array.
 byte[] RSASignature.sign(byte[] data)
          Signs the given data and returns the signature as a byte array.
 byte[] AbstractDSASignature.sign(byte[] data)
          Signs the given data and returns the signature as a byte array.
 String SignatureAlgorithm.sign(byte[] data, Converter converter)
          Signs the given data and returns the signature as a string using the conversion strategy provided by the given converter.
 byte[] SignatureAlgorithm.sign(InputStream in)
          Computes the signature of the data in the given input stream by processing in chunks.
 byte[] RSASignature.sign(InputStream in)
          Computes the signature of the data in the given input stream by processing in chunks.
 byte[] AbstractDSASignature.sign(InputStream in)
          Computes the signature of the data in the given input stream by processing in chunks.
 String SignatureAlgorithm.sign(InputStream in, Converter converter)
          Computes the signature of the data in the given input stream by processing in chunks.
 boolean SignatureAlgorithm.verify(byte[] data, byte[] signature)
          Verifies the signature of the given data matches the given signature.
 boolean RSASignature.verify(byte[] data, byte[] signature)
          Verifies the signature of the given data matches the given signature.
 boolean AbstractDSASignature.verify(byte[] data, byte[] signature)
          Verifies the signature of the given data matches the given signature.
 boolean SignatureAlgorithm.verify(byte[] data, String signature, Converter converter)
          Verifies the signature of the given data matches the given signature.
 boolean SignatureAlgorithm.verify(InputStream in, byte[] signature)
          Verifies the signature of the given data matches the given signature.
 boolean RSASignature.verify(InputStream in, byte[] signature)
          Verifies the signature of the given data matches the given signature.
 boolean AbstractDSASignature.verify(InputStream in, byte[] signature)
          Verifies the signature of the given data matches the given signature.
 boolean SignatureAlgorithm.verify(InputStream in, String signature, Converter converter)
          Verifies the signature of the data in the given input stream matches the given signature.
 

Uses of CryptException in edu.vt.middleware.crypt.symmetric
 

Methods in edu.vt.middleware.crypt.symmetric that throw CryptException
static SecretKey SecretKeyUtils.generate(String algorithm, int bitLength)
          Generates a new secret key of the prescribed length that is suitable for the given algorithm.
static SecretKey SecretKeyUtils.generate(String algorithm, int bitLength, SecureRandom random)
          Generates a new secret key of the prescribed length that is suitable for the given algorithm.
protected  SecretKey SymmetricCli.readKey(org.apache.commons.cli.CommandLine line)
          Creates a symmetric key from a file defined by CLI arguments.
 

Uses of CryptException in edu.vt.middleware.crypt.tasks
 

Methods in edu.vt.middleware.crypt.tasks that throw CryptException
protected  SymmetricAlgorithm AbstractCryptTask.createAlgorithm()
          Creates a new symmetric algorithm cipher and initializes it using task properties.
 

Uses of CryptException in edu.vt.middleware.crypt.util
 

Methods in edu.vt.middleware.crypt.util that throw CryptException
static Certificate CryptReader.readCertificate(byte[] certBytes)
          Reads a PEM or DER-encoded certificate of the default type from a byte array into a Certificate object.
static Certificate CryptReader.readCertificate(byte[] certBytes, String type)
          Reads a PEM or DER-encoded certificate of the default type from a byte array into a Certificate object.
static Certificate CryptReader.readCertificate(File certFile)
          Reads a PEM or DER-encoded certificate of the default type from a file into a Certificate object.
static Certificate CryptReader.readCertificate(File certFile, String type)
          Reads a PEM or DER-encoded certificate of the given type from a file into a Certificate object.
static Certificate CryptReader.readCertificate(InputStream certStream)
          Reads a PEM or DER-encoded certificate of the default type from an input stream into a Certificate object.
static Certificate CryptReader.readCertificate(InputStream certStream, String type)
          Reads a PEM or DER-encoded certificate of the default type from an input stream into a Certificate object.
static Certificate[] CryptReader.readCertificateChain(byte[] chainBytes)
          Reads a certificate chain of the default certificate type from a byte array containing data in any of the formats supported by CryptReader.readCertificateChain(InputStream, String).
static Certificate[] CryptReader.readCertificateChain(byte[] chainBytes, String type)
          Reads a certificate chain of the given type from a byte array containing data in any of the formats supported by CryptReader.readCertificateChain(InputStream, String).
static Certificate[] CryptReader.readCertificateChain(File chainFile)
          Reads a certificate chain of the default certificate type from a file containing data in any of the formats supported by CryptReader.readCertificateChain(InputStream, String).
static Certificate[] CryptReader.readCertificateChain(File chainFile, String type)
          Reads a certificate chain of the given type from a file containing data in any of the formats supported by CryptReader.readCertificateChain(InputStream, String).
static Certificate[] CryptReader.readCertificateChain(InputStream chainStream)
          Reads a certificate chain of the default certificate type from an input stream containing data in any of the formats supported by CryptReader.readCertificateChain(InputStream, String).
static Certificate[] CryptReader.readCertificateChain(InputStream chainStream, String type)
          Reads a certificate chain of the default certificate type from an input stream containing data in any of the following formats: Sequence of DER-encoded certificates Concatenation of PEM-encoded certificates PKCS#7 certificate chain
static X509CRL CryptReader.readCRL(byte[] crlBytes)
          Reads a PEM or DER-encoded X.509 CRL from a byte array into an X509CRL object.
static X509CRL CryptReader.readCRL(File crlFile)
          Reads a PEM or DER-encoded X.509 CRL from a file into an X509CRL object.
static X509CRL CryptReader.readCRL(InputStream crlStream)
          Reads a PEM or DER-encoded X.509 CRL from an input stream into an X509CRL object.
static PrivateKey CryptReader.readPrivateKey(byte[] keyBytes)
          Reads a DER-encoded private key in PKCS#8 or OpenSSL "traditional" format from a byte array into a PrivateKey object.
static PrivateKey CryptReader.readPrivateKey(byte[] keyBytes, char[] password)
          Reads an encrypted private key in PKCS#8 or OpenSSL "traditional" format from a byte array into a PrivateKey object.
static PrivateKey CryptReader.readPrivateKey(File keyFile)
          Reads a DER-encoded private key in PKCS#8 or OpenSSL "traditional" format from a file into a PrivateKey object.
static PrivateKey CryptReader.readPrivateKey(File keyFile, char[] password)
          Reads an encrypted private key in PKCS#8 or OpenSSL "traditional" format from a file into a PrivateKey object.
static PrivateKey CryptReader.readPrivateKey(InputStream keyStream)
          Reads a DER-encoded private key in PKCS#8 or OpenSSL "traditional" format from an input stream into a PrivateKey object.
static PrivateKey CryptReader.readPrivateKey(InputStream keyStream, char[] password)
          Reads an encrypted private key in PKCS#8 or OpenSSL "traditional" format from an input stream into a PrivateKey object.
static PublicKey CryptReader.readPublicKey(byte[] keyBytes)
          Reads a PEM or DER-encoded X.509 public key from a byte array into a PublicKey object.
static PublicKey CryptReader.readPublicKey(File keyFile)
          Reads a DER-encoded X.509 public key from an input stream into a PublicKey object.
static PublicKey CryptReader.readPublicKey(InputStream keyStream)
          Reads a PEM or DER-encoded X.509 public key from an input stream into a PublicKey object.
static SecretKey CryptReader.readSecretKey(byte[] keyBytes, String algorithm)
          Reads the raw bytes of a symmetric encryption key from a byte array.
static SecretKey CryptReader.readSecretKey(File keyFile, String algorithm)
          Reads the raw bytes of a symmetric encryption key from a file.
static SecretKey CryptReader.readSecretKey(InputStream keyStream, String algorithm)
          Reads the raw bytes of a symmetric encryption key from an input stream.
static void CryptWriter.writeEncodedCertificate(Certificate cert, File file)
          Writes the supplied certificate to the file using its native encoding.
static void CryptWriter.writeEncodedCertificate(Certificate cert, OutputStream out)
          Writes the supplied certificate to the output stream using its native encoding.
static void CryptWriter.writeEncodedCertificates(Certificate[] certs, File file)
          Writes the supplied certificates in sequence to the file using their native encoding.
static void CryptWriter.writeEncodedCertificates(Certificate[] certs, OutputStream out)
          Writes the supplied certificates in sequence to the output stream using their native encoding.
 

Uses of CryptException in edu.vt.middleware.crypt.x509
 

Methods in edu.vt.middleware.crypt.x509 that throw CryptException
 Object ExtensionReader.read(ExtensionType extension)
          Reads the value of the given certificate extension field.
 Object ExtensionReader.read(String extensionOidOrName)
          Reads the value of the extension given by OID or name as defined in section 4.2 of RFC 2459.
 Map<ExtensionType,Object> ExtensionReader.readAll()
          Attempts to read all extensions defined in section 4.2 of RFC 2459 and returns a map of all extensions defined on the certificate.
 AccessDescriptionList ExtensionReader.readAuthorityInformationAccess()
          Reads the value of the AuthorityInformationAccess extension field of the certificate.
 AuthorityKeyIdentifier ExtensionReader.readAuthorityKeyIdentifier()
          Reads the value of the AuthorityKeyIdentifier extension field of the certificate.
 BasicConstraints ExtensionReader.readBasicConstraints()
          Reads the value of the BasicConstraints extension field of the certificate.
 PolicyInformationList ExtensionReader.readCertificatePolicies()
          Reads the value of the CertificatePolicies extension field of the certificate.
 DistributionPointList ExtensionReader.readCRLDistributionPoints()
          Reads the value of the CRLDistributionPoints extension field of the certificate.
 KeyPurposeIdList ExtensionReader.readExtendedKeyUsage()
          Reads the value of the ExtendedKeyUsage extension field of the certificate.
 GeneralNameList ExtensionReader.readIssuerAlternativeName()
          Reads the value of the IssuerAlternativeName extension field of the certificate.
 KeyUsage ExtensionReader.readKeyUsage()
          Reads the value of the KeyUsage extension field of the certificate.
 GeneralNameList ExtensionReader.readSubjectAlternativeName()
          Reads the value of the SubjectAlternativeName extension field of the certificate.
 KeyIdentifier ExtensionReader.readSubjectKeyIdentifier()
          Reads the value of the SubjectKeyIdentifier extension field of the certificate.
 



Copyright © 2003-2013 Virginia Tech. All Rights Reserved.