org.apache.felix.useradmin
Interface CredentialAuthenticator

All Known Implementing Classes:
CredentialAuthenticatorImpl

public interface CredentialAuthenticator

Credential authenticator used for authenticate base on stored credentials.

Version:
$Rev$ $Date$

Method Summary
 boolean authenticate(Object value, Object encryptedValue)
          Authenticate provided value against encrypted stored value.
 Object encryptCredential(Object credential)
          Encrypt provided credential value with one of algorithms Base64, SHA-1, etc.
 Base64 getBase64()
          This method returns Base64 encoder.
 

Method Detail

encryptCredential

Object encryptCredential(Object credential)
Encrypt provided credential value with one of algorithms Base64, SHA-1, etc.

Parameters:
credential - to be encrypted.
Returns:
encrypted value.

authenticate

boolean authenticate(Object value,
                     Object encryptedValue)
Authenticate provided value against encrypted stored value.

Parameters:
value - to be check against encrypted Value.
encryptedValue - encrypted value.
Returns:
true if user is authenticated false if not.

getBase64

Base64 getBase64()
This method returns Base64 encoder.

Returns:
base64 encoder.


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.