@StableMinor(version="12.4", sinceVersion="5.5") public interface ICipher
Modifier and Type | Method and Description |
---|---|
byte[] |
decrypt(byte[] value)
Decrypts an array of bytes.
|
String |
decrypt(String value)
Decrypts a string.
|
byte[] |
encrypt(byte[] value)
Encrypts an array of bytes.
|
String |
encrypt(String value)
Encrypts a string.
|
String encrypt(String value)
value
- the original string.IllegalArgumentException
- if value
is null
.String decrypt(String value) throws InvalidEncryptedValueException
value
- the encrypted string.IllegalArgumentException
- if value
is null
.InvalidEncryptedValueException
- if value
is
incompatible with this cipher (probably was not encrypted by it or
is corrupted).UnsupportedOperationException
- if this is a one-way cipher and
does not support decryption.byte[] encrypt(byte[] value)
value
- the original value.IllegalArgumentException
- if value
is null
.byte[] decrypt(byte[] value) throws InvalidEncryptedValueException
value
- the encrypted value.UnsupportedOperationException
- if this is a one-way cipher and
does not support decryption.IllegalArgumentException
- if value
is null
.InvalidEncryptedValueException
- if value
is
incompatible with this cipher (probably was not encrypted by it or
is corrupted).LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.