def METHOD_NAME(self):
    sec_domain = None
    sechost = None
    secport = None
    ca_subsystem = self.instance.get_subsystem('ca')
    if ca_subsystem:
        # make sure this CA is the security domain
        service_host = ca_subsystem.config.get('machineName')
        server_config = self.instance.get_server_config()
        service_port = server_config.get_unsecure_port()
        sechost = ca_subsystem.config.get('securitydomain.host')
        secport = ca_subsystem.config.get('securitydomain.httpport')
        if sechost == service_host and secport == service_port:
            sec_domain = ca_subsystem
    if sec_domain:
        self.security_domain = sec_domain
        # Set some vars we will be using later
        self.db_dir = self.security_domain.config.get('jss.configDir')
        self.subsystem_token = self.security_domain.config.get('ca.subsystem.tokenname')
        self.passwd = self.instance.get_token_password(self.subsystem_token)
    return sec_domain, sechost, secport