Package org.nuxeo.common.codec
Class Crypto.NoOp
java.lang.Object
org.nuxeo.common.codec.Crypto
org.nuxeo.common.codec.Crypto.NoOp
- Enclosing class:
- Crypto
-
Nested Class Summary
Nested classes/interfaces inherited from class org.nuxeo.common.codec.Crypto
Crypto.NoOp
-
Field Summary
Fields inherited from class org.nuxeo.common.codec.Crypto
AES, AES_ECB_PKCS5PADDING, CRYPTO_PATTERN, DEFAULT_ALGO, DES, DES_ECB_PKCS5PADDING, IMPLEMENTED_ALGOS
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear sensible values.byte[]
The method returns either the decryptedstrToDecrypt
, either thestrToDecrypt
itself if it is not recognized as a crypted string or if the decryption fails.Methods inherited from class org.nuxeo.common.codec.Crypto
encrypt, getBytes, getChars, getKeysFromKeyStore, getSecretKey, getSHA1Digest, getSHA1DigestOrEmpty, isEncrypted, setKeyInKeyStore, verifyKey, verifyKey
-
Field Details
-
NO_OP
-
-
Method Details
-
encrypt
- Overrides:
encrypt
in classCrypto
- Parameters:
algorithm
- cipher transformation of the form "algorithm/mode/padding" or "algorithm". See the Cipher section in the Java Cryptography Architecture Standard Algorithm Name Documentation.
-
decrypt
Description copied from class:Crypto
The method returns either the decryptedstrToDecrypt
, either thestrToDecrypt
itself if it is not recognized as a crypted string or if the decryption fails. The return value is a byte array for security purpose, it is your responsibility to convert it then to a String or not (use ofchar[]
is recommended). -
clear
public void clear()Description copied from class:Crypto
Clear sensible values. That makes the current object unusable.
-