org.apache.karaf.jaas.modules
Interface EncryptionService

All Known Implementing Classes:
BasicEncryptionService

public interface EncryptionService


Field Summary
static String ALGORITHM
           
static String ALGORITHM_MD2
           
static String ALGORITHM_MD5
           
static String ALGORITHM_SHA1
           
static String ALGORITHM_SHA256
           
static String ALGORITHM_SHA384
           
static String ALGORITHM_SHA512
           
static String ENCODING
           
static String ENCODING_BASE64
           
static String ENCODING_HEXADECIMAL
           
 
Method Summary
 Encryption createEncryption(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, a null should be returned or an IllegalArgumentException thrown.

Parameters:
params -
Returns:
Throws:
IllegalArgumentException


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.