Package org.pac4j.core.exception

Examples of org.pac4j.core.exception.CredentialsException


            logger.info("No credential found in this gateway round-trip");
            return null;
        } else {
            final String message = "No ticket or logout request";
            logger.error(message);
            throw new CredentialsException(message);
        }
    }
View Full Code Here


        }
    }
   
    protected void throwsException(final String message) {
        logger.error(message);
        throw new CredentialsException(message);
    }
View Full Code Here

        String token;
        try {
            token = new String(decoded, "UTF-8");
        } catch (final UnsupportedEncodingException e) {
            throw new CredentialsException("Bad format of the basic auth header");
        }

        final int delim = token.indexOf(":");
        if (delim < 0) {
            throw new CredentialsException("Bad format of the basic auth header");
        }
        final UsernamePasswordCredentials credentials = new UsernamePasswordCredentials(token.substring(0, delim),
                token.substring(delim + 1), getName());
        logger.debug("usernamePasswordCredentials : {}", credentials);
        try {
View Full Code Here

TOP

Related Classes of org.pac4j.core.exception.CredentialsException

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.