Package org.apache.karaf.jaas.modules
Interface EncryptionService
-
- All Known Implementing Classes:
BasicEncryptionService
public interface EncryptionService
-
-
Field Summary
Fields Modifier and Type Field Description static StringALGORITHMstatic StringALGORITHM_MD2static StringALGORITHM_MD5static StringALGORITHM_SHA1static StringALGORITHM_SHA256static StringALGORITHM_SHA384static StringALGORITHM_SHA512static StringENCODINGstatic StringENCODING_BASE64static StringENCODING_HEXADECIMAL
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EncryptioncreateEncryption(Map<String,String> params)Create an encryption service with the specified parameters.
-
-
-
Field Detail
-
ALGORITHM
static final String ALGORITHM
- See Also:
- Constant Field Values
-
ALGORITHM_MD2
static final String ALGORITHM_MD2
- See Also:
- Constant Field Values
-
ALGORITHM_MD5
static final String ALGORITHM_MD5
- See Also:
- Constant Field Values
-
ALGORITHM_SHA1
static final String ALGORITHM_SHA1
- See Also:
- Constant Field Values
-
ALGORITHM_SHA256
static final String ALGORITHM_SHA256
- See Also:
- Constant Field Values
-
ALGORITHM_SHA384
static final String ALGORITHM_SHA384
- See Also:
- Constant Field Values
-
ALGORITHM_SHA512
static final String ALGORITHM_SHA512
- See Also:
- Constant Field Values
-
ENCODING
static final String ENCODING
- See Also:
- Constant Field Values
-
ENCODING_HEXADECIMAL
static final String ENCODING_HEXADECIMAL
- See Also:
- Constant Field Values
-
ENCODING_BASE64
static final String ENCODING_BASE64
- See Also:
- Constant Field Values
-
-
Method Detail
-
createEncryption
Encryption createEncryption(Map<String,String> params) throws IllegalArgumentException
Create an encryption service with the specified parameters. If the parameters are not supported, anullshould be returned or an IllegalArgumentException thrown.- Parameters:
params- define the encryption configuration.- Returns:
- the
Encryption. - Throws:
IllegalArgumentException- if theEncryptioncan't be created.
-
-