Package org.zanata.security.openid

Examples of org.zanata.security.openid.GoogleOpenIdProvider


            case Fedora:
                this.openIdProvider = new FedoraOpenIdProvider();
                break;

            case Google:
                this.openIdProvider = new GoogleOpenIdProvider();
                break;

            case MyOpenId:
                this.openIdProvider = new MyOpenIdProvider();
                break;
View Full Code Here


     *            An Open id (They are usually in the form of a url).
     */
    public static OpenIdProviderType getBestSuitedProvider(String openId) {
        if (new FedoraOpenIdProvider().accepts(openId)) {
            return OpenIdProviderType.Fedora;
        } else if (new GoogleOpenIdProvider().accepts(openId)) {
            return OpenIdProviderType.Google;
        } else if (new YahooOpenIdProvider().accepts(openId)) {
            return OpenIdProviderType.Yahoo;
        } else {
            return OpenIdProviderType.Generic;
View Full Code Here

    /**
     * Valid Types:
     * google, yahoo, fedora, openid for everything else
     */
    public String getCredentialsType(HCredentials credentials) {
        if( new GoogleOpenIdProvider().accepts(credentials.getUser()) ) {
            return "google";
        }
        else if( new FedoraOpenIdProvider().accepts(credentials.getUser()) ) {
            return "fedora";
        }
View Full Code Here

TOP

Related Classes of org.zanata.security.openid.GoogleOpenIdProvider

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.