public interface Authenticator
| Modifier and Type | Method and Description |
|---|---|
Identity |
createIdentity(String userId) |
Exception |
getLastExceptionOnValidateUser()
Gives the last exception that occurs while calling
validateUser(Credential[]). |
String |
validateUser(Credential[] credentials)
Authenticate user and return userId which can be different to username.
|
String validateUser(Credential[] credentials) throws LoginException, Exception
credentials - - list of users credentials (such as name/password, X509
certificate etc)LoginException - in case the authentication failsException - if any exception occursIdentity createIdentity(String userId) throws Exception
userId - the user's identifierException - if any exception occursException getLastExceptionOnValidateUser()
validateUser(Credential[]). This
allows applications outside JAAS like UI to be able to know which exception occurs
while calling validateUser(Credential[]).validateUser(Credential[])
for the very last time if an exception occurred, null otherwise.
WARNING: to prevent potential memory leaks, the second call to this method may return null
so if you need to access several times to this value, you should store the result into a local variable.
Copyright © 2003-2018 eXo Platform SAS. All Rights Reserved.