Package org.apache.sling.jcr.jackrabbit.server.security

Examples of org.apache.sling.jcr.jackrabbit.server.security.AuthenticationPlugin


     * this method should only be called if {@link #canHandle(Credentials)}
     * returns <code>true</code>) and the authentication data is valid.
     */
    public AuthenticationPlugin getAuthentication(final Principal principal,
            final Credentials creds) {
        return new AuthenticationPlugin() {
            public boolean authenticate(Credentials credentials)
                    throws RepositoryException {
                OpenIdUser user = authHandler.getOpenIdUser(credentials);
                if (user != null) {
                    return user.isAssociated();
View Full Code Here


     *
     * @see CookieAuthenticationHandler#isValid(Credentials)
     */
    public AuthenticationPlugin getAuthentication(Principal principal,
            Credentials creds) {
        return new AuthenticationPlugin() {
            public boolean authenticate(Credentials credentials) {
                return authHandler.isValid(credentials);
            }
        };
    }
View Full Code Here

            return ((TrustedCredentials) creds).getTrustedAuthentication();
        }
        LoginModulePlugin[] modules = Activator.getLoginModules();
        for (int i = 0; i < modules.length; i++) {
            if (modules[i].canHandle(creds)) {
                AuthenticationPlugin pa = modules[i].getAuthentication(
                    principal, creds);
                if (pa != null) {
                    return new AuthenticationPluginWrapper(pa, modules[i]);
                }
            }
View Full Code Here

    protected Authentication getAuthentication(Principal principal,
            Credentials creds) throws RepositoryException {
        LoginModulePlugin[] modules = Activator.getLoginModules();
        for (int i = 0; i < modules.length; i++) {
            if (modules[i].canHandle(creds)) {
                AuthenticationPlugin pa = modules[i].getAuthentication(
                    principal, creds);
                if (pa != null) {
                    return new AuthenticationPluginWrapper(pa, modules[i]);
                }
            }
View Full Code Here

TOP

Related Classes of org.apache.sling.jcr.jackrabbit.server.security.AuthenticationPlugin

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.