Package org.jasig.cas.authentication.handler

Examples of org.jasig.cas.authentication.handler.BadCredentialsAuthenticationException


        final DirectAuthenticationHandlerMappingHolder d = this.credentialsMapping.get(credentialsClass);

        Assert.notNull(d, "no mapping found for: " + credentialsClass.getName());

        if (!d.getAuthenticationHandler().authenticate(credentials)) {
            throw new BadCredentialsAuthenticationException();
        }

        final Principal p = d.getCredentialsToPrincipalResolver().resolvePrincipal(credentials);

        return new Pair<AuthenticationHandler,Principal>(d.getAuthenticationHandler(), p);
View Full Code Here


        TicketException t = new InvalidTicketException();
        assertEquals("INVALID_TICKET", t.getCode());
    }

    public void testCodeWithThrowable() {
        AuthenticationException a = new BadCredentialsAuthenticationException();
        TicketException t = new InvalidTicketException(a);

        assertEquals(a.toString(), t.getCode());
    }
View Full Code Here

                this.authentication.process(spnegoCredentials.getInitToken());
                principal = this.authentication.getPrincipal();
                nextToken = this.authentication.getNextToken();
            }
        } catch (jcifs.spnego.AuthenticationException e) {
            throw new BadCredentialsAuthenticationException(e);
        }
        // evaluate jcifs response
        if (nextToken != null) {
            logger.debug("Setting nextToken in credentials");
            spnegoCredentials.setNextToken(nextToken);
View Full Code Here

                        return false;
                    }
            }
        } catch (final Exception e) {
            log.error(e.getMessage(), e);
            throw new BadCredentialsAuthenticationException(e);
        }

        return false;
    }
View Full Code Here

TOP

Related Classes of org.jasig.cas.authentication.handler.BadCredentialsAuthenticationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.