Package org.jasig.cas.adaptors.trusted.authentication.principal

Examples of org.jasig.cas.adaptors.trusted.authentication.principal.PrincipalBearingCredentials


        if (StringUtils.hasText(remoteUser)) {
            if (logger.isDebugEnabled()) {
                logger.debug("Remote  User [" + remoteUser
                    + "] found in HttpServletRequest");
            }
            return new PrincipalBearingCredentials(new SimplePrincipal(
                remoteUser));
        }

        if (logger.isDebugEnabled()) {
            logger.debug("Remote User not found in HttpServletRequest.");
View Full Code Here


        if (principal != null) {
            if (logger.isDebugEnabled()) {
                logger.debug("UserPrincipal [" + principal.getName()
                    + "] found in HttpServletRequest");
            }
            return new PrincipalBearingCredentials(new SimplePrincipal(
                principal.getName()));
        }

        if (logger.isDebugEnabled()) {
            logger.debug("UserPrincipal not found in HttpServletRequest.");
View Full Code Here

        = new PrincipalBearingCredentialsAuthenticationHandler();   
    /**
     * When the credentials bear a Principal, succeed the authentication.
     */
    public void testNonNullPrincipal() {
        PrincipalBearingCredentials credentials = new PrincipalBearingCredentials(new SimplePrincipal("scott"));
        assertTrue(this.handler.authenticate(credentials));
    }   
View Full Code Here

        PrincipalBearingCredentials credentials = new PrincipalBearingCredentials(new SimplePrincipal("scott"));
        assertTrue(this.handler.authenticate(credentials));
    }   
   
    public void testSupports() {
        PrincipalBearingCredentials credentials = new PrincipalBearingCredentials(new SimplePrincipal("scott"));
        assertTrue(this.handler.supports(credentials));
        assertFalse(this.handler.supports(new UsernamePasswordCredentials()));
    }
View Full Code Here

TOP

Related Classes of org.jasig.cas.adaptors.trusted.authentication.principal.PrincipalBearingCredentials

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.