|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.useradmin.impl.CredentialAuthenticatorImpl
public class CredentialAuthenticatorImpl
This CredentialAuthenticatorImpl class is used for authentication of credentials. It provides methods for encrypting credentials. Based on system properties it will choose between Base64 encoding or different algorithm.
CredentialAuthenticator
,
MessageDigest
,
Base64
Constructor Summary | |
---|---|
CredentialAuthenticatorImpl()
Construct new CredentialAuthenticator. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CredentialAuthenticatorImpl()
Construct new CredentialAuthenticator. Its reading system properties about algorithm which should be used for encoding,charset, secure random number generator algorithm. Default algorithm is Base64 which could be overridden.
Method Detail |
---|
public Object encryptCredential(Object credential)
CredentialAuthenticator
encryptCredential
in interface CredentialAuthenticator
credential
- to be encrypted.
CredentialAuthenticator.encryptCredential(Object)
public boolean authenticate(Object value, Object encryptedValue)
CredentialAuthenticator
authenticate
in interface CredentialAuthenticator
value
- to be check against encrypted Value.encryptedValue
- encrypted value.
CredentialAuthenticator.authenticate(Object, Object)
public Base64 getBase64()
CredentialAuthenticator
getBase64
in interface CredentialAuthenticator
CredentialAuthenticator.getBase64()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |