Package org.apache.cxf.rs.security.oauth.provider

Examples of org.apache.cxf.rs.security.oauth.provider.DefaultOAuthValidator


                accessor.accessToken = token.getTokenKey();
            }
            accessor.tokenSecret = token.getTokenSecret();
        }
       
        DefaultOAuthValidator validator = new DefaultOAuthValidator();
        validator.validateMessage(oAuthMessage, accessor);
        if (token != null) {
            validator.validateToken(token, provider);
        }
    }
View Full Code Here


    public Response handle(MessageContext mc, OAuthDataProvider dataProvider) {
        HttpServletRequest request = mc.getHttpServletRequest();
        try {
            OAuthMessage oAuthMessage =
                OAuthUtils.getOAuthMessage(mc, request, REQUIRED_PARAMETERS);
            new DefaultOAuthValidator().checkSingleParameter(oAuthMessage);

            RequestToken token = dataProvider.getRequestToken(oAuthMessage.getToken());
            if (token == null) {
                throw new OAuthProblemException(OAuth.Problems.TOKEN_REJECTED);
            }
View Full Code Here

                        "Cannot instantiate OAuthValidator class: " + dataProviderClassName, e);
                }
            }
        }
   
        return dataProvider == null ? new DefaultOAuthValidator() : dataProvider;
    }
View Full Code Here

    public Response handle(MessageContext mc, OAuthDataProvider dataProvider) {
        HttpServletRequest request = mc.getHttpServletRequest();
        try {
            OAuthMessage oAuthMessage =
                OAuthUtils.getOAuthMessage(mc, request, REQUIRED_PARAMETERS);
            new DefaultOAuthValidator().checkSingleParameter(oAuthMessage);

            RequestToken token = dataProvider.getRequestToken(oAuthMessage.getToken());
            if (token == null) {
                throw new OAuthProblemException(OAuth.Problems.TOKEN_REJECTED);
            }
View Full Code Here

    public Response handle(HttpServletRequest request, OAuthDataProvider dataProvider) {

        try {
            OAuthMessage oAuthMessage =
                OAuthUtils.getOAuthMessage(request, REQUIRED_PARAMETERS);
            new DefaultOAuthValidator().checkSingleParameter(oAuthMessage);

            RequestToken token = dataProvider.getRequestToken(oAuthMessage.getToken());
            if (token == null) {
                throw new OAuthProblemException(OAuth.Problems.TOKEN_REJECTED);
            }
View Full Code Here

                accessor.accessToken = token.getTokenKey();
            }
            accessor.tokenSecret = token.getTokenSecret();
        }
       
        DefaultOAuthValidator validator = new DefaultOAuthValidator();
        validator.validateMessage(oAuthMessage, accessor);
        if (token != null) {
            validator.validateToken(token, provider);
        }
    }
View Full Code Here

                        "Cannot instantiate OAuthValidator class: " + dataProviderClassName, e);
                }
            }
        }
   
        return dataProvider == null ? new DefaultOAuthValidator() : dataProvider;
    }
View Full Code Here

TOP

Related Classes of org.apache.cxf.rs.security.oauth.provider.DefaultOAuthValidator

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.