Package org.zanata.security.openid

Examples of org.zanata.security.openid.FedoraOpenIdProvider


    public void setProvider(OpenIdProviderType providerType) {
        if (providerType != null) {
            switch (providerType) {
            case Fedora:
                this.openIdProvider = new FedoraOpenIdProvider();
                break;

            case Google:
                this.openIdProvider = new GoogleOpenIdProvider();
                break;
View Full Code Here


     *
     * @param openId
     *            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;
View Full Code Here

     */
    public String getCredentialsType(HCredentials credentials) {
        if( new GoogleOpenIdProvider().accepts(credentials.getUser()) ) {
            return "google";
        }
        else if( new FedoraOpenIdProvider().accepts(credentials.getUser()) ) {
            return "fedora";
        }
        else if( new YahooOpenIdProvider().accepts(credentials.getUser()) ) {
            return "yahoo";
        }
View Full Code Here

TOP

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

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.