test_class.declarator: simpleCreds = new SimpleCredentials("id", "pw".toCharArray())
test_class.modifier: private final
test_class.original_string: private final SimpleCredentials simpleCreds = new SimpleCredentials("id", "pw".toCharArray());
test_class.type: SimpleCredentials
test_class.var_name: simpleCreds
test_class.declarator: whiteboard = new DefaultWhiteboard()
test_class.modifier: private final
test_class.original_string: private final Whiteboard whiteboard = new DefaultWhiteboard();
test_class.type: Whiteboard
test_class.var_name: whiteboard
test_class.declarator: callbackHandler
test_class.modifier: private
test_class.original_string: private CallbackHandlerImpl callbackHandler;
test_class.type: CallbackHandlerImpl
test_class.var_name: callbackHandler
test_class.file: oak-core/src/test/java/org/apache/jackrabbit/oak/security/authentication/CallbackHandlerImplTest.java
test_class.identifier: CallbackHandlerImplTest
test_class.superclass: extends AbstractSecurityTest
test_case.body: @Test
      public void handleRepositoryCallback() throws Exception {
          RepositoryCallback cb = new RepositoryCallback();
  
          callbackHandler.handle(new Callback[] {cb});
          assertSame(getContentRepository(), cb.getContentRepository());
          assertSame(getSecurityProvider(), cb.getSecurityProvider());
          assertEquals(root.getContentSession().getWorkspaceName(), cb.getWorkspaceName());
      }
test_case.class_method_signature: CallbackHandlerImplTest.handleRepositoryCallback()
test_case.full_signature: @Test public void handleRepositoryCallback()
test_case.identifier: handleRepositoryCallback
test_case.invocations: handle assertSame getContentRepository getContentRepository assertSame getSecurityProvider getSecurityProvider assertEquals getWorkspaceName getContentSession getWorkspaceName
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void handleRepositoryCallback()
focal_class.declarator: credentials
focal_class.modifier: private final
focal_class.original_string: private final Credentials credentials;
focal_class.type: Credentials
focal_class.var_name: credentials
focal_class.declarator: workspaceName
focal_class.modifier: private final
focal_class.original_string: private final String workspaceName;
focal_class.type: String
focal_class.var_name: workspaceName
focal_class.declarator: contentRepository
focal_class.modifier: private final
focal_class.original_string: private final ContentRepository contentRepository;
focal_class.type: ContentRepository
focal_class.var_name: contentRepository
focal_class.declarator: securityProvider
focal_class.modifier: private final
focal_class.original_string: private final SecurityProvider securityProvider;
focal_class.type: SecurityProvider
focal_class.var_name: securityProvider
focal_class.declarator: whiteboard
focal_class.modifier: private final
focal_class.original_string: private final Whiteboard whiteboard;
focal_class.type: Whiteboard
focal_class.var_name: whiteboard
focal_class.declarator: loginModuleMonitor
focal_class.modifier: private final
focal_class.original_string: private final LoginModuleMonitor loginModuleMonitor;
focal_class.type: LoginModuleMonitor
focal_class.var_name: loginModuleMonitor
focal_class.file: oak-core/src/main/java/org/apache/jackrabbit/oak/security/authentication/CallbackHandlerImpl.java
focal_class.identifier: CallbackHandlerImpl
focal_class.interfaces: implements CallbackHandler
focal_class.class_method_signature: CallbackHandlerImpl.CallbackHandlerImpl(Credentials credentials, String workspaceName,
                          ContentRepository contentRepository,
                          SecurityProvider securityProvider,
                          Whiteboard whiteboard,
                          LoginModuleMonitor loginModuleMonitor)
focal_class.full_signature:   CallbackHandlerImpl(Credentials credentials, String workspaceName,
                          ContentRepository contentRepository,
                          SecurityProvider securityProvider,
                          Whiteboard whiteboard,
                          LoginModuleMonitor loginModuleMonitor)
focal_class.identifier: CallbackHandlerImpl
focal_class.parameters: (Credentials credentials, String workspaceName,
                          ContentRepository contentRepository,
                          SecurityProvider securityProvider,
                          Whiteboard whiteboard,
                          LoginModuleMonitor loginModuleMonitor)
focal_class.signature:  CallbackHandlerImpl(Credentials credentials, String workspaceName,
                          ContentRepository contentRepository,
                          SecurityProvider securityProvider,
                          Whiteboard whiteboard,
                          LoginModuleMonitor loginModuleMonitor)
focal_class.class_method_signature: CallbackHandlerImpl.handle(Callback[] callbacks)
focal_class.full_signature: @Override public void handle(Callback[] callbacks)
focal_class.identifier: handle
focal_class.modifiers: @Override public
focal_class.parameters: (Callback[] callbacks)
focal_class.return: void
focal_class.signature: void handle(Callback[] callbacks)
focal_class.class_method_signature: CallbackHandlerImpl.getName()
focal_class.full_signature: private String getName()
focal_class.identifier: getName
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: CallbackHandlerImpl.getPassword()
focal_class.full_signature: private char[] getPassword()
focal_class.identifier: getPassword
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: char[]
focal_class.signature: char[] getPassword()
focal_method.body: @Override
      public void handle(Callback[] callbacks) throws UnsupportedCallbackException {
          for (Callback callback : callbacks) {
              if (callback instanceof CredentialsCallback) {
                  ((CredentialsCallback) callback).setCredentials(credentials);
              } else if (callback instanceof NameCallback) {
                  ((NameCallback) callback).setName(getName());
              } else if (callback instanceof PasswordCallback) {
                  ((PasswordCallback) callback).setPassword(getPassword());
              } else if (callback instanceof RepositoryCallback) {
                  RepositoryCallback repositoryCallback = (RepositoryCallback) callback;
                  repositoryCallback.setContentRepository(contentRepository);
                  repositoryCallback.setSecurityProvider(securityProvider);
                  repositoryCallback.setWorkspaceName(workspaceName);
                  repositoryCallback.setLoginModuleMonitor(loginModuleMonitor);
              } else if (callback instanceof WhiteboardCallback) {
                  ((WhiteboardCallback) callback).setWhiteboard(whiteboard);
              } else {
                  throw new UnsupportedCallbackException(callback);
              }
          }
      }
focal_method.class_method_signature: CallbackHandlerImpl.handle(Callback[] callbacks)
focal_method.full_signature: @Override public void handle(Callback[] callbacks)
focal_method.identifier: handle
focal_method.invocations: setCredentials setName getName setPassword getPassword setContentRepository setSecurityProvider setWorkspaceName setLoginModuleMonitor setWhiteboard
focal_method.modifiers: @Override public
focal_method.parameters: (Callback[] callbacks)
focal_method.return: void
focal_method.signature: void handle(Callback[] callbacks)