You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CAS Community
Good afternoon, I have a question, I createda class thatextendstheAbstractJdbcUsernamePasswordAuthenticationHandlerclass, I will addmy logic ofauthentication, but when compilingget an error,does not recognize the import of theAbstractJdbcUsernamePasswordAuthenticationHandler class, but it is in the pom.xml. The error is for licenseissues? but I added my data in the licence file
Copyright [2016] [mi nombre] .. ..
My clase
import org.jasig.cas.adaptors.jdbc.AbstractJdbcUsernamePasswordAuthenticationHandler; //<---- does not recognize //...other imports
public class ValidatorCas extends AbstractJdbcUsernamePasswordAuthenticationHandler {
public final HandlerResult authenticateUsernamePasswordInternal( UsernamePasswordCredential credential) throws GeneralSecurityException, PreventedException {
final String username = credential.getUsername(); System.out.println("implementar la logica para autenticación con usuario de tabla y usuarios de base de datos(esquema)"); try { } catch (final IncorrectResultSizeDataAccessException e) { if (e.getActualSize() == 0) { throw new AccountNotFoundException(username + " not found with SQL query"); } else { throw new FailedLoginException("Multiple records found for " + username); } } catch (final DataAccessException e) { throw new PreventedException("SQL exception while executing query for " + username, e); } return createHandlerResult(credentials, new SimplePrincipal(username), null); }