Package de.innovationgate.webgate.api.auth

Examples of de.innovationgate.webgate.api.auth.AuthenticationModule


    /* (non-Javadoc)
     * @see de.innovationgate.webgate.api.auth.DefaultAuthModuleFactory#createAuthModule(java.lang.String)
     */
    protected AuthenticationModule createAuthModule(String type) throws ConfigurationException {
        AuthenticationModule module = null;
       
        // First try. Create modules hosted by this module factory
        if (type.equals((AUTHMODULE_CS))) {
            module = new CSAuthModule();
        }
View Full Code Here


            _cachedListeners.add(listener);
            return;
        }
       
       
        AuthenticationModule mod = getAuthModule();
        if (mod == null) {
            return;
        }
       
        mod.addAuthenticationSourceListener(listener);
    }
View Full Code Here

        mod.addAuthenticationSourceListener(listener);
    }

    public void clearCache() {

        AuthenticationModule mod = getAuthModule();
        if (mod == null) {
            return;
        }
       
        mod.clearCache();

    }
View Full Code Here

        // No, we won't pass this on. Target module should destroy itself
    }

    public Class[] getAllowedCredentialClasses() {
       
        AuthenticationModule mod = getAuthModule();
        if (mod == null) {
            return new Class[] {};
        }
       
        return mod.getAllowedCredentialClasses();

    }
View Full Code Here

       
        if (!_ready) {
            return "Delegate Auth Module, not yet ready";
        }
       
        AuthenticationModule mod = getAuthModule();
        if (mod == null) {
            return "No authentication";
        }
       
        return mod.getAuthenticationSource() + " (delegated)";
    }
View Full Code Here

       
        return mod.getAuthenticationSource() + " (delegated)";
    }

    public String getEMailAddress(String user) {
        AuthenticationModule mod = getAuthModule();
        if (mod == null) {
            return null;
        }
       
        return mod.getEMailAddress(user);

    }
View Full Code Here

            _core.addEventListener(this);
        }
    }

    public boolean isGeneratesSessionToken() {
        AuthenticationModule mod = getAuthModule();
        if (mod == null) {
            return false;
        }
       
        return mod.isGeneratesSessionToken();

    }
View Full Code Here

    public boolean isPoolable() {
        return true;
    }

    public boolean isQueryable(String queryType) {
        AuthenticationModule mod = getAuthModule();
        if (mod == null) {
            return false;
        }
       
        return mod.isQueryable(queryType);
    }
View Full Code Here

       
        return mod.isQueryable(queryType);
    }

    public AuthenticationSession login(String user, Object credentials) throws AuthenticationException {
        AuthenticationModule mod = getAuthModule();
        if (mod == null) {
            return AnonymousAuthSession.getInstance();
        }
       
        return mod.login(user, credentials);

    }
View Full Code Here

        return mod.login(user, credentials);

    }

    public Object query(Object query, String queryType) throws WGQueryException {
        AuthenticationModule mod = getAuthModule();
        if (mod == null) {
            return null;
        }
       
        return mod.query(query, queryType);

    }
View Full Code Here

TOP

Related Classes of de.innovationgate.webgate.api.auth.AuthenticationModule

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.