Uses of Class
org.owasp.esapi.errors.EncryptionException
-
Packages that use EncryptionException Package Description org.owasp.esapi The ESAPI interfaces andExceptionclasses model the most important security functions to enterprise web applications.org.owasp.esapi.crypto This package contains ESAPI cryptography-related classes used throughout ESAPI.org.owasp.esapi.reference This package contains reference implementations of the ESAPI interfaces.org.owasp.esapi.reference.crypto This package contains the reference implementation for some of the ESAPI cryptography-related classes used throughout ESAPI. -
-
Uses of EncryptionException in org.owasp.esapi
Methods in org.owasp.esapi that throw EncryptionException Modifier and Type Method Description voidUser. changePassword(java.lang.String oldPassword, java.lang.String newPassword1, java.lang.String newPassword2)Sets the user's password, performing a verification of the user's old password, the equality of the two new passwords, and the strength of the new password.PlainTextEncryptor. decrypt(javax.crypto.SecretKey key, CipherText ciphertext)Decrypts the providedCipherTextusing the information from it and the specified secret key.PlainTextEncryptor. decrypt(CipherText ciphertext)Decrypts the providedCipherTextusing the information from it and the master encryption key as specified by the propertyEncryptor.MasterKeyas defined in theESAPI.propertiesfile.java.util.Map<java.lang.String,java.lang.String>HTTPUtilities. decryptQueryString(java.lang.String encrypted)Takes an encrypted querystring and returns a Map containing the original parameters.java.util.Map<java.lang.String,java.lang.String>HTTPUtilities. decryptStateFromCookie()Calls decryptStateFromCookie with the *current* request.java.util.Map<java.lang.String,java.lang.String>HTTPUtilities. decryptStateFromCookie(javax.servlet.http.HttpServletRequest request)Retrieves a map of data from a cookie encrypted with encryptStateInCookie().CipherTextEncryptor. encrypt(javax.crypto.SecretKey key, PlainText plaintext)Encrypts the provided plaintext bytes using the cipher transformation specified by the propertyEncryptor.CipherTransformationas defined in theESAPI.propertiesfile and the specified secret key.CipherTextEncryptor. encrypt(PlainText plaintext)Encrypts the provided plaintext bytes using the cipher transformation specified by the propertyEncryptor.CipherTransformationand the master encryption key as specified by the propertyEncryptor.MasterKeyas defined in theESAPI.propertiesfile.java.lang.StringHTTPUtilities. encryptHiddenField(java.lang.String value)Encrypts a hidden field value for use in HTML.java.lang.StringHTTPUtilities. encryptQueryString(java.lang.String query)Takes a querystring (everything after the question mark in the URL) and returns an encrypted string containing the parameters.voidHTTPUtilities. encryptStateInCookie(java.util.Map<java.lang.String,java.lang.String> cleartext)Calls encryptStateInCookie with the *current* response.voidHTTPUtilities. encryptStateInCookie(javax.servlet.http.HttpServletResponse response, java.util.Map<java.lang.String,java.lang.String> cleartext)Stores a Map of data in an encrypted cookie.java.lang.StringEncryptedProperties. getProperty(java.lang.String key)Gets the property value from the encrypted store, decrypts it, and returns the plaintext value to the caller.java.lang.StringRandomizer. getRandomGUID()Generates a random GUID.java.lang.StringEncryptor. hash(java.lang.String plaintext, java.lang.String salt)Returns a string representation of the hash of the provided plaintext and salt.java.lang.StringEncryptor. hash(java.lang.String plaintext, java.lang.String salt, int iterations)Returns a string representation of the hash of the provided plaintext and salt.java.lang.StringAuthenticator. hashPassword(java.lang.String password, java.lang.String accountName)Returns a string representation of the hashed password, using the accountName as the salt.java.lang.StringEncryptedProperties. setProperty(java.lang.String key, java.lang.String value)Encrypts the plaintext property value and stores the ciphertext value in the encrypted store.java.lang.StringEncryptor. sign(java.lang.String data)Create a digital signature for the provided data and return it in a string.java.lang.StringEncryptor. unseal(java.lang.String seal)Unseals data (created with the seal method) and throws an exception describing any of the various problems that could exist with a seal, such as an invalid seal format, expired timestamp, or decryption error.booleanUser. verifyPassword(java.lang.String password)Verify that the supplied password matches the password for this user. -
Uses of EncryptionException in org.owasp.esapi.crypto
Methods in org.owasp.esapi.crypto that throw EncryptionException Modifier and Type Method Description byte[]CipherText. asPortableSerializedByteArray()Return thisCipherTextobject as a portable (i.e., network byte ordered) serialized byte array.static javax.crypto.SecretKeyCryptoHelper. computeDerivedKey(javax.crypto.SecretKey keyDerivationKey, int keySize, java.lang.String purpose)Deprecated.Use same method inKeyDerivationFunctioninstead.javax.crypto.SecretKeyKeyDerivationFunction. computeDerivedKey(javax.crypto.SecretKey keyDerivationKey, int keySize, java.lang.String purpose)The method is ESAPI's Key Derivation Function (KDF) that computes a derived key from thekeyDerivationKeyfor either encryption / decryption or for authentication.static CipherTextCipherText. fromPortableSerializedBytes(byte[] bytes)Create aCipherTextobject from what is supposed to be a portable serialized byte array, given in network byte order, that represents a valid, previously serializedCipherTextobject usingCipherText.asPortableSerializedByteArray().static javax.crypto.SecretKeyCryptoHelper. generateSecretKey(java.lang.String alg, int keySize)Generate a random secret key appropriate to the specified cipher algorithm and key size.java.lang.StringCryptoToken. getToken()Return the new encrypted token as a base64-encoded string, encrypted with the specifiedSecretKeywith which this object was constructed.java.lang.StringCryptoToken. getToken(javax.crypto.SecretKey skey)Return the new encrypted token as a base64-encoded string, encrypted with the specifiedSecretKeywhich may be a different key than what the token was originally encrypted with.voidCipherText. setCiphertext(byte[] ciphertext)Set the raw ciphertext.voidCipherText. setIVandCiphertext(byte[] iv, byte[] ciphertext)Set the IV and raw ciphertext.java.lang.StringCryptoToken. updateToken(int additionalSecs)Update the (current) expiration time by adding the specified number of seconds to it and then re-encrypting with the currentSecretKeythat was used to construct this object.Constructors in org.owasp.esapi.crypto that throw EncryptionException Constructor Description CipherText(CipherSpec cipherSpec, byte[] cipherText)Construct from aCipherSpecobject and the raw ciphertext.CipherTextSerializer(byte[] cipherTextSerializedBytes)Given byte array in network byte order (i.e., big-endian order), convert it so that aCipherTextcan be constructed from it.CryptoToken(java.lang.String token)Create using previously encrypted token encrypted with default secret key from ESAPI.properties.CryptoToken(javax.crypto.SecretKey skey, java.lang.String token)Create cryptographic token using previously encrypted token that was encrypted with specified secret key. -
Uses of EncryptionException in org.owasp.esapi.reference
Methods in org.owasp.esapi.reference that throw EncryptionException Modifier and Type Method Description voidDefaultUser. changePassword(java.lang.String oldPassword, java.lang.String newPassword1, java.lang.String newPassword2)Sets the user's password, performing a verification of the user's old password, the equality of the two new passwords, and the strength of the new password.java.util.Map<java.lang.String,java.lang.String>DefaultHTTPUtilities. decryptQueryString(java.lang.String encrypted)Takes an encrypted querystring and returns a Map containing the original parameters.java.util.Map<java.lang.String,java.lang.String>DefaultHTTPUtilities. decryptStateFromCookie()Calls decryptStateFromCookie with the *current* request.java.util.Map<java.lang.String,java.lang.String>DefaultHTTPUtilities. decryptStateFromCookie(javax.servlet.http.HttpServletRequest request)Retrieves a map of data from a cookie encrypted with encryptStateInCookie().java.lang.StringDefaultHTTPUtilities. encryptHiddenField(java.lang.String value)Encrypts a hidden field value for use in HTML.java.lang.StringDefaultHTTPUtilities. encryptQueryString(java.lang.String query)Takes a querystring (everything after the question mark in the URL) and returns an encrypted string containing the parameters.voidDefaultHTTPUtilities. encryptStateInCookie(java.util.Map<java.lang.String,java.lang.String> cleartext)Calls encryptStateInCookie with the *current* response.voidDefaultHTTPUtilities. encryptStateInCookie(javax.servlet.http.HttpServletResponse response, java.util.Map<java.lang.String,java.lang.String> cleartext)Stores a Map of data in an encrypted cookie.java.lang.StringDefaultRandomizer. getRandomGUID()Generates a random GUID.java.lang.StringFileBasedAuthenticator. hashPassword(java.lang.String password, java.lang.String accountName)Returns a string representation of the hashed password, using the accountName as the salt. -
Uses of EncryptionException in org.owasp.esapi.reference.crypto
Methods in org.owasp.esapi.reference.crypto that throw EncryptionException Modifier and Type Method Description PlainTextJavaEncryptor. decrypt(javax.crypto.SecretKey key, CipherText ciphertext)Decrypts the providedCipherTextusing the information from it and the specified secret key.PlainTextJavaEncryptor. decrypt(CipherText ciphertext)Decrypts the providedCipherTextusing the information from it and the master encryption key as specified by the propertyEncryptor.MasterKeyas defined in theESAPI.propertiesfile.CipherTextJavaEncryptor. encrypt(javax.crypto.SecretKey key, PlainText plain)Encrypts the provided plaintext bytes using the cipher transformation specified by the propertyEncryptor.CipherTransformationas defined in theESAPI.propertiesfile and the specified secret key.CipherTextJavaEncryptor. encrypt(PlainText plaintext)Encrypts the provided plaintext bytes using the cipher transformation specified by the propertyEncryptor.CipherTransformationand the master encryption key as specified by the propertyEncryptor.MasterKeyas defined in theESAPI.propertiesfile.static EncryptorJavaEncryptor. getInstance()java.lang.StringDefaultEncryptedProperties. getProperty(java.lang.String key)Gets the property value from the encrypted store, decrypts it, and returns the plaintext value to the caller.java.lang.StringJavaEncryptor. hash(java.lang.String plaintext, java.lang.String salt)Returns a string representation of the hash of the provided plaintext and salt.java.lang.StringJavaEncryptor. hash(java.lang.String plaintext, java.lang.String salt, int iterations)Returns a string representation of the hash of the provided plaintext and salt.java.lang.StringDefaultEncryptedProperties. setProperty(java.lang.String key, java.lang.String value)Encrypts the plaintext property value and stores the ciphertext value in the encrypted store.java.lang.StringJavaEncryptor. sign(java.lang.String data)Create a digital signature for the provided data and return it in a string.java.lang.StringJavaEncryptor. unseal(java.lang.String seal)Unseals data (created with the seal method) and throws an exception describing any of the various problems that could exist with a seal, such as an invalid seal format, expired timestamp, or decryption error.
-