test_class.declarator: scheme = new OAuthScheme()
test_class.original_string: OAuthScheme scheme = new OAuthScheme();
test_class.type: OAuthScheme
test_class.var_name: scheme
test_class.declarator: credentials
test_class.original_string: OAuthCredentials credentials;
test_class.type: OAuthCredentials
test_class.var_name: credentials
test_class.file: extensions/oauth/src/test/java/org/apache/abdera/ext/oauth/OAuthSchemeTest.java
test_class.identifier: OAuthSchemeTest
test_case.body: @Test
      public void testAuthenticate() throws Exception {
  
          credentials =
              new OAuthCredentials("dpf43f3p2l4k3l03", "nnch734d00sl2jdk", "HMAC-SHA1", "http://photos.example.net/");
  
          String header = scheme.authenticate(credentials, "get", "http://photos.example.net?file=vacation.jpg");
          assertNotNull(header);
  
          String regex =
              "OAuth realm=\"[^\"]+\", oauth_consumer_key=\"[^\"]+\", " + "oauth_token=\"[^\"]+\", oauth_signature_method=\"[^\"]+\", oauth_signature=\"[^\"]+\", "
                  + "oauth_timestamp=\"[^\"]+\", oauth_nonce=\"[^\"]+\"(, oauth_version=\"[^\"]+\")?";
  
          assertTrue(header.matches(regex));
  
      }
test_case.class_method_signature: OAuthSchemeTest.testAuthenticate()
test_case.full_signature: @Test public void testAuthenticate()
test_case.identifier: testAuthenticate
test_case.invocations: authenticate assertNotNull assertTrue matches
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testAuthenticate()
focal_class.declarator: NONCE_LENGTH = 16
focal_class.modifier: private final
focal_class.original_string: private final int NONCE_LENGTH = 16;
focal_class.type: int
focal_class.var_name: NONCE_LENGTH
focal_class.file: extensions/oauth/src/main/java/org/apache/abdera/ext/oauth/OAuthScheme.java
focal_class.identifier: OAuthScheme
focal_class.interfaces: implements AuthScheme
focal_class.class_method_signature: OAuthScheme.register(AbderaClient abderaClient, boolean exclusive)
focal_class.full_signature: public static void register(AbderaClient abderaClient, boolean exclusive)
focal_class.identifier: register
focal_class.modifiers: public static
focal_class.parameters: (AbderaClient abderaClient, boolean exclusive)
focal_class.return: void
focal_class.signature: void register(AbderaClient abderaClient, boolean exclusive)
focal_class.class_method_signature: OAuthScheme.authenticate(Credentials credentials, String method, String uri)
focal_class.full_signature: public String authenticate(Credentials credentials, String method, String uri)
focal_class.identifier: authenticate
focal_class.modifiers: public
focal_class.parameters: (Credentials credentials, String method, String uri)
focal_class.return: String
focal_class.signature: String authenticate(Credentials credentials, String method, String uri)
focal_class.class_method_signature: OAuthScheme.authenticate(Credentials credentials, HttpMethod method)
focal_class.full_signature: public String authenticate(Credentials credentials, HttpMethod method)
focal_class.identifier: authenticate
focal_class.modifiers: public
focal_class.parameters: (Credentials credentials, HttpMethod method)
focal_class.return: String
focal_class.signature: String authenticate(Credentials credentials, HttpMethod method)
focal_class.class_method_signature: OAuthScheme.resolveMethod(String method, String uri)
focal_class.full_signature: private HttpMethod resolveMethod(String method, String uri)
focal_class.identifier: resolveMethod
focal_class.modifiers: private
focal_class.parameters: (String method, String uri)
focal_class.return: HttpMethod
focal_class.signature: HttpMethod resolveMethod(String method, String uri)
focal_class.class_method_signature: OAuthScheme.generateSignature(OAuthCredentials credentials, HttpMethod method, String nonce, long timestamp)
focal_class.full_signature: private String generateSignature(OAuthCredentials credentials, HttpMethod method, String nonce, long timestamp)
focal_class.identifier: generateSignature
focal_class.modifiers: private
focal_class.parameters: (OAuthCredentials credentials, HttpMethod method, String nonce, long timestamp)
focal_class.return: String
focal_class.signature: String generateSignature(OAuthCredentials credentials, HttpMethod method, String nonce, long timestamp)
focal_class.class_method_signature: OAuthScheme.generateNonce()
focal_class.full_signature: private String generateNonce()
focal_class.identifier: generateNonce
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String generateNonce()
focal_class.class_method_signature: OAuthScheme.sign(String method, String baseString, Certificate cert)
focal_class.full_signature: private String sign(String method, String baseString, Certificate cert)
focal_class.identifier: sign
focal_class.modifiers: private
focal_class.parameters: (String method, String baseString, Certificate cert)
focal_class.return: String
focal_class.signature: String sign(String method, String baseString, Certificate cert)
focal_class.class_method_signature: OAuthScheme.getSchemeName()
focal_class.full_signature: public String getSchemeName()
focal_class.identifier: getSchemeName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getSchemeName()
focal_class.class_method_signature: OAuthScheme.isComplete()
focal_class.full_signature: public boolean isComplete()
focal_class.identifier: isComplete
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isComplete()
focal_class.class_method_signature: OAuthScheme.isConnectionBased()
focal_class.full_signature: public boolean isConnectionBased()
focal_class.identifier: isConnectionBased
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isConnectionBased()
focal_class.superclass: extends RFC2617Scheme
focal_method.body: public String authenticate(Credentials credentials, String method, String uri) throws AuthenticationException {
          return authenticate(credentials, resolveMethod(method, uri));
      }
focal_method.class_method_signature: OAuthScheme.authenticate(Credentials credentials, String method, String uri)
focal_method.full_signature: public String authenticate(Credentials credentials, String method, String uri)
focal_method.identifier: authenticate
focal_method.invocations: authenticate resolveMethod
focal_method.modifiers: public
focal_method.parameters: (Credentials credentials, String method, String uri)
focal_method.return: String
focal_method.signature: String authenticate(Credentials credentials, String method, String uri)