Package org.springframework.security.oauth.provider

Examples of org.springframework.security.oauth.provider.BaseConsumerDetails


  private String nonce() {
    return UUID.randomUUID().toString();
  }

  private ConsumerDetails consumer(String name) {
    BaseConsumerDetails details = new BaseConsumerDetails();
    details.setConsumerKey(name);
    return details;
  }
View Full Code Here


     * Tests execute.
     */
    @Test
    public void testExecuteAuthOtherType()
    {
        final BaseConsumerDetails consumerDetails = context.mock(BaseConsumerDetails.class);
        coreAuthTest(consumerDetails, AuthenticationType.NOTSET);
    }
View Full Code Here

        {
            ServiceActionContext currentContext = new ServiceActionContext(inConsumerKey, null);
            OAuthConsumer consumer =
                    (OAuthConsumer) actionController.execute(currentContext, getOAuthConsumerByConsumerKeyAction);

            BaseConsumerDetails details = new BaseConsumerDetails();
            details.setConsumerKey(inConsumerKey);
            details.setConsumerName(inConsumerKey);
            details.setSignatureSecret(new SharedConsumerSecret(consumer.consumerSecret));
            details.setAuthorities(grantedAuthorities);

            // NOTE: This line supports OAuth 2-legged only!
            details.setRequiredToObtainAuthenticatedToken(false);

            return details;
        }
        catch (Exception ex)
        {
View Full Code Here

TOP

Related Classes of org.springframework.security.oauth.provider.BaseConsumerDetails

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.