test_class.declarator: TOKEN = "t"
test_class.modifier: private static final
test_class.original_string: private static final String TOKEN = "t";
test_class.type: String
test_class.var_name: TOKEN
test_class.declarator: USERID = "userId"
test_class.modifier: private static final
test_class.original_string: private static final String USERID = "userId";
test_class.type: String
test_class.var_name: USERID
test_class.declarator: info
test_class.modifier: private
test_class.original_string: private TokenInfo info;
test_class.type: TokenInfo
test_class.var_name: info
test_class.declarator: composite
test_class.modifier: private
test_class.original_string: private TokenProvider composite;
test_class.type: TokenProvider
test_class.var_name: composite
test_class.file: oak-security-spi/src/test/java/org/apache/jackrabbit/oak/spi/security/authentication/token/CompositeTokenProviderTest.java
test_class.identifier: CompositeTokenProviderTest
test_case.body: @Test
      public void testDoCreateToken() {
          assertTrue(composite.doCreateToken(new SimpleCredentials(USERID, new char[0])));
          assertFalse(composite.doCreateToken(new GuestCredentials()));
          assertFalse(composite.doCreateToken(new Credentials() {}));
      }
test_case.class_method_signature: CompositeTokenProviderTest.testDoCreateToken()
test_case.full_signature: @Test public void testDoCreateToken()
test_case.identifier: testDoCreateToken
test_case.invocations: assertTrue doCreateToken assertFalse doCreateToken assertFalse doCreateToken
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDoCreateToken()
focal_class.declarator: providers
focal_class.modifier: private final
focal_class.original_string: private final List<TokenProvider> providers;
focal_class.type: List<TokenProvider>
focal_class.var_name: providers
focal_class.declarator: NULL_PROVIDER = new TokenProvider() {
          @Override
          public boolean doCreateToken(@NotNull Credentials credentials) {
              return false;
          }
  
          @Nullable
          @Override
          public TokenInfo createToken(@NotNull Credentials credentials) {
              return null;
          }
  
          @Nullable
          @Override
          public TokenInfo createToken(@NotNull String userId, @NotNull Map<String, ?> attributes) {
              return null;
          }
  
          @Nullable
          @Override
          public TokenInfo getTokenInfo(@NotNull String token) {
              return null;
          }
      }
focal_class.modifier: private static final
focal_class.original_string: private static final TokenProvider NULL_PROVIDER = new TokenProvider() {
          @Override
          public boolean doCreateToken(@NotNull Credentials credentials) {
              return false;
          }
  
          @Nullable
          @Override
          public TokenInfo createToken(@NotNull Credentials credentials) {
              return null;
          }
  
          @Nullable
          @Override
          public TokenInfo createToken(@NotNull String userId, @NotNull Map<String, ?> attributes) {
              return null;
          }
  
          @Nullable
          @Override
          public TokenInfo getTokenInfo(@NotNull String token) {
              return null;
          }
      };
focal_class.type: TokenProvider
focal_class.var_name: NULL_PROVIDER
focal_class.file: oak-security-spi/src/main/java/org/apache/jackrabbit/oak/spi/security/authentication/token/CompositeTokenProvider.java
focal_class.identifier: CompositeTokenProvider
focal_class.interfaces: implements TokenProvider
focal_class.class_method_signature: CompositeTokenProvider.CompositeTokenProvider(@NotNull List<? extends TokenProvider> providers)
focal_class.full_signature: private  CompositeTokenProvider(@NotNull List<? extends TokenProvider> providers)
focal_class.identifier: CompositeTokenProvider
focal_class.modifiers: private
focal_class.parameters: (@NotNull List<? extends TokenProvider> providers)
focal_class.signature:  CompositeTokenProvider(@NotNull List<? extends TokenProvider> providers)
focal_class.class_method_signature: CompositeTokenProvider.newInstance(@NotNull TokenProvider... providers)
focal_class.full_signature: @NotNull public static TokenProvider newInstance(@NotNull TokenProvider... providers)
focal_class.identifier: newInstance
focal_class.modifiers: @NotNull public static
focal_class.parameters: (@NotNull TokenProvider... providers)
focal_class.return: TokenProvider
focal_class.signature: TokenProvider newInstance(@NotNull TokenProvider... providers)
focal_class.class_method_signature: CompositeTokenProvider.newInstance(@NotNull List<? extends TokenProvider> providers)
focal_class.full_signature: @NotNull public static TokenProvider newInstance(@NotNull List<? extends TokenProvider> providers)
focal_class.identifier: newInstance
focal_class.modifiers: @NotNull public static
focal_class.parameters: (@NotNull List<? extends TokenProvider> providers)
focal_class.return: TokenProvider
focal_class.signature: TokenProvider newInstance(@NotNull List<? extends TokenProvider> providers)
focal_class.class_method_signature: CompositeTokenProvider.doCreateToken(@NotNull Credentials credentials)
focal_class.full_signature: @Override public boolean doCreateToken(@NotNull Credentials credentials)
focal_class.identifier: doCreateToken
focal_class.modifiers: @Override public
focal_class.parameters: (@NotNull Credentials credentials)
focal_class.return: boolean
focal_class.signature: boolean doCreateToken(@NotNull Credentials credentials)
focal_class.class_method_signature: CompositeTokenProvider.createToken(@NotNull Credentials credentials)
focal_class.full_signature: @Nullable @Override public TokenInfo createToken(@NotNull Credentials credentials)
focal_class.identifier: createToken
focal_class.modifiers: @Nullable @Override public
focal_class.parameters: (@NotNull Credentials credentials)
focal_class.return: TokenInfo
focal_class.signature: TokenInfo createToken(@NotNull Credentials credentials)
focal_class.class_method_signature: CompositeTokenProvider.createToken(@NotNull String userId, @NotNull Map<String, ?> attributes)
focal_class.full_signature: @Nullable @Override public TokenInfo createToken(@NotNull String userId, @NotNull Map<String, ?> attributes)
focal_class.identifier: createToken
focal_class.modifiers: @Nullable @Override public
focal_class.parameters: (@NotNull String userId, @NotNull Map<String, ?> attributes)
focal_class.return: TokenInfo
focal_class.signature: TokenInfo createToken(@NotNull String userId, @NotNull Map<String, ?> attributes)
focal_class.class_method_signature: CompositeTokenProvider.getTokenInfo(@NotNull String token)
focal_class.full_signature: @Nullable @Override public TokenInfo getTokenInfo(@NotNull String token)
focal_class.identifier: getTokenInfo
focal_class.modifiers: @Nullable @Override public
focal_class.parameters: (@NotNull String token)
focal_class.return: TokenInfo
focal_class.signature: TokenInfo getTokenInfo(@NotNull String token)
focal_method.body: @Override
      public boolean doCreateToken(@NotNull Credentials credentials) {
          for (TokenProvider tp : providers) {
              if (tp.doCreateToken(credentials)) {
                  return true;
              }
          }
          return false;
      }
focal_method.class_method_signature: CompositeTokenProvider.doCreateToken(@NotNull Credentials credentials)
focal_method.full_signature: @Override public boolean doCreateToken(@NotNull Credentials credentials)
focal_method.identifier: doCreateToken
focal_method.invocations: doCreateToken
focal_method.modifiers: @Override public
focal_method.parameters: (@NotNull Credentials credentials)
focal_method.return: boolean
focal_method.signature: boolean doCreateToken(@NotNull Credentials credentials)